IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2021, 4:33:51 PM (6 years ago)
Author:
eugene
Message:

substantial updates to the zero point statistics analysis

File:
1 edited

Legend:

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

    r41453 r41462  
    8484  float secz;
    8585  float ubercalDist;
    86   unsigned short nFitPhotom;
     86  unsigned int nFitPhotom;
     87  unsigned int nValPhotom;
    8788  unsigned int flags;
    8889  char skipCal;               // if TRUE, this mosaic is incomplete and should not be calibrated
     90  char inTGroup;
    8991  Coords coords;
    9092} Mosaic;
     
    9799  float dMcal;
    98100  float dMsys;
     101  float stdev;
    99102  float McalChiSq;
    100   unsigned short nFitPhotom;
     103  unsigned int nFitPhotom;
     104  unsigned int nValPhotom;
    101105  unsigned int flags;
    102106
     
    109113  off_t *measure;
    110114  off_t *catalog;
     115
     116  off_t Nmosaic;
     117  off_t NMOSAIC;
     118  Mosaic **mosaic; // pointer to the mosaic structures
    111119
    112120  void *parent;
     
    185193  int     Nlist;              // total number of measurements in list (may be more than the number to use)
    186194  int     Nbootstrap;         // number of bootstrap iterations
     195  int     MaxIterations;      // number of IRLS iterations
    187196
    188197  // input data & parameters:
     
    387396int    VERBOSE2;
    388397int    VERBOSE_IMAGE;
     398
    389399int    MOSAIC_ZEROPT;
    390400int    TGROUP_ZEROPT;
     401
     402int    FREEZE_IMAGES;
     403int    FREEZE_MOSAICS;
     404
    391405int    TGROUP_FIT_AIRMASS;
    392406
     
    414428double IMAGE_GOOD_FRACTION;
    415429int    IMAGE_BAD;
    416 int    FREEZE_IMAGES;
    417 int    FREEZE_MOSAICS;
    418430int    CALIBRATE_STACKS_AND_WARPS;
    419431int    USE_GRID;
     
    461473SkyRegion UserPatch;
    462474char *UserCatalog;
     475
     476enum {TGROUP_ZPT_MODE_NONE, TGROUP_ZPT_MODE_GOOD_NIGHT, TGROUP_ZPT_MODE_ALL, };
     477int TGROUP_ZPT_MODE;
     478
     479enum {MOSAIC_ZPT_MODE_NONE, MOSAIC_ZPT_MODE_BAD_NIGHT, MOSAIC_ZPT_MODE_GOOD_MOSAIC, MOSAIC_ZPT_MODE_BAD_NIGHT_GOOD_MOSAIC, MOSAIC_ZPT_MODE_ALL, };
     480int MOSAIC_ZPT_MODE;
     481
     482enum {IMAGE_ZPT_MODE_NONE, IMAGE_ZPT_MODE_BAD_NIGHT, IMAGE_ZPT_MODE_BAD_MOSAIC, IMAGE_ZPT_MODE_BAD_NIGHT_BAD_MOSAIC, IMAGE_ZPT_MODE_ALL, };
     483int IMAGE_ZPT_MODE;
    463484
    464485int USE_ALL_IMAGES;
     
    526547float         getMgrid            PROTO((off_t meas, int cat));
    527548float         getMmos             PROTO((off_t meas, int cat));
    528 float         getMgrp             PROTO((off_t meas, int cat, float airmass));
     549float         getMgrp             PROTO((off_t meas, int cat, float airmass, float *dZpt));
    529550float         getMrel             PROTO((Catalog *catalog, off_t meas, int cat, dvoMagClassType class, dvoMagSourceType source));
    530551short         getUbercalDist      PROTO((off_t meas, int cat));
     
    601622int           reload_images       PROTO((FITS_DB *db));
    602623int           setExclusions       PROTO((Catalog *catalog, int Ncatalog, int verbose));
    603 void          setMcal             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
     624void          setMgrid            PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
    604625void          setMcalFromMosaics  PROTO((void));
    605626void          setMcalFromTGroups  PROTO((void));
    606627int           setMcalOutput       PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    607 void          setMgrid            PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
    608 int           setMmos             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
    609 int           setMgrp             PROTO((Catalog *catalog, int Poor, FlatCorrectionTable *flatcorr));
     628
     629void          setMcal             PROTO((Catalog *catalog, int Nloop, int Poor, FlatCorrectionTable *flatcorr));
     630int           setMmos             PROTO((Catalog *catalog, int Nloop, int Poor, FlatCorrectionTable *flatcorr));
     631int           setMgrp             PROTO((Catalog *catalog, int Nloop, int Poor, FlatCorrectionTable *flatcorr));
     632
    610633int           setMrel             PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
    611634void          setMrelFinal        PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr, int simpleAverage));
    612635int           setMrelOutput       PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
     636
    613637int           setMave             PROTO((Catalog *catalog, int Ncatalog));
    614638void          set_ZP              PROTO((double ZERO));
     
    627651StatType      statsMosaicX        PROTO((Catalog *catalog));
    628652StatType      statsMosaicdM       PROTO((Catalog *catalog));
     653StatType      statsTGroupM        PROTO((Catalog *catalog));
     654StatType      statsTGroupX        PROTO((Catalog *catalog));
     655StatType      statsTGroupdM       PROTO((Catalog *catalog));
     656
    629657StatType      statsStarN          PROTO((Catalog *catalog, int Ncatalog, int Nsec, int seccode, FlatCorrectionTable *flatcorr));
    630658StatType      statsStarS          PROTO((Catalog *catalog, int Ncatalog, int Nsec));
     
    795823
    796824int save_images_backup (FITS_DB *db);
     825
     826void dump_tgroups (Catalog *catalog, int Npass);
     827void dump_catalog (Catalog *catalog, off_t c, int Npass);
     828
     829void SetZeroPointModes (int nloop);
Note: See TracChangeset for help on using the changeset viewer.