- Timestamp:
- Feb 14, 2012, 6:38:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/include/relphot.h
r33169 r33254 7 7 # define GRID_V2 8 8 # define NO_IMAGE -100 9 10 typedef enum { 11 MODE_NONE = 0, 12 MODE_LOAD = 1, 13 MODE_UPDATE = 2, 14 } ModeType; 9 15 10 16 typedef struct { … … 34 40 } StatType; 35 41 42 typedef struct { 43 AverageTiny *average; 44 MeasureTiny *measure; 45 SecFilt *secfilt; 46 off_t Naverage; 47 off_t Nmeasure; 48 } BrightCatalog; 49 50 typedef struct { 51 float Mcal; 52 float dMcal; 53 unsigned int imageID; 54 unsigned int photom_map_id; 55 unsigned int flags; 56 unsigned int tzero; 57 unsigned char trate; 58 } ImageSubset; 59 36 60 /* global variables set in parameter file */ 37 61 char ImageCat[256]; … … 45 69 char SKY_TABLE[256]; 46 70 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 71 72 int HOST_ID; 73 char *HOSTDIR; 74 char *IMAGES; 75 char *BCATALOG; 76 ModeType MODE; 47 77 48 78 double MAG_LIM; … … 133 163 off_t *SelectRefMosaic PROTO((Mosaic **refmosaic, off_t *Nimage)); 134 164 int args PROTO((int argc, char **argv)); 165 int args_client PROTO((int argc, char **argv)); 135 166 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 136 167 void clean_images PROTO((void)); … … 165 196 Image *getimage PROTO((off_t N)); 166 197 Image *getimages PROTO((off_t *N, off_t **LineNumber)); 198 ImageSubset *getimages_subset PROTO((off_t *N)); 167 199 void global_stats PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr)); 168 200 void initGrid PROTO((int dX, int dY)); 169 201 void initGridBins PROTO((Catalog *catalog, int Ncatalog)); 170 202 void initImageBins PROTO((Catalog *catalog, int Ncatalog, int doImageList)); 203 void initImagesSubset PROTO((ImageSubset *input, off_t *line_number, off_t N)); 171 204 void initImages PROTO((Image *input, off_t *LineNumber, off_t N)); 172 205 void initMosaicBins PROTO((Catalog *catalog, int Ncatalog, int doMosaicList)); … … 175 208 void initMrel PROTO((Catalog *catalog, int Ncatalog)); 176 209 void initialize PROTO((int argc, char **argv)); 210 void initialize_client PROTO((int argc, char **argv)); 177 211 void initstats PROTO((char *mode)); 178 212 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats)); 179 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog)); 213 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath)); 214 Catalog *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog)); 215 180 216 SkyList *load_images PROTO((FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect)); 181 Image *select_imagesPROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));217 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage)); 182 218 183 219 int main PROTO((int argc, char **argv)); … … 196 232 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); 197 233 void plot_stars PROTO((Catalog *catalog, int Ncatalog)); 198 void reload_catalogs PROTO((SkyList *skylist, FlatCorrectionTable *flatcorr)); 234 void reload_catalogs PROTO((SkyList *skylist, FlatCorrectionTable *flatcorr, int hostID, char *hostpath)); 235 int reload_catalogs_parallel PROTO((SkyList *sky)); 199 236 int reload_images PROTO((FITS_DB *db)); 200 237 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); … … 234 271 void relphot_help (int argc, char **argv); 235 272 273 void relphot_client_usage (void); 274 void relphot_client_help (int argc, char **argv); 275 236 276 off_t getImageByID (off_t ID); 237 277 … … 241 281 int populate_tiny_values (Catalog *catalog); 242 282 int free_tiny_values (Catalog *catalog); 283 284 BrightCatalog *BrightCatalogLoad(char *filename); 285 int BrightCatalogSave(char *filename, BrightCatalog *catalog); 286 BrightCatalog *BrightCatalogMerge (Catalog *catalog, int Ncatalog); 287 288 int ImageSubsetSave(char *filename, ImageSubset *image, off_t Nimage); 289 ImageSubset *ImageSubsetLoad(char *filename, off_t *nimage); 290 291 int CopyAverageTiny (AverageTiny *averageT, Average *average); 292 int CopyMeasureTiny (MeasureTiny *measureT, Measure *measure);
Note:
See TracChangeset
for help on using the changeset viewer.
