IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36825


Ignore:
Timestamp:
Jun 6, 2014, 8:30:29 PM (12 years ago)
Author:
eugene
Message:

fixes for Koppenhoefer correction

Location:
branches/eam_branches/ipp-20140423/psastro/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/psastro/src/psastroArguments.c

    r36819 r36825  
    111111        }
    112112        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.SKIP.ASTRO", PS_META_REPLACE, "", true);
     113
     114        // SKIP.ASTRO and USE.MODEL are fundamentally incompatible
     115        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.USE.MODEL", PS_META_REPLACE, "", false);
    113116    }
    114117
  • branches/eam_branches/ipp-20140423/psastro/src/psastroConvert.c

    r36819 r36825  
    451451    float Xfix = Xraw + dX / myPltScale;
    452452
     453    // note that we carry around pix, cell, chip but the real analysis only operates on chip
     454    // if in the future we add transformations between chip->cell->pix, then we will need to
     455    // make these consistent as well.
    453456    obj->pix->x = Xfix;
     457    obj->cell->x = Xfix;
     458    obj->chip->x = Xfix;
    454459  }
    455460
  • branches/eam_branches/ipp-20140423/psastro/src/psastroDataLoad.c

    r36819 r36825  
    4242    }
    4343
    44     // apply Koppenhoeffer correction to this exposure?
    45     bool applyKH = psMetadataLookupBool (NULL, recipe, "KH.CORRECT.APPLY.EXP");
    46     if (applyKH) {
    47         // make sure the KH correction file is loaded.  de-activate all files except PSASTRO.KH.CORRECT
    48         pmFPAfileActivate (config->files, false, NULL);
    49         pmFPAfileActivate (config->files, true, "PSASTRO.KH.CORRECT");
    50 
    51         pmFPAview *viewKH = pmFPAviewAlloc (0);
    52 
    53         // files associated with the science image
    54         if (!pmFPAfileIOChecks (config, viewKH, PM_FPA_BEFORE)) {
    55             psError (PS_ERR_IO, false, "Can't load the Koppenhoeffer Correction file");
    56             return false;
    57         }
    58         psFree (viewKH);
    59     }
    60 
    6144    // select the input data sources
    6245    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
     
    6952    pmFPAfileActivate (config->files, false, NULL);
    7053    pmFPAfileActivate (config->files, true, "PSASTRO.INPUT");
     54
     55    // if we request KH Correction, activate that file as well
     56    bool applyKH = psMetadataLookupBool (NULL, recipe, "KH.CORRECT.APPLY.EXP");
     57    if (applyKH) {
     58        pmFPAfileActivate (config->files, true, "PSASTRO.KH.CORRECT");
     59    }
    7160
    7261    pmFPAview *view = pmFPAviewAlloc (0);
  • branches/eam_branches/ipp-20140423/psastro/src/psastroDefineFiles.c

    r36819 r36825  
    7272            psLogMsg ("psastro", PS_LOG_INFO, "Koppenhoefer correction requested, exposure in valid date range, correction may be applied");
    7373        }   
     74        psFree (endtime);
    7475    }
    7576    if (KHapply) {
Note: See TracChangeset for help on using the changeset viewer.