fine_grid.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <string.h>
#include "global.h"
#include "rastermagic.h"
#include "cmdline.h"
#include "hookup.h"
#include "grid.h"
#include "polarization.h"
#include "statistics.h"
#include "dataset.h"
#include "candidates.h"
#include "util.h"
#include "jobs.h"
#include "fc.c"

Include dependency graph for fine_grid.c:

Go to the source code of this file.

Defines

#define __USE_ISOC99
#define SECONDARY   if(!args_info.no_secondary_skymaps_arg)
#define OUTPUT_SKYMAP(format, field)
#define FREE(var)   { free(var); var=NULL; }

Functions

void init_power_cache (void)
float * get_matched_power (int thread_id, float shift, DATASET *d, int k)
float * get_closest_bin_power (int thread_id, float shift, DATASET *d, int k)
void dump_pic (char *file, double *z)
int float_cmp (float *a, float *b)
void make_limits (int thread_id, POLARIZATION_RESULTS *pol, ACCUMULATION_ARRAYS *ar, int pi)
void make_unified_limits (int thread_id, int pi)
void output_limits (POLARIZATION_RESULTS *pol)
void output_unified_limits (void)
void compute_mean (int thread_id, ACCUMULATION_ARRAYS *ar, int pi)
void compute_mean_no_lines (int thread_id, ACCUMULATION_ARRAYS *ar, int pi)
void init_fine_grid_stage (void)
void fine_grid_allocate_arrays (void)
void fine_grid_free_arrays (void)
void fine_grid_cruncher (int thread_id, void *data)
void fine_grid_stage (void)

Variables

POLARIZATION_RESULTSpolarization_results
int nlinear_polarizations
int ntotal_polarizations
DATASETdatasets
int d_free
gengetopt_args_info args_info
int nbins
int first_bin
int side_cut
int useful_bins
INT64 spindown_start
SKY_GRIDfine_grid
SKY_GRIDpatch_grid
SKY_SUPERGRIDsuper_grid
int do_CutOff
int fake_injection
FILE * LOG
double spindown
double resolution
int subinstance
char * subinstance_name
SUM_TYPE normalizing_weight
int stored_fine_bins = 0
int max_shift = 0
int min_shift = 0
SUM_TYPEaccum_circ_ul
SUM_TYPEaccum_circ_ul_freq
SUM_TYPEskymap_circ_ul
SUM_TYPEskymap_circ_ul_freq
SUM_TYPEspectral_plot_circ_ul
SUM_TYPEmax_dx = NULL
short * max_dx_polarization_index = NULL
float upper_limit_comp
float lower_limit_comp
struct {
   DATASET *   d
   int   segment
   float **   power
   float *   shift
   int   free
   int   size
   int   hits
   long long   total_hits
   long long   total_misses
power_cache
void(*) process_patch (int thread_id, DATASET *d, ACCUMULATION_ARRAYS *ar, int pol_index, int pi, int k, float CutOff)


Define Documentation

#define __USE_ISOC99

Definition at line 23 of file fine_grid.c.

#define SECONDARY   if(!args_info.no_secondary_skymaps_arg)

#define OUTPUT_SKYMAP ( format,
field   ) 

Value:

{         if(pol->skymap.field!=NULL) {                 snprintf(s,19999, "%s" format ".png", subinstance_name, pol->name);                 if(clear_name_png(s)){                         plot_grid_f(p, fine_grid, pol->skymap.field, 1);                         RGBPic_dump_png(s, p);                         }                 snprintf(s,19999, "%s" format ".dat", subinstance_name, pol->name);                 dump_floats(s, pol->skymap.field, fine_grid->npoints, 1);                 }         }

#define FREE ( var   )     { free(var); var=NULL; }


Function Documentation

void init_power_cache ( void   ) 

Definition at line 107 of file fine_grid.c.

float* get_matched_power ( int  thread_id,
float  shift,
DATASET d,
int  k 
)

Definition at line 128 of file fine_grid.c.

float* get_closest_bin_power ( int  thread_id,
float  shift,
DATASET d,
int  k 
)

Definition at line 201 of file fine_grid.c.

void dump_pic ( char *  file,
double *  z 
)

Definition at line 701 of file fine_grid.c.

int float_cmp ( float *  a,
float *  b 
)

void make_limits ( int  thread_id,
POLARIZATION_RESULTS pol,
ACCUMULATION_ARRAYS ar,
int  pi 
)

Definition at line 717 of file fine_grid.c.

void make_unified_limits ( int  thread_id,
int  pi 
)

Definition at line 879 of file fine_grid.c.

