IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 10:00:41 AM (13 years ago)
Author:
eugene
Message:

add source for output, output.bkgmodel, and psphotInput in psphotParseCamera; do not activate PSPHOT.INPUT; if a background model is not supplied do not attempt to generate one; generate the metadata for the output bkgmodel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpOptions.c

    r35535 r35539  
    7070    }
    7171
    72     bool doBKG = psMetadataLookupBool(&status,recipe, "BACKGROUND.MODEL"); ///< Generate the warped background model?
     72    // BACKGROUND.MODEL gets set in config->arguments (to false) if no input model is found
     73    bool doBKG = psMetadataLookupBool(&status,config->arguments, "BACKGROUND.MODEL"); ///< Generate the warped background model?
    7374    if (!status) {
    74       doBKG = false;
     75      // if it is not in config->arguments, look in recipe
     76      doBKG = psMetadataLookupBool(&status,recipe, "BACKGROUND.MODEL"); ///< Generate the warped background model?
     77      if (!status) {
     78        doBKG = false;
    7579      psWarning("BACKGROUND.MODEL is not set in the %s recipe -- defaulting to FALSE.", PSWARP_RECIPE);
     80      }
    7681    }
     82
    7783    int bkgXgrid = psMetadataLookupS32(&status,recipe, "BKG.XGRID"); ///< Xsize of background model
    7884    if (!status) {
Note: See TracChangeset for help on using the changeset viewer.