IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2007, 12:37:04 PM (19 years ago)
Author:
eugene
Message:

added psphotAddPhotcode

File:
1 edited

Legend:

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

    r11313 r11382  
    7373    }
    7474    fclose (f);
     75    return true;
     76}
     77
     78bool psphotAddPhotcode (psMetadata *recipe, pmConfig *config, pmFPAview *view) {
     79
     80    bool status;
     81
     82    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
     83    assert (status);
     84
     85    // determine PHOTCODE from fpa & view, overwrite in recipe
     86    // XXX test this:
     87    char *photcode = pmConceptsPhotcodeForView (config, input, view);
     88    assert (photcode);
     89
     90    psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode);
     91    psLogMsg ("psphot", 3, "PHOTCODE is %s", photcode);
     92
     93    psFree (photcode);
    7594    return true;
    7695}
Note: See TracChangeset for help on using the changeset viewer.