IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2016, 10:03:04 AM (10 years ago)
Author:
eugene
Message:

add warp repair option (copied from relastro); free boundary & tessellation tree; free memory; call load_images in relphot_objects; when load_images is called by relphot_objects, free the full image set leaving only the subset; push SkyList load as high as possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r39479 r39481  
    1111# define ID_SECF_STACK_PRIMARY 0x00004000
    1212
     13# ifndef MAX_INT
     14# define MAX_INT 2147483647
     15# endif
     16
    1317// choose off_t or int depending on full-scale relphot analysis resources
    1418// # define IDX_T off_t
    1519# define IDX_T int
     20
     21typedef struct {
     22  int minID;
     23  int maxID;
     24  int *index;
     25  int Nindex;
     26  int NINDEX;
     27} myIndexType;
    1628
    1729typedef enum {
     
    279291int    RESET;
    280292int    RESET_ZEROPTS;
     293int    REPAIR_WARPS;
    281294int    UPDATE;
    282295int    SAVE_IMAGE_UPDATES;
     
    418431Catalog      *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog, char *syncfile));
    419432
    420 int           load_images         PROTO((FITS_DB *db, SkyList *skylist, SkyRegion *region));
     433int           load_images         PROTO((FITS_DB *db, SkyList *skylist, SkyRegion *region, int unlockImages));
    421434Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, char *inSubset, off_t **LineNumber, off_t *Nimage, SkyRegion *region));
    422435
     
    475488void          wimages             PROTO((void));
    476489void          write_coords        PROTO((Header *header, Coords *coords));
    477 int relphot_objects (SkyTable *sky, SkyList *skylist, int hostID, char *hostpath);
     490int relphot_objects (SkyList *skylist, int hostID, char *hostpath);
    478491int relphot_images (SkyList *skylist);
    479492
     
    507520
    508521int load_tess (char *treefile);
     522void free_tess (void);
    509523int get_tess_ids (int *tessID, int *projID, int *skycellID, double ra, double dec);
    510524int TessellationIDsByImageName (int *tessID, int *projID, int *skycellID, char *name);
     
    532546int add_synthetic_mags (AverageTiny *average, SecFilt *secfilt, MeasureTiny *measure, off_t *Nmeasure, off_t *Nm);
    533547
    534 int relphot_parallel_regions ();
     548int relphot_parallel_regions (SkyTable *sky);
     549int relphot_parallel_images (SkyTable *sky);
    535550
    536551int assign_images (FITS_DB *db, RegionHostTable *regionHosts);
     
    546561int indexCatalogs (Catalog *catalog, int Ncatalog);
    547562int catID_and_objID_to_seq (int catID, int objID, int *catSeq, off_t *objSeq);
     563void freeCatalogIndexes (int Ncatalog);
    548564
    549565int check_sync_file (char *filename, int nloop);
     
    569585
    570586int markObjects (Catalog *catalog, int Ncatalog);
    571 
    572 int relphot_parallel_images ();
    573 int relphot_parallel_regions ();
    574587
    575588// in extra.c
     
    587600SynthZeroPoints *SynthZeroPointsGet ();
    588601
    589 int relphot_synthphot (int hostID, char *hostpath);
     602int relphot_synthphot (SkyList *sky, int hostID, char *hostpath);
    590603int relphot_synthphot_parallel (SkyList *sky);
    591604
     
    598611
    599612void relphot_free (SkyTable *sky, SkyList *skylist);
    600 void freeImages ();
     613void freeImages (int freeImageData);
    601614void relphot_client_free (SkyTable *sky, SkyList *skylist);
    602615void BrightCatalogFree (BrightCatalog *bcatalog);
    603616
     617void put_astrom_table (AstromOffsetTable *myTable);
    604618void free_astrom_table ();
     619
     620int RepairWarpMeasures (Catalog *catalog);
     621
     622int FindWarpGroups (void);
     623int GetWarpSeq (Image *image, int obstime, unsigned short photcode, double Rave, double Dave, float X, float Y);
     624void FreeWarpGroups (void);
     625
     626myIndexType *myIndexInit ();
     627int myIndexFree (myIndexType *myIndex);
     628int myIndexUpdateLimits (myIndexType *myIndex, int value);
     629int myIndexSetRange (myIndexType *myIndex);
     630int myIndexSetEntry (myIndexType *myIndex, int value, int entry);
     631int myIndexGetEntry (myIndexType *myIndex, int value);
     632
     633uint64_t CreatePSPSObjectID(double ra, double dec);
     634uint64_t CreatePSPSStackDetectionID(int sourceID, int imageID, int detID);
     635uint64_t CreatePSPSDetectionID(double tobs, int ccdid, int detID);
Note: See TracChangeset for help on using the changeset viewer.