void output_limits ( POLARIZATION_RESULTS pol  ) 

Definition at line 907 of file fine_grid.c.

void output_unified_limits ( void   ) 

Definition at line 1241 of file fine_grid.c.

void compute_mean ( int  thread_id,
ACCUMULATION_ARRAYS ar,
int  pi 
)

Definition at line 1476 of file fine_grid.c.

void compute_mean_no_lines ( int  thread_id,
ACCUMULATION_ARRAYS ar,
int  pi 
)

Definition at line 1529 of file fine_grid.c.

void init_fine_grid_stage ( void   ) 

Definition at line 1570 of file fine_grid.c.

void fine_grid_allocate_arrays ( void   ) 

Definition at line 1651 of file fine_grid.c.

void fine_grid_free_arrays ( void   ) 

Definition at line 1666 of file fine_grid.c.

void fine_grid_cruncher ( int  thread_id,
void *  data 
)

Definition at line 1681 of file fine_grid.c.

void fine_grid_stage ( void   ) 

Definition at line 1740 of file fine_grid.c.


Variable Documentation

POLARIZATION_RESULTS* polarization_results

Definition at line 41 of file polarization.c.

int nlinear_polarizations

Definition at line 39 of file polarization.c.

int ntotal_polarizations

Definition at line 39 of file polarization.c.

DATASET* datasets

Definition at line 73 of file dataset.c.

int d_free

Definition at line 74 of file dataset.c.

struct gengetopt_args_info args_info

Definition at line 40 of file bar_response.c.

int nbins

Definition at line 61 of file FindCoincidence_v1.c.

int first_bin

Definition at line 66 of file powerflux.c.

int side_cut

Definition at line 56 of file powerflux.c.

int useful_bins

Definition at line 56 of file powerflux.c.

INT64 spindown_start

Definition at line 54 of file fine_grid.c.

SKY_GRID* fine_grid

Definition at line 87 of file powerflux.c.

SKY_GRID * patch_grid

Definition at line 89 of file powerflux.c.

SKY_SUPERGRID* super_grid

Definition at line 88 of file powerflux.c.

int do_CutOff

Definition at line 75 of file powerflux.c.

int fake_injection

Definition at line 83 of file powerflux.c.

FILE* LOG

Definition at line 34 of file dat2skymap.c.

double spindown

Definition at line 79 of file powerflux.c.

double resolution

Definition at line 28 of file dat2skymap.c.

int subinstance

Definition at line 72 of file powerflux.c.

char* subinstance_name

Definition at line 73 of file powerflux.c.

SUM_TYPE normalizing_weight

Definition at line 70 of file fine_grid.c.

int stored_fine_bins = 0

Definition at line 72 of file fine_grid.c.

int max_shift = 0

Definition at line 74 of file fine_grid.c.

int min_shift = 0

Definition at line 74 of file fine_grid.c.

SUM_TYPE* accum_circ_ul

Definition at line 77 of file fine_grid.c.

SUM_TYPE * accum_circ_ul_freq

Definition at line 77 of file fine_grid.c.

SUM_TYPE* skymap_circ_ul

Definition at line 78 of file fine_grid.c.

SUM_TYPE * skymap_circ_ul_freq

Definition at line 78 of file fine_grid.c.

SUM_TYPE* spectral_plot_circ_ul

Definition at line 79 of file fine_grid.c.

SUM_TYPE* max_dx = NULL

Definition at line 81 of file fine_grid.c.

short* max_dx_polarization_index = NULL

Definition at line 82 of file fine_grid.c.

float upper_limit_comp

Definition at line 84 of file fine_grid.c.

float lower_limit_comp

Definition at line 85 of file fine_grid.c.

DATASET* d

Definition at line 96 of file fine_grid.c.

int segment

Definition at line 97 of file fine_grid.c.

float** power

Definition at line 98 of file fine_grid.c.

float* shift

Definition at line 99 of file fine_grid.c.

int free

Definition at line 100 of file fine_grid.c.

int size

Definition at line 101 of file fine_grid.c.

int hits

Definition at line 102 of file fine_grid.c.

long long total_hits

Definition at line 103 of file fine_grid.c.

long long total_misses

Definition at line 104 of file fine_grid.c.

struct { ... } * power_cache

void(*) process_patch(int thread_id, DATASET *d, ACCUMULATION_ARRAYS *ar, int pol_index, int pi, int k, float CutOff)

Definition at line 283 of file fine_grid.c.


Generated on Mon Sep 8 03:07:48 2008 for LAL by  doxygen 1.5.2