IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36362


Ignore:
Timestamp:
Dec 10, 2013, 11:12:58 AM (13 years ago)
Author:
bills
Message:

Fix recipe values consulted when deciding whether to attempt to read an XSRC extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psModules/src/objects/pmSourceIO.c

    r36351 r36362  
    478478        }
    479479
    480         // if this is not TRUE, the output files only contain the psf measurements.
     480        // if none of these are TRUE, the output files only contain the psf measurements.
    481481        bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN");
    482482        bool doAnnuli    = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI");
     
    10291029        }
    10301030
    1031         // if this is not TRUE, the output files only contain the psf measurements.
    1032         bool XSRC_OUTPUT = psMetadataLookupBool(&status, recipe, "EXTENDED_SOURCE_ANALYSIS");
     1031        // if none of these are TRUE, we only read the psf measurements
     1032        // XXX: shouldn't we look for these extensions and read the regardless of the recipe values?
     1033        bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN");
     1034        bool doAnnuli    = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI");
     1035        bool XSRC_OUTPUT = doPetrosian || doAnnuli;
    10331036        bool XFIT_OUTPUT = psMetadataLookupBool(&status, recipe, "EXTENDED_SOURCE_FITS");
    10341037        bool XRAD_OUTPUT = psMetadataLookupBool(&status, recipe, "RADIAL_APERTURES");
Note: See TracChangeset for help on using the changeset viewer.