IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2021, 10:03:06 AM (5 years ago)
Author:
eugene
Message:

major revision of the photometric flat-field correction / grid analysis; strip out code which uses astrometric information to define the grid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/include/relphot.h

    r41557 r41603  
    44# include <signal.h>
    55# include <pthread.h>
    6 
    7 /* # define GRID_V1 */
    8 # define GRID_V2
    9 # define NO_IMAGE -100
    106
    117# define ID_SECF_STACK_PRIMARY 0x00004000
     
    9995  char skipCal;               // if TRUE, this mosaic is incomplete and should not be calibrated
    10096  char inTGroup;
    101   Coords coords;
     97  Coords coords;              // this is only used to set the mosaic center for assign_images used by region hosts
    10298} Mosaic;
    10399
     
    413409int    MOSAIC_ZEROPT;
    414410int    TGROUP_ZEROPT;
     411int    GRID_ZEROPT;
    415412
    416413int    FREEZE_IMAGES;
     
    424421int    MANUAL_ITERATION;
    425422int    NLOOP;
    426 int    NGRID;
    427423int    RESET;
    428424int    RESET_ZEROPTS;
     
    444440int    IMAGE_BAD;
    445441int    CALIBRATE_STACKS_AND_WARPS;
    446 int    USE_GRID;
     442
    447443int    KEEP_UBERCAL;
    448444char  *OUTROOT;
     
    457453char  *PhotcodeList;
    458454
    459 int    RELPHOT_GRID_X;
    460 int    RELPHOT_GRID_Y;
    461 int    RELPHOT_GRID_BINNING;
    462 
    463455int      *photseclist;
    464456int      Nphotcodes;
     
    489481SkyRegion UserPatch;
    490482char *UserCatalog;
     483
     484enum {GRID_ZPT_MODE_NONE, GRID_ZPT_MODE_ALL, };
     485int GRID_ZPT_MODE;
    491486
    492487enum {TGROUP_ZPT_MODE_NONE, TGROUP_ZPT_MODE_GOOD_NIGHT, TGROUP_ZPT_MODE_ALL, };
     
    549544int SetSignals (void);
    550545
    551 void          freeGridBins        PROTO((int Ncatalog));
     546void          freeGridBins        PROTO((void));
    552547void          freeImageBins       PROTO((int Ncatalog, int doImageList));
    553548void          freeMosaicBins      PROTO((int Ncatalog, int doMosaicList));
     
    561556float         getMcal             PROTO((off_t meas, int cat, dvoMagClassType class));
    562557float         getMflat            PROTO((off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog));
    563 float         getMgrid            PROTO((off_t meas, int cat));
     558float         getMgridTiny        PROTO((MeasureTiny *measure));
     559float         getMgrid            PROTO((Measure *measure));
    564560float         getMmos             PROTO((off_t meas, int cat));
    565561float         getMgrp             PROTO((off_t meas, int cat, float airmass, float *dZpt));
     
    571567ImageSubset  *getimages_subset    PROTO((off_t *N));
    572568void          global_stats        PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr, int nloop));
    573 void          initGrid            PROTO((int dX, int dY));
    574 void          initGridBins        PROTO((Catalog *catalog, int Ncatalog));
     569void          initGrid            PROTO(());
     570void          initGridBins        PROTO(());
    575571void          initImageBins       PROTO((Catalog *catalog, int Ncatalog, int doImageList));
    576572void          initImagesSubset    PROTO((ImageSubset *input, off_t *line_number, off_t N));
    577573void          initImages          PROTO((Image *input, off_t *LineNumber, off_t N));
    578574void          initMosaicBins      PROTO((Catalog *catalog, int Ncatalog, int doMosaicList));
    579 void          initMosaicGrid      PROTO((Image *image, off_t Nimage));
     575void          initMosaicMcal      PROTO((Image *image, off_t Nimage));
    580576void          initMosaics         PROTO((Image *subset, off_t Nsubset, Image *image, char *inSubset, off_t Nimage));
    581577void          initTGroups         PROTO((Image *subset, off_t Nsubset));
     
    621617void          plot_chisq          PROTO((Catalog *catalog, int Ncatalog));
    622618void          plot_defaults       PROTO((Graphdata *graphdata));
    623 void          plot_grid           PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
    624619void          plot_images         PROTO((void));
    625620void          plot_list           PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *format, ...) OHANA_FORMAT(printf, 6, 7) );
     
    639634int           reload_images       PROTO((FITS_DB *db));
    640635int           setExclusions       PROTO((Catalog *catalog, int Ncatalog, int verbose));
    641 void          setMgrid            PROTO((Catalog *catalog, FlatCorrectionTable *flatcorr));
     636void          setMgrid            PROTO((Catalog *catalog, int Ncatalog));
     637void          resetMgrid          PROTO((void));
     638
    642639void          setMcalFromMosaics  PROTO((void));
    643640void          setMcalFromTGroups  PROTO((void));
Note: See TracChangeset for help on using the changeset viewer.