Changeset 33963 for trunk/Ohana/src/relphot/include/relphot.h
- Timestamp:
- May 30, 2012, 1:46:12 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/relphot/include/relphot.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/Ohana/src/relphot/include/relphot.h
r33651 r33963 3 3 # include <kapa.h> 4 4 # include <signal.h> 5 # include <pthread.h> 5 6 6 7 /* # define GRID_V1 */ … … 26 27 float dMcal; 27 28 float dMsys; 28 short nFitPhotom;29 unsigned short nFitPhotom; 29 30 short Xm; 30 31 float secz; 31 32 float ubercalDist; 32 33 unsigned int flags; 34 char skipCal; // if TRUE, this mosaic is incomplete and should not be calibrated 33 35 Coords coords; 34 36 } Mosaic; 37 38 typedef enum { 39 STATS_NONE, 40 STATS_MEAN, 41 STATS_MEDIAN, 42 STATS_WT_MEAN, 43 STATS_INNER_MEAN, 44 STATS_INNER_WTMEAN, 45 STATS_CHI_INNER_MEAN, 46 STATS_CHI_INNER_WTMEAN 47 } ListStatsMode; 35 48 36 49 typedef struct { … … 46 59 double total; 47 60 int Nmeas; 61 ListStatsMode statmode; 48 62 } StatType; 49 63 … … 79 93 80 94 /* global variables set in parameter file */ 81 # define MAX_PATH_LENGTH 102482 char ImageCat[ MAX_PATH_LENGTH];83 char ImageTemplate[ MAX_PATH_LENGTH];84 char CatTemplate[ MAX_PATH_LENGTH];85 char GSCFILE[ MAX_PATH_LENGTH];95 # define DVO_MAX_PATH 1024 96 char ImageCat[DVO_MAX_PATH]; 97 char ImageTemplate[DVO_MAX_PATH]; 98 char CatTemplate[DVO_MAX_PATH]; 99 char GSCFILE[DVO_MAX_PATH]; 86 100 char *CATDIR; 87 101 char CATMODE[16]; /* raw, mef, split, mysql */ 88 102 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 89 char CameraConfig[ MAX_PATH_LENGTH];103 char CameraConfig[DVO_MAX_PATH]; 90 104 char CAMERA[64]; /* eg, gpc1 */ 91 char SKY_TABLE[ MAX_PATH_LENGTH];105 char SKY_TABLE[DVO_MAX_PATH]; 92 106 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 93 107 … … 111 125 int PARALLEL_MANUAL; 112 126 int PARALLEL_SERIAL; 127 128 int NTHREADS; 113 129 114 130 int VERBOSE; … … 141 157 int PLOTDELAY; 142 158 int UpdateAverages; 159 int ApplyOffsets; 143 160 144 161 char *PhotcodeList; … … 194 211 int args PROTO((int argc, char **argv)); 195 212 int args_client PROTO((int argc, char **argv)); 196 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog ));213 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog, int Ncat)); 197 214 void clean_images PROTO((void)); 198 215 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final, FlatCorrectionTable *flatcorr)); … … 236 253 void initMosaicBins PROTO((Catalog *catalog, int Ncatalog, int doMosaicList)); 237 254 void initMosaicGrid PROTO((Image *image, off_t Nimage)); 238 void initMosaics PROTO((Image * image, off_t Nimage));255 void initMosaics PROTO((Image *subset, off_t Nsubset, Image *image, char *inSubset, off_t Nimage)); 239 256 void initMrel PROTO((Catalog *catalog, int Ncatalog)); 240 257 void initialize PROTO((int argc, char **argv)); 241 258 void initialize_client PROTO((int argc, char **argv)); 242 void initstats PROTO((char *mode));243 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats));259 void liststats_setmode PROTO((StatType *stats, char *strmode)); 260 int liststats PROTO((double *value, double *dvalue, double *wvalue, int N, StatType *stats)); 244 261 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath)); 245 262 Catalog *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog)); 246 263 247 264 SkyList *load_images PROTO((FITS_DB *db, char *regionName, SkyRegion *region)); 248 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));265 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, char *inSubset, off_t **LineNumber, off_t *Nimage, SkyRegion *region)); 249 266 250 267 int main PROTO((int argc, char **argv)); … … 273 290 int setMmos PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr)); 274 291 int setMrel PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr)); 275 void setMrelFinal PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr ));292 void setMrelFinal PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr, int simpleAverage)); 276 293 int setMrelOutput PROTO((Catalog *catalog, int Ncatalog, int pass, FlatCorrectionTable *flatcorr)); 277 294 int setMave PROTO((Catalog *catalog, int Ncatalog)); … … 319 336 int ImageSubsetSave(char *filename, ImageSubset *image, off_t Nimage); 320 337 ImageSubset *ImageSubsetLoad(char *filename, off_t *nimage); 338 339 int client_logger_init (); 340 int client_logger_message (char *format,...); 341
Note:
See TracChangeset
for help on using the changeset viewer.
