- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/Ohana
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/Ohana/src/relphot/include/relphot.h
r35806 r36680 23 23 // # define IDX_T off_t 24 24 # define IDX_T int 25 26 typedef enum { 27 MODE_ERROR = 0, 28 UPDATE_IMAGES, 29 UPDATE_AVERAGES, 30 PARALLEL_REGIONS, 31 PARALLEL_IMAGES, 32 APPLY_OFFSETS, 33 } RelphotMode; 25 34 26 35 typedef enum { … … 86 95 // others are only used on the final output steps. 87 96 88 double *list; // list of measure.mag values for a given star 89 double *dlist; // mag errors for a star 90 double *wlist; // weights to use for mean mags 91 double *aplist; // ap mags for a star 92 double *kronlist; // kron mags for a star 97 double *Mpsflist; // list of measure.mag values for a given star 98 double *dpsflist; // mag errors for a star 99 double *wpsflist; // weights to use for mean mags 100 101 double *Maplist; // ap mags for a star 102 double *daplist; // ap mags for a star 103 double *waplist; // ap mags for a star 104 105 double *Mkronlist; // kron mags for a star 93 106 double *dkronlist; // kron mag errors 107 double *wkronlist; // kron mag errors 94 108 95 109 double *psfqf_list; // psfqf for all filters … … 97 111 double *stargal_list; // stargal for all filters 98 112 99 StatType stats;113 StatType psfstats; 100 114 StatType apstats; 101 115 StatType kronstats; 102 116 } SetMrelInfo; 117 118 typedef struct { 119 float M; 120 float dM; 121 float Xm; 122 int Nsec; 123 unsigned int objID; 124 unsigned int catID; 125 int photcode; 126 } MeanMag; 127 128 typedef struct { 129 float Mcal; 130 float dMcal; 131 float dMagSys; 132 float Xm; 133 int nFitPhotom; 134 int flags; 135 unsigned int imageID; 136 short ubercalDist; 137 } ImageMag; 103 138 104 139 typedef struct { … … 116 151 unsigned int photom_map_id; 117 152 unsigned int flags; 153 int tessID; 118 154 int projID; 119 155 int skycellID; … … 149 185 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 150 186 187 // globals for parallel region operations 188 char *REGION_FILE; 189 char *IMAGE_TABLE; 190 int REGION_HOST_ID; 191 151 192 int HOST_ID; 152 193 char *HOSTDIR; … … 173 214 int PARALLEL_MANUAL; 174 215 int PARALLEL_SERIAL; 216 217 int PARALLEL_REGIONS_MANUAL; 175 218 176 219 int NTHREADS; … … 260 303 void InterpolateGrid PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords)); 261 304 off_t *SelectRefMosaic PROTO((Mosaic **refmosaic, off_t *Nimage)); 262 intargs PROTO((int argc, char **argv));305 RelphotMode args PROTO((int argc, char **argv)); 263 306 int args_client PROTO((int argc, char **argv)); 264 307 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog, int Ncat)); … … 273 316 void findImages PROTO((Catalog *catalog, int Ncatalog, int doImageList)); 274 317 int findMosaics PROTO((Catalog *catalog, int Ncatalog, int doMosaicList)); 318 319 void makeMosaics (Image *image, off_t Nimage); 320 Mosaic *getMosaicForImage (off_t im); 321 void setMosaicCenters (Image *image, off_t Nimage); 275 322 276 323 void set_db (FITS_DB *in); … … 309 356 void initMosaics PROTO((Image *subset, off_t Nsubset, Image *image, char *inSubset, off_t Nimage)); 310 357 void initMrel PROTO((Catalog *catalog, int Ncatalog)); 311 voidinitialize PROTO((int argc, char **argv));358 RelphotMode initialize PROTO((int argc, char **argv)); 312 359 void initialize_client PROTO((int argc, char **argv)); 313 360 void liststats_setmode PROTO((StatType *stats, char *strmode)); … … 397 444 ImageSubset *ImageSubsetLoad(char *filename, off_t *nimage); 398 445 399 int client_logger_init ( );446 int client_logger_init (char *dirname); 400 447 int client_logger_message (char *format,...); 401 448 402 449 int MatchImageName (off_t meas, int cat, char *name); 403 int MatchImageSkycellID (off_t meas, int cat, int myProjectionID, int mySkycellID); 404 405 int load_tree (char *treefile); 406 int BoundaryTreePrimaryCell (char *primaryCellName, double ra, double dec); 407 int BoundaryTreePrimaryCellIDs (int *projID, int *skycellID, double ra, double dec); 450 int MatchImageSkycellID (off_t meas, int cat, int myTessID, int myProjectionID, int mySkycellID); 451 452 int load_tess (char *treefile); 453 int get_tess_ids (int *tessID, int *projID, int *skycellID, double ra, double dec); 454 int TessellationIDsByImageName (int *tessID, int *projID, int *skycellID, char *name); 455 456 // int BoundaryTreePrimaryCell (char *primaryCellName, double ra, double dec); 457 // int BoundaryTreePrimaryCellIDs (int *projID, int *skycellID, double ra, double dec); 408 458 409 459 int print_measure_set_alt (Average *average, SecFilt *secfilt, Measure *measure); … … 417 467 int init_synthetic_mags (); 418 468 int add_synthetic_mags (AverageTiny *average, SecFilt *secfilt, MeasureTiny *measure, off_t *Nmeasure, off_t *Nm); 469 470 int relphot_parallel_regions (); 471 472 int assign_images (FITS_DB *db, RegionHostTable *regionHosts); 473 int select_images_hostregion (RegionHostTable *hosts, Image *image, off_t Nimage); 474 int find_host_for_coords (RegionHostTable *regionHosts, double R, double d); 475 int calculate_image_bounds (Image *image, double *rmin, double *rmax, double *dmin, double *dmax, double Rmid); 476 477 int launch_region_hosts (RegionHostTable *regionHosts); 478 int strextend (char *input, char *format,...); 479 480 Image *ImageTableLoad(char *filename, off_t *nimage); 481 int ImageTableSave (char *filename, Image *images, off_t Nimages); 482 483 int indexCatalogs (Catalog *catalog, int Ncatalog); 484 int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq); 485 486 int check_sync_file (char *filename, int nloop); 487 int clear_sync_file (char *filename); 488 int update_sync_file (char *filename, int nloop); 489 char *make_filename (char *dirname, char *hostname, int hostID, char *tailname); 490 491 int share_mean_mags (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 492 int slurp_mean_mags (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 493 int set_mean_mags (MeanMag *meanmags, AverageTiny *average, SecFilt *secfilt, int Nsec); 494 MeanMag *merge_mean_mags (MeanMag *target, int *ntarget, MeanMag *source, int Nsource); 495 496 MeanMag *MeanMagLoad(char *filename, off_t *nmeanmags); 497 int MeanMagSave(char *filename, MeanMag *meanmags, off_t Nmeanmags); 498 499 int share_image_mags (RegionHostTable *regionHosts, int nloop); 500 int slurp_image_mags (RegionHostTable *regionHosts, int nloop); 501 int set_image_mags (ImageMag *image_mags, Image *image); 502 ImageMag *merge_image_mags (ImageMag *target, int *ntarget, ImageMag *source, int Nsource); 503 504 ImageMag *ImageMagLoad(char *filename, off_t *nimage_mags); 505 int ImageMagSave(char *filename, ImageMag *image_mags, off_t Nimage_mags); 506 507 int markObjects (Catalog *catalog, int Ncatalog); 508 509 int relphot_parallel_images (); 510 int relphot_parallel_regions ();
Note:
See TracChangeset
for help on using the changeset viewer.
