- Timestamp:
- Jul 17, 2014, 12:32:26 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/relastro/include/relastro.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/Ohana
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/Ohana/src/relastro/include/relastro.h
r35763 r37067 20 20 typedef enum {FIT_NONE, FIT_AVERAGE, FIT_PM_ONLY, FIT_PAR_ONLY, FIT_PM_AND_PAR} FitMode; 21 21 22 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS, TARGET_HIGH_SPEED, TARGET_MERGE_SOURCE, TARGET_UPDATE_OBJECTS, TARGET_UPDATE_OFFSETS, TARGET_LOAD_OBJECTS, TARGET_HPM} FitTarget; 22 typedef enum {OP_NONE, OP_IMAGES, OP_HIGH_SPEED, OP_MERGE_SOURCE, OP_UPDATE_OBJECTS, OP_UPDATE_OFFSETS, OP_LOAD_OBJECTS, OP_HPM, OP_PARALLEL_REGIONS, OP_PARALLEL_IMAGES} RelastroOp; 23 24 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS} FitTarget; 23 25 24 26 typedef enum { … … 30 32 MARK_BIG_OFFSET = 0x0010, 31 33 } MeasurementMask; 34 35 typedef struct { 36 float R; 37 float D; 38 unsigned int objID; 39 unsigned int catID; 40 } MeanPos; 41 42 typedef struct { 43 Coords coords; 44 float dXpixSys; 45 float dYpixSys; 46 unsigned int imageID; 47 int nFitAstrom; 48 int flags; 49 } ImagePos; 32 50 33 51 typedef struct { … … 56 74 double L, M; /* Focal Plane - pixels */ 57 75 double X, Y; /* Chip Coords - pixels */ 58 double Mag; 59 double dMag; 60 double dPos; 76 float Mag; 77 float ColorBlue; 78 float ColorRed; 79 float dMag; 80 float dPos; 61 81 int mask; 62 82 int Nmeas; … … 93 113 unsigned int start; 94 114 unsigned int stop; 115 off_t myImage; 95 116 float Mcal; 96 117 float dMcal; … … 113 134 } StatType; 114 135 115 # define MARKTIME(MSG,...) { \116 float dtime; \117 gettimeofday (&stop, (void *) NULL); \118 dtime = DTIME (stop, start); \119 fprintf (stderr, MSG, __VA_ARGS__); }120 121 136 /* global variables set in parameter file */ 122 137 # define DVO_MAX_PATH 1024 … … 129 144 char SKY_TABLE[DVO_MAX_PATH]; 130 145 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 146 147 // globals for parallel region operations 148 char *REGION_FILE; 149 char *IMAGE_TABLE; 150 int REGION_HOST_ID; 151 int PARALLEL_REGIONS_MANUAL; 131 152 132 153 int HOST_ID; … … 179 200 double MaxDensityValue; 180 201 181 char *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST ;182 int NphotcodesKeep, NphotcodesSkip ;183 PhotCode **photcodesKeep, **photcodesSkip ;202 char *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST, *PHOTCODE_RESET_LIST; 203 int NphotcodesKeep, NphotcodesSkip, NphotcodesReset; 204 PhotCode **photcodesKeep, **photcodesSkip, **photcodesReset; 184 205 185 206 char *PHOTCODE_A_LIST, *PHOTCODE_B_LIST; … … 189 210 SkyRegionSelection SELECTION; 190 211 212 char *DCR_BLUE_COLOR_POS, *DCR_BLUE_COLOR_NEG; 213 PhotCode *DCR_BLUE_PHOTCODE_POS, *DCR_BLUE_PHOTCODE_NEG; 214 int DCR_BLUE_NSEC_POS, DCR_BLUE_NSEC_NEG; 215 216 char *DCR_RED_COLOR_POS, *DCR_RED_COLOR_NEG; 217 PhotCode *DCR_RED_PHOTCODE_POS, *DCR_RED_PHOTCODE_NEG; 218 int DCR_RED_NSEC_POS, DCR_RED_NSEC_NEG; 219 191 220 int ImagSelect; 192 221 double ImagMin, ImagMax; … … 206 235 int USE_BASIC_CHECK; 207 236 237 int ExcludeBogus; 238 double ExcludeBogusRadius; 239 208 240 FitMode FIT_MODE; 209 241 242 RelastroOp RELASTRO_OP; 210 243 FitTarget FIT_TARGET; 211 244 … … 278 311 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats)); 279 312 int liststats_pos PROTO((double *value, double *dvalue, int N, StatType *stats, int XVERB)); 280 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath ));313 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath, char *syncfile)); 281 314 int load_images PROTO((FITS_DB *db, SkyList *skylist, int UseFullOverlap)); 282 315 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage, int UseFullOverlap)); … … 388 421 int setMeanR (double ra_fit, MeasureTiny *measure, Average *average, SecFilt *secfilt); 389 422 int setMeanD (double dec_fit, MeasureTiny *measure, Average *average, SecFilt *secfilt); 423 double getMeanR_Big (Measure *measure, Average *average, SecFilt *secfilt); 424 double getMeanD_Big (Measure *measure, Average *average, SecFilt *secfilt); 390 425 int setMeanR_Big (double ra_fit, Measure *measure, Average *average, SecFilt *secfilt); 391 426 int setMeanD_Big (double dec_fit, Measure *measure, Average *average, SecFilt *secfilt); … … 450 485 int hpm_catalogs_parallel (SkyList *skylist); 451 486 int hpm_objects (SkyRegion *region, Catalog *catalog); 487 488 int strextend (char *input, char *format,...); 489 int launch_region_hosts (RegionHostTable *regionHosts); 490 491 int assign_images (FITS_DB *db, RegionHostTable *regionHosts); 492 int select_images_hostregion (RegionHostTable *regionHosts, Image *image, off_t Nimage); 493 int calculate_image_bounds (Image *image, double *rmin, double *rmax, double *dmin, double *dmax, double Rmid); 494 int calculate_host_image_bounds (RegionHostTable *regionHosts); 495 int find_host_for_coords (RegionHostTable *regionHosts, double Rc, double Dc); 496 497 int relastro_parallel_regions (); 498 int relastro_parallel_images (); 499 500 char *make_filename (char *dirname, char *hostname, int hostID, char *tailname); 501 int check_sync_file (char *filename, int nloop); 502 int clear_sync_file (char *filename); 503 int update_sync_file (char *filename, int nloop); 504 505 int share_mean_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 506 int slurp_mean_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 507 int set_mean_pos (MeanPos *meanpos, Average *average); 508 MeanPos *merge_mean_pos (MeanPos *target, int *ntarget, MeanPos *source, int Nsource); 509 510 int MeanPosSave(char *filename, MeanPos *meanpos, off_t Nmeanpos); 511 MeanPos *MeanPosLoad(char *filename, off_t *nmeanpos); 512 513 int indexCatalogs (Catalog *catalog, int Ncatalog); 514 int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq); 515 516 int markObjects (Catalog *catalog, int Ncatalog); 517 518 int ImagePosSave(char *filename, ImagePos *image_pos, off_t Nimage_pos); 519 ImagePos *ImagePosLoad(char *filename, off_t *nimage_pos); 520 521 int share_image_pos (RegionHostTable *regionHosts, int nloop); 522 int slurp_image_pos (RegionHostTable *regionHosts, int nloop); 523 ImagePos *merge_image_pos (ImagePos *target, int *ntarget, ImagePos *source, int Nsource); 524 int set_image_pos (ImagePos *image_pos, Image *image); 525 526 Image *ImageTableLoad(char *filename, off_t *nimage); 527 int ImageTableSave (char *filename, Image *images, off_t Nimages); 528 int select_mosaics_hostregion (RegionHostTable *regionHosts, Image *image, off_t Nimage); 529 530 float getColorBlue (off_t meas, int cat); 531 float getColorRed (off_t meas, int cat); 532 533 int strextend (char *input, char *format,...); 534 535 int areImagesLoaded (); 536 int areImagesMatched ();
Note:
See TracChangeset
for help on using the changeset viewer.
