IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 12:32:26 PM (12 years ago)
Author:
eugene
Message:

merge changes (from past YEAR) into trunk

Location:
branches/eam_branches/ipp-ops-20130712/Ohana
Files:
2 edited

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  
    2020typedef enum {FIT_NONE, FIT_AVERAGE, FIT_PM_ONLY, FIT_PAR_ONLY, FIT_PM_AND_PAR} FitMode;
    2121
    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;
     22typedef 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
     24typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS} FitTarget;
    2325
    2426typedef enum {
     
    3032  MARK_BIG_OFFSET    = 0x0010,
    3133} MeasurementMask;
     34
     35typedef struct {
     36  float R;
     37  float D;
     38  unsigned int objID;
     39  unsigned int catID;
     40} MeanPos;
     41
     42typedef struct {
     43  Coords coords;
     44  float dXpixSys;
     45  float dYpixSys;
     46  unsigned int imageID;
     47  int nFitAstrom;
     48  int flags;
     49} ImagePos;
    3250
    3351typedef struct {
     
    5674  double L, M;  /* Focal Plane   - pixels  */
    5775  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;
    6181  int mask;
    6282  int Nmeas;
     
    93113  unsigned int start;
    94114  unsigned int stop;
     115  off_t myImage;
    95116  float Mcal;
    96117  float dMcal;
     
    113134} StatType;
    114135
    115 # define MARKTIME(MSG,...) { \
    116   float dtime; \
    117   gettimeofday (&stop, (void *) NULL); \
    118   dtime = DTIME (stop, start); \
    119   fprintf (stderr, MSG, __VA_ARGS__); }
    120 
    121136/* global variables set in parameter file */
    122137# define DVO_MAX_PATH 1024
     
    129144char   SKY_TABLE[DVO_MAX_PATH];
    130145int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
     146
     147// globals for parallel region operations
     148char  *REGION_FILE;
     149char  *IMAGE_TABLE;
     150int    REGION_HOST_ID;
     151int    PARALLEL_REGIONS_MANUAL;
    131152
    132153int          HOST_ID;
     
    179200double MaxDensityValue;
    180201
    181 char          *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST;
    182 int           NphotcodesKeep,      NphotcodesSkip;
    183 PhotCode     **photcodesKeep,     **photcodesSkip;
     202char          *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST, *PHOTCODE_RESET_LIST;
     203int           NphotcodesKeep,      NphotcodesSkip,      NphotcodesReset;
     204PhotCode     **photcodesKeep,     **photcodesSkip,     **photcodesReset;
    184205
    185206char          *PHOTCODE_A_LIST,  *PHOTCODE_B_LIST;
     
    189210SkyRegionSelection SELECTION;
    190211
     212char         *DCR_BLUE_COLOR_POS,    *DCR_BLUE_COLOR_NEG;
     213PhotCode     *DCR_BLUE_PHOTCODE_POS, *DCR_BLUE_PHOTCODE_NEG;
     214int           DCR_BLUE_NSEC_POS,      DCR_BLUE_NSEC_NEG;
     215
     216char         *DCR_RED_COLOR_POS,    *DCR_RED_COLOR_NEG;
     217PhotCode     *DCR_RED_PHOTCODE_POS, *DCR_RED_PHOTCODE_NEG;
     218int           DCR_RED_NSEC_POS,      DCR_RED_NSEC_NEG;
     219
    191220int ImagSelect;
    192221double ImagMin, ImagMax;
     
    206235int USE_BASIC_CHECK;
    207236
     237int ExcludeBogus;
     238double ExcludeBogusRadius;
     239
    208240FitMode FIT_MODE;
    209241
     242RelastroOp RELASTRO_OP;
    210243FitTarget FIT_TARGET;
    211244
     
    278311int           liststats           PROTO((double *value, double *dvalue, int N, StatType *stats));
    279312int           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));
     313Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath, char *syncfile));
    281314int           load_images         PROTO((FITS_DB *db, SkyList *skylist, int UseFullOverlap));
    282315Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage, int UseFullOverlap));
     
    388421int setMeanR (double ra_fit, MeasureTiny *measure, Average *average, SecFilt *secfilt);
    389422int setMeanD (double dec_fit, MeasureTiny *measure, Average *average, SecFilt *secfilt);
     423double getMeanR_Big (Measure *measure, Average *average, SecFilt *secfilt);
     424double getMeanD_Big (Measure *measure, Average *average, SecFilt *secfilt);
    390425int setMeanR_Big (double ra_fit, Measure *measure, Average *average, SecFilt *secfilt);
    391426int setMeanD_Big (double dec_fit, Measure *measure, Average *average, SecFilt *secfilt);
     
    450485int hpm_catalogs_parallel (SkyList *skylist);
    451486int hpm_objects (SkyRegion *region, Catalog *catalog);
     487
     488int strextend (char *input, char *format,...);
     489int launch_region_hosts (RegionHostTable *regionHosts);
     490
     491int assign_images (FITS_DB *db, RegionHostTable *regionHosts);
     492int select_images_hostregion (RegionHostTable *regionHosts, Image *image, off_t Nimage);
     493int calculate_image_bounds (Image *image, double *rmin, double *rmax, double *dmin, double *dmax, double Rmid);
     494int calculate_host_image_bounds (RegionHostTable *regionHosts);
     495int find_host_for_coords (RegionHostTable *regionHosts, double Rc, double Dc);
     496
     497int relastro_parallel_regions ();
     498int relastro_parallel_images ();
     499
     500char *make_filename (char *dirname, char *hostname, int hostID, char *tailname);
     501int check_sync_file (char *filename, int nloop);
     502int clear_sync_file (char *filename);
     503int update_sync_file (char *filename, int nloop);
     504
     505int share_mean_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop);
     506int slurp_mean_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop);
     507int set_mean_pos (MeanPos *meanpos, Average *average);
     508MeanPos *merge_mean_pos (MeanPos *target, int *ntarget, MeanPos *source, int Nsource);
     509
     510int MeanPosSave(char *filename, MeanPos *meanpos, off_t Nmeanpos);
     511MeanPos *MeanPosLoad(char *filename, off_t *nmeanpos);
     512
     513int indexCatalogs (Catalog *catalog, int Ncatalog);
     514int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq);
     515
     516int markObjects (Catalog *catalog, int Ncatalog);
     517
     518int ImagePosSave(char *filename, ImagePos *image_pos, off_t Nimage_pos);
     519ImagePos *ImagePosLoad(char *filename, off_t *nimage_pos);
     520
     521int share_image_pos (RegionHostTable *regionHosts, int nloop);
     522int slurp_image_pos (RegionHostTable *regionHosts, int nloop);
     523ImagePos *merge_image_pos (ImagePos *target, int *ntarget, ImagePos *source, int Nsource);
     524int set_image_pos (ImagePos *image_pos, Image *image);
     525
     526Image *ImageTableLoad(char *filename, off_t *nimage);
     527int ImageTableSave (char *filename, Image *images, off_t Nimages);
     528int select_mosaics_hostregion (RegionHostTable *regionHosts, Image *image, off_t Nimage);
     529
     530float getColorBlue (off_t meas, int cat);
     531float getColorRed (off_t meas, int cat);
     532
     533int strextend (char *input, char *format,...);
     534
     535int areImagesLoaded ();
     536int areImagesMatched ();
Note: See TracChangeset for help on using the changeset viewer.