IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2012, 6:38:28 AM (14 years ago)
Author:
eugene
Message:

relphot with parallelizations now builds (no tests on running yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/relphot/include/relphot.h

    r33169 r33254  
    77# define GRID_V2
    88# define NO_IMAGE -100
     9
     10typedef enum {
     11    MODE_NONE   = 0,
     12    MODE_LOAD   = 1,
     13    MODE_UPDATE = 2,
     14} ModeType;
    915
    1016typedef struct {
     
    3440} StatType;
    3541
     42typedef struct {
     43    AverageTiny *average;
     44    MeasureTiny *measure;
     45    SecFilt     *secfilt;
     46    off_t Naverage;
     47    off_t Nmeasure;
     48} BrightCatalog;
     49
     50typedef struct {
     51  float Mcal;
     52  float dMcal;
     53  unsigned int imageID;
     54  unsigned int photom_map_id;
     55  unsigned int flags;
     56  unsigned int tzero;
     57  unsigned char trate;
     58} ImageSubset;
     59
    3660/* global variables set in parameter file */
    3761char   ImageCat[256];
     
    4569char   SKY_TABLE[256];
    4670int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
     71
     72int          HOST_ID;
     73char        *HOSTDIR;
     74char        *IMAGES;
     75char        *BCATALOG;
     76ModeType     MODE;
    4777
    4878double MAG_LIM;
     
    133163off_t        *SelectRefMosaic     PROTO((Mosaic **refmosaic, off_t *Nimage));
    134164int           args                PROTO((int argc, char **argv));
     165int           args_client         PROTO((int argc, char **argv));
    135166int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog));
    136167void          clean_images        PROTO((void));
     
    165196Image        *getimage            PROTO((off_t N));
    166197Image        *getimages           PROTO((off_t *N, off_t **LineNumber));
     198ImageSubset  *getimages_subset    PROTO((off_t *N));
    167199void          global_stats        PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    168200void          initGrid            PROTO((int dX, int dY));
    169201void          initGridBins        PROTO((Catalog *catalog, int Ncatalog));
    170202void          initImageBins       PROTO((Catalog *catalog, int Ncatalog, int doImageList));
     203void          initImagesSubset    PROTO((ImageSubset *input, off_t *line_number, off_t N));
    171204void          initImages          PROTO((Image *input, off_t *LineNumber, off_t N));
    172205void          initMosaicBins      PROTO((Catalog *catalog, int Ncatalog, int doMosaicList));
     
    175208void          initMrel            PROTO((Catalog *catalog, int Ncatalog));
    176209void          initialize          PROTO((int argc, char **argv));
     210void          initialize_client   PROTO((int argc, char **argv));
    177211void          initstats           PROTO((char *mode));
    178212int           liststats           PROTO((double *value, double *dvalue, int N, StatType *stats));
    179 Catalog       *load_catalogs      PROTO((SkyList *skylist, int *Ncatalog));
     213Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath));
     214Catalog      *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog));
     215
    180216SkyList      *load_images         PROTO((FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect));
    181 Image         *select_images      PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));
     217Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));
    182218
    183219int           main                PROTO((int argc, char **argv));
     
    196232void          plot_star_coords    PROTO((Catalog *catalog, int Ncatalog));
    197233void          plot_stars          PROTO((Catalog *catalog, int Ncatalog));
    198 void          reload_catalogs     PROTO((SkyList *skylist, FlatCorrectionTable *flatcorr));
     234void          reload_catalogs     PROTO((SkyList *skylist, FlatCorrectionTable *flatcorr, int hostID, char *hostpath));
     235int           reload_catalogs_parallel PROTO((SkyList *sky));
    199236int           reload_images       PROTO((FITS_DB *db));
    200237int           setExclusions       PROTO((Catalog *catalog, int Ncatalog));
     
    234271void relphot_help (int argc, char **argv);
    235272
     273void relphot_client_usage (void);
     274void relphot_client_help (int argc, char **argv);
     275
    236276off_t getImageByID (off_t ID);
    237277
     
    241281int populate_tiny_values (Catalog *catalog);
    242282int free_tiny_values (Catalog *catalog);
     283
     284BrightCatalog *BrightCatalogLoad(char *filename);
     285int BrightCatalogSave(char *filename, BrightCatalog *catalog);
     286BrightCatalog *BrightCatalogMerge (Catalog *catalog, int Ncatalog);
     287
     288int ImageSubsetSave(char *filename, ImageSubset *image, off_t Nimage);
     289ImageSubset *ImageSubsetLoad(char *filename, off_t *nimage);
     290
     291int CopyAverageTiny (AverageTiny *averageT, Average *average);
     292int CopyMeasureTiny (MeasureTiny *measureT, Measure *measure);
Note: See TracChangeset for help on using the changeset viewer.