IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2007, 1:45:58 PM (19 years ago)
Author:
rhl
Message:

Write variance of sky to PSPHOT.BACKMDL.STDEV

File:
1 edited

Legend:

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

    r12805 r13008  
    4040        if (!pmFPAfileDefineFromFPA (config, input->fpa, DX, DY, "PSPHOT.BACKMDL")) {
    4141            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.BACKMDL");
     42            return false;
     43        }
     44    }
     45    // optionally save the background model's standard deviation (small FITS image)
     46    if (psMetadataLookupBool(NULL, recipe, "SAVE.BACKMDL.STDEV")) {
     47        int DX = psMetadataLookupS32 (&status, recipe, "BACKGROUND.XBIN");
     48        int DY = psMetadataLookupS32 (&status, recipe, "BACKGROUND.YBIN");
     49        if (!pmFPAfileDefineFromFPA (config, input->fpa, DX, DY, "PSPHOT.BACKMDL.STDEV")) {
     50            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.BACKMDL.STDEV");
    4251            return false;
    4352        }
Note: See TracChangeset for help on using the changeset viewer.