Changeset 39481 for trunk/Ohana/src/relphot/include/relphot.h
- Timestamp:
- Mar 24, 2016, 10:03:04 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/include/relphot.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r39479 r39481 11 11 # define ID_SECF_STACK_PRIMARY 0x00004000 12 12 13 # ifndef MAX_INT 14 # define MAX_INT 2147483647 15 # endif 16 13 17 // choose off_t or int depending on full-scale relphot analysis resources 14 18 // # define IDX_T off_t 15 19 # define IDX_T int 20 21 typedef struct { 22 int minID; 23 int maxID; 24 int *index; 25 int Nindex; 26 int NINDEX; 27 } myIndexType; 16 28 17 29 typedef enum { … … 279 291 int RESET; 280 292 int RESET_ZEROPTS; 293 int REPAIR_WARPS; 281 294 int UPDATE; 282 295 int SAVE_IMAGE_UPDATES; … … 418 431 Catalog *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog, char *syncfile)); 419 432 420 int load_images PROTO((FITS_DB *db, SkyList *skylist, SkyRegion *region ));433 int load_images PROTO((FITS_DB *db, SkyList *skylist, SkyRegion *region, int unlockImages)); 421 434 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, char *inSubset, off_t **LineNumber, off_t *Nimage, SkyRegion *region)); 422 435 … … 475 488 void wimages PROTO((void)); 476 489 void write_coords PROTO((Header *header, Coords *coords)); 477 int relphot_objects (Sky Table *sky, SkyList *skylist, int hostID, char *hostpath);490 int relphot_objects (SkyList *skylist, int hostID, char *hostpath); 478 491 int relphot_images (SkyList *skylist); 479 492 … … 507 520 508 521 int load_tess (char *treefile); 522 void free_tess (void); 509 523 int get_tess_ids (int *tessID, int *projID, int *skycellID, double ra, double dec); 510 524 int TessellationIDsByImageName (int *tessID, int *projID, int *skycellID, char *name); … … 532 546 int add_synthetic_mags (AverageTiny *average, SecFilt *secfilt, MeasureTiny *measure, off_t *Nmeasure, off_t *Nm); 533 547 534 int relphot_parallel_regions (); 548 int relphot_parallel_regions (SkyTable *sky); 549 int relphot_parallel_images (SkyTable *sky); 535 550 536 551 int assign_images (FITS_DB *db, RegionHostTable *regionHosts); … … 546 561 int indexCatalogs (Catalog *catalog, int Ncatalog); 547 562 int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq); 563 void freeCatalogIndexes (int Ncatalog); 548 564 549 565 int check_sync_file (char *filename, int nloop); … … 569 585 570 586 int markObjects (Catalog *catalog, int Ncatalog); 571 572 int relphot_parallel_images ();573 int relphot_parallel_regions ();574 587 575 588 // in extra.c … … 587 600 SynthZeroPoints *SynthZeroPointsGet (); 588 601 589 int relphot_synthphot ( int hostID, char *hostpath);602 int relphot_synthphot (SkyList *sky, int hostID, char *hostpath); 590 603 int relphot_synthphot_parallel (SkyList *sky); 591 604 … … 598 611 599 612 void relphot_free (SkyTable *sky, SkyList *skylist); 600 void freeImages ( );613 void freeImages (int freeImageData); 601 614 void relphot_client_free (SkyTable *sky, SkyList *skylist); 602 615 void BrightCatalogFree (BrightCatalog *bcatalog); 603 616 617 void put_astrom_table (AstromOffsetTable *myTable); 604 618 void free_astrom_table (); 619 620 int RepairWarpMeasures (Catalog *catalog); 621 622 int FindWarpGroups (void); 623 int GetWarpSeq (Image *image, int obstime, unsigned short photcode, double Rave, double Dave, float X, float Y); 624 void FreeWarpGroups (void); 625 626 myIndexType *myIndexInit (); 627 int myIndexFree (myIndexType *myIndex); 628 int myIndexUpdateLimits (myIndexType *myIndex, int value); 629 int myIndexSetRange (myIndexType *myIndex); 630 int myIndexSetEntry (myIndexType *myIndex, int value, int entry); 631 int myIndexGetEntry (myIndexType *myIndex, int value); 632 633 uint64_t CreatePSPSObjectID(double ra, double dec); 634 uint64_t CreatePSPSStackDetectionID(int sourceID, int imageID, int detID); 635 uint64_t CreatePSPSDetectionID(double tobs, int ccdid, int detID);
Note:
See TracChangeset
for help on using the changeset viewer.
