Changeset 37807 for trunk/Ohana/src/relastro/include/relastro.h
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/relastro/include/relastro.h (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/relastro/include/relastro.h
r37261 r37807 34 34 35 35 typedef struct { 36 floatR;37 floatD;36 double R; 37 double D; 38 38 unsigned int objID; 39 39 unsigned int catID; 40 40 } MeanPos; 41 42 typedef struct { 43 double R; 44 double D; 45 unsigned int objID; 46 unsigned int catID; 47 unsigned int imageID; 48 } MeasPos; 41 49 42 50 typedef struct { … … 47 55 int nFitAstrom; 48 56 int flags; 57 float refColorBlue; 58 float refColorRed; 49 59 } ImagePos; 50 60 … … 142 152 } FitStats; 143 153 154 typedef struct { 155 double scale; 156 double **Roff; 157 double **Doff; 158 double *dR; 159 int *Nra; 160 int Ndec; 161 } FrameCorrectionType; 162 163 typedef struct { 164 // AstromOffsetMap *map; 165 Coords *coords; // carries a pointer to the AstromOffsetMap 166 FrameCorrectionType *frame; 167 } FrameCorrectionSet; 168 169 170 typedef struct { 171 double *Rave; 172 double *Dave; 173 double *dRoff; 174 double *dDoff; 175 int Nicrfobj; 176 } ICRFobj; 177 144 178 /* global variables set in parameter file */ 145 179 # define DVO_MAX_PATH 1024 … … 172 206 double MIN_ERROR; 173 207 208 int IMFIT_TOO_FEW; // need more than this number of stars to fit an image 174 209 int IMFIT_CLIP_NITER; // number of clipping iterations to perform in FitChip 175 210 double IMFIT_CLIP_NSIGMA; // number of sigma to clip in FitChip … … 188 223 189 224 int USE_FIXED_PIXCOORDS; 225 int USE_GALAXY_MODEL; 226 int USE_ICRF_CORRECT; 227 228 int USE_ICRF_LOCAL; 229 int USE_ICRF_SHFIT; 230 int USE_ICRF_POLE; 190 231 191 232 int RESET; 233 int RESET_IMAGES; 192 234 int RESET_BAD_IMAGES; 193 235 int NLOOP; … … 204 246 int PLOTDELAY; 205 247 int CHIPORDER; 248 int CHIPMAP; 206 249 207 250 int MaxDensityUse; … … 242 285 int CLIP_THRESH; 243 286 int USE_BASIC_CHECK; 287 int APPLY_OFFSETS; // in parallel-regions mode, do not launch UpdateObjectOffsets unless -apply-offsets is called 244 288 245 289 int ExcludeBogus; … … 397 441 void FitSimple (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 398 442 void initObjectData (Catalog *catalog, int Ncatalog); 399 int UpdateObjects (Catalog *catalog, int Ncatalog );443 int UpdateObjects (Catalog *catalog, int Ncatalog, int Nloop); 400 444 int UpdateSimple (Catalog *catalog, int Ncatalog); 401 445 int UpdateChips (Catalog *catalog, int Ncatalog); … … 417 461 StarData *getImageRef (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 418 462 StarData *getImageRaw (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 463 int setImageRaw (Catalog *catalog, int Ncatalog, off_t im, StarData *raw, off_t Nraw, CoordMode mode); 419 464 off_t getImageByID (off_t ID); 465 int updateImageRaw (Catalog *catalog, int Ncatalog, off_t im); 420 466 421 467 Mosaic *getmosaics (off_t *N); … … 447 493 int relastroGetVisual(void); 448 494 449 int FixProblemImages (SkyList *skylist);450 495 int *getCatlist (int *N, off_t im); 451 496 452 void initCoords (void); 453 void getOffsets (double *dPos, off_t *nPos, off_t N); 454 void saveOffsets (double dPos, off_t nPos, off_t N); 455 void setBadCoords (off_t N); 456 int badCoords (off_t N); 457 Coords *getCoords (off_t N); 458 int saveCoords (Coords *coords, off_t N); 459 void resetImageRaw (Catalog *catalog, int Ncatalog, off_t im); 497 void SaveCoords (Coords *tgt, Coords *src); 498 void RestoreCoords (Coords *tgt, Coords *src, Image *image); 460 499 461 500 int high_speed_catalogs (SkyTable *sky, SkyList *skylist, int hostID, char *hostpath); … … 468 507 int checkStarMap(int N); 469 508 int createStarMap (Catalog *catalog, int Ncatalog); 509 int printStarMap(int N, char *filename); 470 510 471 511 int GetScatterRawRef(float *dLsig, float *dMsig, float *dRsig, int *nKeep, StarData *raw, StarData *ref, int Nstars, float SigmaLimit); … … 519 559 MeanPos *MeanPosLoad(char *filename, off_t *nmeanpos); 520 560 561 int share_meas_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 562 int slurp_meas_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 563 int set_meas_pos (MeasPos *measpos, Average *average, MeasureTiny *measure); 564 MeasPos *merge_meas_pos (MeasPos *target, int *ntarget, MeasPos *source, int Nsource); 565 566 int MeasPosSave(char *filename, MeasPos *measpos, off_t Nmeaspos); 567 MeasPos *MeasPosLoad(char *filename, off_t *nmeaspos); 568 521 569 int indexCatalogs (Catalog *catalog, int Ncatalog); 522 570 int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq); … … 528 576 529 577 int share_image_pos (RegionHostTable *regionHosts, int nloop); 530 int slurp_image_pos ( RegionHostTable *regionHosts, int nloop);578 int slurp_image_pos (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 531 579 ImagePos *merge_image_pos (ImagePos *target, int *ntarget, ImagePos *source, int Nsource); 532 580 int set_image_pos (ImagePos *image_pos, Image *image); … … 547 595 int isGPC1stack (int photcode); 548 596 int isGPC1warp (int photcode); 597 598 int save_astrom_table (); 599 AstromOffsetTable *get_astrom_table (); 600 void put_astrom_table (AstromOffsetTable *myTable); 601 602 int fit_map (AstromOffsetMap *map, StarData *raw, StarData *ref, int Npts); 603 604 // ICRF QSOs : these must be marked in the database (flag on average, flag on measure) 605 606 void ICRFinit (); 607 int ICRFsave (int cat, int ave, int meas); 608 int ICRFdata (int n, int *cat, int *ave, int *meas); 609 int ICRFmax (); 610 int select_catalog_ICRF (Catalog *catalog, int Ncatalog); 611 612 void ICRFobjFree (ICRFobj *icrfobj); 613 ICRFobj *get_ICRF_data (Catalog *catalog, int Ncatalog); 614 ICRFobj *merge_icrf_obj (ICRFobj *target, ICRFobj *source); 615 ICRFobj *slurp_icrf_obj (RegionHostTable *regionHosts, int nloop); 616 int share_icrf_obj (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 617 618 int ICRFobjSave(char *filename, ICRFobj *icrfobj); 619 ICRFobj *ICRFobjLoad(char *filename); 620 621 int SHfitWithMask (double *R, double *D, double *value, int *mask, int Npts, SHterms *fit); 622 623 FrameCorrectionType *FrameCorrectionInit (double scale); 624 void FrameCorrectionFree (FrameCorrectionType *frame); 625 626 int FrameCorrectionParallelMaster (RegionHostTable *regionHosts); 627 int FrameCorrectionParallelSlave (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop); 628 int FrameCorrectionSerial (Catalog *catalog, int Ncatalog); 629 630 FrameCorrectionSet *FrameCorrectionMeasure (ICRFobj *icrfobj); 631 632 int FrameCorrectionFromSH (FrameCorrectionType *frame, SHterms *dR, SHterms *dD); 633 634 Coords *FrameCorrectionImageToMap (Header *header, Matrix *matrix, Coords *coords, int raDirection); 635 int FrameCorrectionMapToImage (Header *header, Matrix *matrix, Coords *coords, int raDirection); 636 int FrameCorrectionSHtoImage (Header *header, Matrix *matrix, FrameCorrectionType *frame, int raDirection); 637 FrameCorrectionType *FrameCorrectionImageToSH (Header *header, Matrix *matrix, FrameCorrectionType *frame, int raDirection); 638 int FrameCorrectionFromSH (FrameCorrectionType *frame, SHterms *dR, SHterms *dD); 639 void FrameCorrectionFree (FrameCorrectionType *frame); 640 FrameCorrectionType *FrameCorrectionInit (double scale); 641 void FrameCorrectionSetFree (FrameCorrectionSet *set); 642 FrameCorrectionSet *FrameCorrectionSetInit (); 643 644 int FrameCorrectionSetSave(char *filename, FrameCorrectionSet *set); 645 FrameCorrectionSet *FrameCorrectionSetLoad(char *filename); 646 647 int FrameCorrectionFitSH (ICRFobj *icrfobj, SHterms *dRc, SHterms *dDc); 648 int FrameCorrectionFitLocal (ICRFobj *icrfobj, Coords *coords); 649 int FrameCorrectionApply (Catalog *catalog, int Ncatalog, FrameCorrectionType *frame, Coords *coords); 650 651 int dump_stardata_pts (StarData *raw, int Npts, char *filename); 652 void printNcatTotal (); 653 654 int HarvestRegionHosts (RegionHostTable *regionHosts); 655 656 void lockUpdateChips (); 657 void unlockUpdateChips (); 658 659 int client_logger_init (char *dirname); 660 int client_logger_message (char *format,...);
Note:
See TracChangeset
for help on using the changeset viewer.
