IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2007, 12:18:53 PM (20 years ago)
Author:
eugene
Message:

adding mask and weight, fixing input psf option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotParseCamera.c

    r11173 r11190  
    1515    // select recipe options supplied on command line
    1616    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
     17
     18    // if MASK or WEIGHT was supplied on command line, bind files to input fpa
     19    // XXX these do not quite yet work: pmFPAAddSourceFromHeader is not appropriate
     20    pmFPAfileBindFromArgs (NULL, input, config, "INPUT.MASK", "MASK");
     21    pmFPAfileBindFromArgs (NULL, input, config, "INPUT.WEIGHT", "WEIGHT");
     22   
     23    // optionally load the PSF Model
     24    pmFPAfile *psfInput = pmFPAfileBindFromArgs (NULL, input, config, "INPUT.PSF", "PSF");
     25    if (psfInput == NULL) {
     26        fprintf (stderr, "!");
     27    }
    1728
    1829    // set default recipe values here
     
    8192        }
    8293    }
    83     // optionally load the PSF Model
    84     if (psMetadataLookupBool(NULL, recipe, "LOAD.PSF")) {
    85         if (!pmFPAfileDefineInput (config, input->fpa, "PSPHOT.PSF.LOAD")) {
    86             psError(PS_ERR_IO, false, "Cannot find a rule for PSPHOT.PSF.LOAD");
    87             return false;
    88         }
    89     }
    9094
    91     // optionally save the PSF Model
     95    // optionally save output plots
    9296    if (psMetadataLookupBool(NULL, recipe, "SAVE.PLOTS")) {
    9397        if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.MOMENTS")) {
Note: See TracChangeset for help on using the changeset viewer.