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/relphot_parallel_images.c

    r41603 r41606  
    4040  initImages (image, NULL, Nimage);
    4141
    42   // load the flat correction table (if defined)
    43   // we no longer need to do this: the flatcorrection is now saved in measure.Mflat
    44 # if (0)
    45   char flatcorrfile[256];
    46   sprintf (flatcorrfile, "%s/flatcorr.fits", CATDIR);
    47   FlatCorrectionTable *flatcorr = FlatCorrectionLoad (flatcorrfile, VERBOSE);
    48 # endif
    49   FlatCorrectionTable *flatcorr = NULL;
    50 
    5142  // UserPatch.Rmin,Rmax may have range from a few degrees < 0.0 to few degrees > 360.0.
    5243  // the following function correctly chooses the sky regions on the 0,360 boundary
     
    8879  setExclusions (catalog, Ncatalog, TRUE);
    8980
    90   global_stats (catalog, Ncatalog, flatcorr, 0);
     81  global_stats (catalog, Ncatalog, 0);
    9182
    9283  if (PLOTSTUFF) {
     
    10192
    10293    // set the mean stellar mags given the measurements and the image calibrations
    103     setMrel  (catalog, Ncatalog, flatcorr);
     94    setMrel  (catalog, Ncatalog);
    10495
    10596    // share mean mags for objects at the boundary (number of unowned meas > 0)
     
    112103
    113104    // set the image (Mcal) and mosaic (Mmos) zero point offsets given the mean mags and measurements
    114     setMcal  (catalog, flatcorr);
    115     setMmos  (catalog, flatcorr);
    116     // setMgrp  (catalog, FALSE, flatcorr); XXX think this through: this may not make sense for tgroups
     105    setMcal  (catalog);
     106    setMmos  (catalog);
     107    // setMgrp  (catalog, FALSE); XXX think this through: this may not make sense for tgroups
    117108    MARKTIME("-- set Mrel, Mcal, Mmos, Mgrid : %f sec\n", dtime);
    118109   
     
    124115    client_logger_message ("slurped image data : loop %d \n", i);
    125116
    126     global_stats (catalog, Ncatalog, flatcorr, i);
     117    global_stats (catalog, Ncatalog, i);
    127118
    128119    SetZeroPointModes ();
Note: See TracChangeset for help on using the changeset viewer.