IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11190


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

adding mask and weight, fixing input psf option

Location:
trunk/psphot/src
Files:
2 edited

Legend:

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

    r11009 r11190  
    9898    psFree (options);
    9999
     100    // if these command-line options are supplied, load the file name lists into config->arguments
     101    // override any configuration-specified source for these files
     102    pmConfigFileSetsMD (config->arguments, config, "MASK",   "-mask", "-masklist");
     103    pmConfigFileSetsMD (config->arguments, config, "WEIGHT", "-weight", "-weightlist");
     104    pmConfigFileSetsMD (config->arguments, config, "PSF",    "-psf", "-psflist");
     105
    100106    // the input file is a required argument; if not found, we will exit
    101107    status = pmConfigFileSetsMD (config->arguments, config, "INPUT", "-file", "-list");
  • 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.