IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2020, 11:06:35 AM (6 years ago)
Author:
eugene
Message:

add tgroups concept: periods of time which are photometric

Location:
trunk/Ohana/src/relphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot

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

    r40386 r41390  
    9090} Mosaic;
    9191
     92typedef struct {
     93  unsigned int start;
     94  unsigned int stop;
     95  short photcode;
     96  float McalPSF;
     97  float McalAPER;
     98  float dKlam;
     99  float dMcal;
     100  float dMsys;
     101  float McalChiSq;
     102  unsigned short nFitPhotom;
     103  unsigned int flags;
     104
     105  off_t Nimage;
     106  off_t NIMAGE;
     107  off_t *image;
     108
     109  off_t Nmeasure;
     110  off_t NMEASURE;
     111  off_t *measure;
     112
     113  off_t Ncatalog; // XX not needed
     114  off_t NCATALOG; // XX not needed
     115  off_t *catalog;
     116} TGroup;
     117
    92118typedef enum {
    93119  STATS_NONE,
     
    145171  int Ncal;
    146172  int Nmos;
     173  int Ngrp;
    147174  int Ngrid;
    148175
     
    305332int    VERBOSE_IMAGE;
    306333int    MOSAIC_ZEROPT;
     334int    TGROUP_ZEROPT;
     335int    TGROUP_FIT_AIRMASS;
    307336
    308337int    TEST_IMAGE1;
     
    403432void          clean_measures      PROTO((Catalog *catalog, int Ncatalog, int final, FlatCorrectionTable *flatcorr));
    404433void          clean_mosaics       PROTO((void));
     434void          clean_tgroups       PROTO((void));
    405435void          clean_stars         PROTO((Catalog *catalog, int Ncatalog));
    406436int           corner_check        PROTO((double *x1, double *y1, double *x2, double *y2));
     
    410440void          findImages          PROTO((Catalog *catalog, int Ncatalog, int doImageList));
    411441int           findMosaics         PROTO((Catalog *catalog, int Ncatalog, int doMosaicList));
     442int           findTGroups         PROTO((Catalog *catalog, int Ncatalog));
    412443
    413444void clearImages (void);
     
    428459void          freeImageBins       PROTO((int Ncatalog, int doImageList));
    429460void          freeMosaicBins      PROTO((int Ncatalog, int doMosaicList));
     461void          freeTGroupBins      PROTO((int Ncatalog));
     462
    430463void          free_catalogs       PROTO((Catalog *catalog, int Ncatalog));
    431464int           gcatalog            PROTO((Catalog *catalog, int FINAL));
     
    437470float         getMgrid            PROTO((off_t meas, int cat));
    438471float         getMmos             PROTO((off_t meas, int cat));
     472float         getMgrp             PROTO((off_t meas, int cat, float airmass));
    439473float         getMrel             PROTO((Catalog *catalog, off_t meas, int cat, dvoMagClassType class, dvoMagSourceType source));
    440474short         getUbercalDist      PROTO((off_t meas, int cat));
     
    452486void          initMosaicGrid      PROTO((Image *image, off_t Nimage));
    453487void          initMosaics         PROTO((Image *subset, off_t Nsubset, Image *image, char *inSubset, off_t Nimage));
     488void          initTGroups         PROTO((Image *subset, off_t *LineNumber, off_t Nsubset));
     489void          freeTGroups         PROTO((void));
     490void          initTGroupBins      PROTO((Catalog *catalog, int Ncatalog));
    454491void          initMrel            PROTO((Catalog *catalog, int Ncatalog));
    455492RelphotMode   initialize          PROTO((int argc, char **argv));
     
    459496int           liststats_init      PROTO((StatType *stats));
    460497int           liststats_irls      PROTO((StatDataSet *dataset, int Npoints, StatType *stats));
     498int           liststats_fit1d     PROTO((double *value, double *err, double *x, int Npts, StatType *stats, double *dk));
     499
     500unsigned int *ReadTGroupFile      PROTO((FILE *f, int *nelem));
     501void          loadTGroups         PROTO((char *filename));
     502void          initTGroupsMcal     PROTO((void));
     503TGroup       *getTGroupForImage   PROTO((off_t im));
     504off_t         findTGroup          PROTO((unsigned int start, int photcode));
    461505
    462506Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath, char *syncfile));
     
    470514void          matchImage          PROTO((Catalog *catalog, off_t meas, int cat, int doImageList));
    471515void          matchMosaics        PROTO((Catalog *catalog, off_t meas, int cat, int doMosaicList));
     516void          matchTGroups        PROTO((Catalog *catalog, off_t meas, int cat));
     517
    472518double        opening_angle       PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
    473519void          plot_chisq          PROTO((Catalog *catalog, int Ncatalog));
     
    491537int           setExclusions       PROTO((Catalog *catalog, int Ncatalog, int verbose));
    492538void          setMcal             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
    493 void          setMcalFinal        PROTO((void));
     539void          setMcalFromMosaics  PROTO((void));
     540void          setMcalFromTGroups  PROTO((void));
    494541int           setMcalOutput       PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    495542void          setMgrid            PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
    496543int           setMmos             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
     544int           setMgrp             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
    497545int           setMrel             PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    498546void          setMrelFinal        PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr, int simpleAverage));
     
    677725void RepairWarpMeasuresOpenLogfile ();
    678726void RepairWarpMeasuresCloseLogfile ();
     727
     728int save_images_backup (FITS_DB *db);
Note: See TracChangeset for help on using the changeset viewer.