- Timestamp:
- Oct 31, 2007, 3:02:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071015/Ohana/src/absphot/include/absphot.h
r15354 r15426 3 3 # include <kapa.h> 4 4 # include <signal.h> 5 6 /* # define GRID_V1 */7 # define GRID_V28 # define NO_IMAGE -1009 10 # if (0)11 typedef struct {12 double xmin, xmax, ymin, ymax;13 int style, ptype, ltype, etype, color;14 double lweight, size;15 } Graphdata;16 # endif17 18 typedef struct {19 unsigned int start;20 unsigned int stop;21 float Mcal;22 float dMcal;23 short Xm;24 float secz;25 char code;26 Coords coords;27 } Mosaic;28 5 29 6 typedef struct { … … 41 18 /* global variables set in parameter file */ 42 19 char ImageCat[256]; 43 char ImageTemplate[256];44 char CatTemplate[256];45 20 char GSCFILE[256]; 46 21 char CATDIR[256]; 47 22 char CATMODE[16]; /* raw, mef, split, mysql */ 48 23 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 49 char CameraConfig[256]; 24 50 25 char SKY_TABLE[256]; 51 26 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 52 27 53 double MAG_LIM;54 double SIGMA_LIM;55 double IMAGE_SCATTER;56 double IMAGE_OFFSET;57 double STAR_SCATTER;58 double STAR_CHISQ;59 double MIN_ERROR;60 61 28 int VERBOSE; 62 29 63 int NLOOP;64 int RESET;65 30 int UPDATE; 66 31 int PLOTSTUFF; 67 32 int SAVEPLOT; 68 int SHOW_PARAMS;69 char MOSAICNAME[256];70 char STATMODE[32];71 int STAR_BAD;72 int MEAS_BAD;73 int STAR_TOOFEW;74 int IMAGE_TOOFEW;75 double IMAGE_GOOD_FRACTION;76 int IMAGE_BAD;77 int FREEZE_IMAGES;78 int USE_GRID;79 33 int PLOTDELAY; 80 34 81 int RELPHOT_GRID_X; 82 int RELPHOT_GRID_Y; 83 int RELPHOT_GRID_BINNING; 35 int SHOW_PARAMS; 36 char STATMODE[32]; 84 37 85 38 PhotCode *photcode; … … 87 40 int PhotSec; 88 41 89 int AreaSelect;90 double AreaXmin, AreaXmax, AreaYmin, AreaYmax;91 92 int ImagSelect, ImagMin, ImagMax;93 94 int DophotSelect, DophotValue;95 96 42 double PlotMmin, PlotMmax, PlotdMmin, PlotdMmax; 97 enum {black, white, red, orange, yellow, green, blue, indigo, violet};98 99 int TimeSelect;100 time_t TSTART, TSTOP;101 43 102 44 SkyRegion UserPatch; 103 int UserPatchSelect;104 45 105 # ifdef GRID_V1 106 int setGridMeasure (int meas, int cat, double X, double Y); 107 # endif 108 109 # ifdef GRID_V2 110 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum); 111 # endif 112 113 /*** relphot prototypes ***/ 46 /*** absphot prototypes ***/ 47 int main PROTO((int argc, char **argv)); 48 void initialize PROTO((int argc, char **argv)); 49 int args PROTO((int argc, char **argv)); 114 50 void ConfigInit PROTO((int *argc, char **argv)); 115 51 void GetConfig PROTO((char *config, char *field, char *format, int N, void *ptr)); 116 char *GetPhotnamebyCode PROTO((PhotCodeData *photcodes, int code)); 117 void InterpolateGrid PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords)); 118 int *SelectRefMosaic PROTO((Mosaic **refmosaic, int *Nimage)); 119 int args PROTO((int argc, char **argv)); 120 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 121 void clean_images PROTO(()); 122 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final)); 123 void clean_mosaics PROTO(()); 124 void clean_stars PROTO((Catalog *catalog, int Ncatalog)); 125 int corner_check PROTO((double *x1, double *y1, double *x2, double *y2)); 126 void dumpGrid PROTO(()); 127 void dump_grid PROTO(()); 128 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 129 void findImages PROTO((Catalog *catalog, int Ncatalog)); 130 int findMosaics PROTO((Catalog *catalog, int Ncatalog)); 52 Catalog *load_catalogs PROTO((SkyList *skylist)); 53 int subset_catalog PROTO((Catalog *subcatalog, Catalog *catalog)); 54 void free_catalogs PROTO((Catalog *catalog, int Ncatalog)); 131 55 132 void set_db (FITS_DB *in);133 int Shutdown (char *format, ...);134 void TrapSignal (int sig);135 void SetProtect (int mode);136 int SetSignals ();137 138 void freeGridBins PROTO((int Ncatalog));139 void freeImageBins PROTO((int Ncatalog));140 void freeMosaicBins PROTO((int Ncatalog));141 void free_catalogs PROTO((Catalog *catalog, int Ncatalog));142 int gcatalog PROTO((Catalog *catalog, int FINAL));143 Coords *getCoords PROTO((int meas, int cat));144 float getMcal PROTO((int meas, int cat));145 float getMgrid PROTO((int meas, int cat));146 float getMmos PROTO((int meas, int cat));147 float getMrel PROTO((Catalog *catalog, int meas, int cat));148 Image *getimage PROTO((int N));149 Image *getimages PROTO((int *N));150 void global_stats PROTO((Catalog *catalog, int Ncatalog));151 void initGrid PROTO((int dX, int dY));152 void initGridBins PROTO((Catalog *catalog, int Ncatalog));153 void initImageBins PROTO((Catalog *catalog, int Ncatalog));154 void initImages PROTO((Image *input, int N));155 void initMosaicBins PROTO((Catalog *catalog, int Ncatalog));156 void initMosaicGrid PROTO((Image *image, int Nimage));157 void initMosaics PROTO((Image *image, int Nimage));158 void initMrel PROTO((Catalog *catalog, int Ncatalog));159 void initialize PROTO((int argc, char **argv));160 56 void initstats PROTO((char *mode)); 161 57 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats)); 162 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog));163 SkyList *load_images PROTO((FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect));164 Image *select_images PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage));165 58 166 int main PROTO((int argc, char **argv)); 167 void mark_images PROTO((Image *image, int Nimage, Image *timage, int Ntimage)); 168 void matchImage PROTO((Catalog *catalog, int meas, int cat)); 169 void matchMosaics PROTO((Catalog *catalog, int meas, int cat)); 170 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 171 void plot_chisq PROTO((Catalog *catalog, int Ncatalog)); 172 void plot_defaults PROTO((Graphdata *graphdata)); 173 void plot_grid PROTO((Catalog *catalog)); 174 void plot_images PROTO(()); 175 void plot_list PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *file)); 176 void plot_mosaic_fields PROTO((Catalog *catalog)); 177 void plot_mosaics PROTO(()); 178 void plot_scatter PROTO((Catalog *catalog, int Ncatalog)); 179 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); 180 void plot_stars PROTO((Catalog *catalog, int Ncatalog)); 181 void reload_catalogs PROTO((SkyList *skylist)); 182 int reload_images PROTO((FITS_DB *db)); 183 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); 184 void setMcal PROTO((Catalog *catalog, int Poor)); 185 void setMcalFinal PROTO(()); 186 int setMcalOutput PROTO((Catalog *catalog, int Ncatalog)); 187 void setMgrid PROTO((Catalog *catalog)); 188 int setMmos PROTO((Catalog *catalog, int Poor)); 189 int setMrel PROTO((Catalog *catalog, int Ncatalog)); 190 void setMrelFinal PROTO((Catalog *catalog)); 191 int setMrelOutput PROTO((Catalog *catalog, int Ncatalog, int mark)); 192 void set_ZP PROTO((double ZERO)); 193 int setrefcode PROTO((Image *image, int Nimage)); 194 void skip_measurements PROTO((Catalog *catalog, int pass)); 195 void sortA PROTO((double *X, int N)); 196 void sortB PROTO((double *X, double *Y, int N)); 197 void sortC PROTO((double *X, double *Y, double *F1, double *F2, int N)); 198 void sortD PROTO((double *X, double *Y, double *Z, int N)); 199 StatType statsImageM PROTO((Catalog *catalog)); 200 StatType statsImageN PROTO((Catalog *catalog)); 201 StatType statsImageX PROTO((Catalog *catalog)); 202 StatType statsImagedM PROTO((Catalog *catalog)); 203 StatType statsMosaicM PROTO((Catalog *catalog)); 204 StatType statsMosaicN PROTO((Catalog *catalog)); 205 StatType statsMosaicX PROTO((Catalog *catalog)); 206 StatType statsMosaicdM PROTO((Catalog *catalog)); 207 StatType statsStarN PROTO((Catalog *catalog, int Ncatalog)); 208 StatType statsStarS PROTO((Catalog *catalog, int Ncatalog)); 209 StatType statsStarX PROTO((Catalog *catalog, int Ncatalog)); 210 void wcatalog PROTO((Catalog *catalog)); 211 void wimages PROTO(()); 212 void write_coords PROTO((Header *header, Coords *coords)); 59 SkyList *find_regions PROTO((FITS_DB *db, SkyRegion *region));
Note:
See TracChangeset
for help on using the changeset viewer.
