IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11353


Ignore:
Timestamp:
Jan 27, 2007, 5:03:01 PM (19 years ago)
Author:
eugene
Message:

photcode from concepts

File:
1 edited

Legend:

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

    r11263 r11353  
    3636    // XXX drop this?  we put this in the default recipe?
    3737    psMetadataAddStr (recipe, PS_LIST_TAIL, "FITMODE",         PS_META_NO_REPLACE, "default fitting mode", "NONE");
    38     psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE",        PS_META_NO_REPLACE, "default photcode",     "NONE");
    3938    psMetadataAddStr (recipe, PS_LIST_TAIL, "BREAK_POINT",     PS_META_NO_REPLACE, "default break point",  "NONE");
    4039    psMetadataAddF32 (recipe, PS_LIST_TAIL, "ZERO_PT",         PS_META_NO_REPLACE, "default zero point",    25.00);
    4140    psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.XBIN", PS_META_NO_REPLACE, "default binning",          64);
    4241    psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.YBIN", PS_META_NO_REPLACE, "default binning",          64);
     42
     43    // determine PHOTCODE from fpa & view, overwrite in recipe
     44    // XXX test this:
     45    psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE",        PS_META_NO_REPLACE, "default photcode",     "NONE");
     46    char *photcode = pmConceptsPhotcodeForView (config, input, view);
     47    if (photcode) {
     48        psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode);
     49        psFree (photcode);
     50    }
    4351
    4452    // XXX we need to be able to distinguish several cases:
     
    4957
    5058    // these calls bind the I/O handle to the specified fpa
    51     bool saveOutput = psMetadataLookupBool (&status, recipe, "SAVE.OUTPUT");
    52     if (!status || saveOutput) {
     59    bool saveOutput = psMetadataLookupBool (NULL, recipe, "SAVE.OUTPUT");
     60    if (saveOutput) {
    5361        if (!pmFPAfileDefineOutput (config, input->fpa, "PSPHOT.OUTPUT")) {
    5462            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.OUTPUT");
     
    109117    }
    110118
     119    // XXX add in example PSF image thumbnails
    111120    // pmFPAfileConstruct (config->files, format, config->camera, "PSPHOT.PSF_SAMPLE");
    112121
Note: See TracChangeset for help on using the changeset viewer.