IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2012, 1:46:12 PM (14 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20120405

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Ohana/src/relphot/include/relphot.h

    r33651 r33963  
    33# include <kapa.h>
    44# include <signal.h>
     5# include <pthread.h>
    56
    67/* # define GRID_V1 */
     
    2627  float dMcal;
    2728  float dMsys;
    28   short nFitPhotom;
     29  unsigned short nFitPhotom;
    2930  short Xm;
    3031  float secz;
    3132  float ubercalDist;
    3233  unsigned int flags;
     34  char skipCal;               // if TRUE, this mosaic is incomplete and should not be calibrated
    3335  Coords coords;
    3436} Mosaic;
     37
     38typedef enum {
     39  STATS_NONE,
     40  STATS_MEAN,
     41  STATS_MEDIAN,
     42  STATS_WT_MEAN,
     43  STATS_INNER_MEAN,
     44  STATS_INNER_WTMEAN,
     45  STATS_CHI_INNER_MEAN,
     46  STATS_CHI_INNER_WTMEAN
     47} ListStatsMode;
    3548
    3649typedef struct {
     
    4659  double total;
    4760  int    Nmeas;
     61  ListStatsMode statmode;
    4862} StatType;
    4963
     
    7993
    8094/* global variables set in parameter file */
    81 # define MAX_PATH_LENGTH 1024
    82 char   ImageCat[MAX_PATH_LENGTH];
    83 char   ImageTemplate[MAX_PATH_LENGTH];
    84 char   CatTemplate[MAX_PATH_LENGTH];
    85 char   GSCFILE[MAX_PATH_LENGTH];
     95# define DVO_MAX_PATH 1024
     96char   ImageCat[DVO_MAX_PATH];
     97char   ImageTemplate[DVO_MAX_PATH];
     98char   CatTemplate[DVO_MAX_PATH];
     99char   GSCFILE[DVO_MAX_PATH];
    86100char  *CATDIR;
    87101char   CATMODE[16];    /* raw, mef, split, mysql */
    88102char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
    89 char   CameraConfig[MAX_PATH_LENGTH];
     103char   CameraConfig[DVO_MAX_PATH];
    90104char   CAMERA[64];    /* eg, gpc1 */
    91 char   SKY_TABLE[MAX_PATH_LENGTH];
     105char   SKY_TABLE[DVO_MAX_PATH];
    92106int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
    93107
     
    111125int    PARALLEL_MANUAL;
    112126int    PARALLEL_SERIAL;
     127
     128int    NTHREADS;
    113129
    114130int    VERBOSE;
     
    141157int    PLOTDELAY;
    142158int    UpdateAverages;
     159int    ApplyOffsets;
    143160
    144161char  *PhotcodeList;
     
    194211int           args                PROTO((int argc, char **argv));
    195212int           args_client         PROTO((int argc, char **argv));
    196 int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog));
     213int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog, int Ncat));
    197214void          clean_images        PROTO((void));
    198215void          clean_measures      PROTO((Catalog *catalog, int Ncatalog, int final, FlatCorrectionTable *flatcorr));
     
    236253void          initMosaicBins      PROTO((Catalog *catalog, int Ncatalog, int doMosaicList));
    237254void          initMosaicGrid      PROTO((Image *image, off_t Nimage));
    238 void          initMosaics         PROTO((Image *image, off_t Nimage));
     255void          initMosaics         PROTO((Image *subset, off_t Nsubset, Image *image, char *inSubset, off_t Nimage));
    239256void          initMrel            PROTO((Catalog *catalog, int Ncatalog));
    240257void          initialize          PROTO((int argc, char **argv));
    241258void          initialize_client   PROTO((int argc, char **argv));
    242 void          initstats           PROTO((char *mode));
    243 int           liststats           PROTO((double *value, double *dvalue, int N, StatType *stats));
     259void          liststats_setmode   PROTO((StatType *stats, char *strmode));
     260int           liststats           PROTO((double *value, double *dvalue, double *wvalue, int N, StatType *stats));
    244261Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath));
    245262Catalog      *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog));
    246263
    247264SkyList      *load_images         PROTO((FITS_DB *db, char *regionName, SkyRegion *region));
    248 Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));
     265Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, char *inSubset, off_t **LineNumber, off_t *Nimage, SkyRegion *region));
    249266
    250267int           main                PROTO((int argc, char **argv));
     
    273290int           setMmos             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
    274291int           setMrel             PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    275 void          setMrelFinal        PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
     292void          setMrelFinal        PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr, int simpleAverage));
    276293int           setMrelOutput       PROTO((Catalog *catalog, int Ncatalog, int pass, FlatCorrectionTable *flatcorr));
    277294int           setMave             PROTO((Catalog *catalog, int Ncatalog));
     
    319336int ImageSubsetSave(char *filename, ImageSubset *image, off_t Nimage);
    320337ImageSubset *ImageSubsetLoad(char *filename, off_t *nimage);
     338
     339int client_logger_init ();
     340int client_logger_message (char *format,...);
     341
Note: See TracChangeset for help on using the changeset viewer.