IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2021, 2:04:53 PM (5 years ago)
Author:
eugene
Message:

I have stripped out all flatcorr references : flat correction is applied by setphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/ImageOps.c

    r41604 r41606  
    497497}
    498498
    499 float getMflat (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) {
    500   OHANA_UNUSED_PARAM(flatcorr);
    501 
    502   off_t i = MeasureToImage[cat][meas];
    503   if (i == -1) return (NAN);
    504 
    505   float offset = catalog[cat].measureT[meas].Mflat;
    506   if (!isfinite(offset)) {
    507     offset = 0.0;
    508   }
    509   return (offset);
    510 }
    511 
    512499Coords *getCoords (off_t meas, int cat) {
    513500
     
    520507
    521508/* determine Mcal values for all images */
    522 void setMcal (Catalog *catalog, FlatCorrectionTable *flatcorr) {
     509void setMcal (Catalog *catalog) {
    523510
    524511  off_t i, j, m, c, n;
     
    651638      // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
    652639
    653       float Mflat = getMflat (m, c, flatcorr, catalog);
     640      float Mflat = getMflat (m, c, catalog);
    654641
    655642      n = catalog[c].measureT[m].averef;
     
    773760
    774761/* determine McalTEST values for all images -- this is not used to set measure.Mcal, but only to test */
    775 void setMcalTest (Catalog *catalog, FlatCorrectionTable *flatcorr) {
     762void setMcalTest (Catalog *catalog) {
    776763
    777764  off_t i, j, m, c, n;
     
    845832      // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
    846833
    847       float Mflat = getMflat (m, c, flatcorr, catalog);
     834      float Mflat = getMflat (m, c, catalog);
    848835
    849836      // get the PSF magnitude for thie measurement, with airmass slope applied
     
    10841071}
    10851072
    1086 StatType statsImageN (Catalog *catalog, FlatCorrectionTable *flatcorr) {
     1073StatType statsImageN (Catalog *catalog) {
    10871074
    10881075  off_t i, j, m, c, n, N;
Note: See TracChangeset for help on using the changeset viewer.