IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2014, 11:43:24 AM (13 years ago)
Author:
bills
Message:

optionally save a CFF file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_branches/bills_201312/psastro/src/psastroDefineFiles.c

    r32964 r36427  
    100100    }
    101101
     102    bool writeCff = psMetadataLookupBool (&status, recipe, "PSASTRO.SAVE.CFF");
     103    if (writeCff) {
     104        pmFPAfile *file = pmFPAfileDefineOutputFromFile  (config, input, "PSPHOT.OUTPUT.CFF");
     105        if (!file) {
     106            psError (PS_ERR_IO, false, "Can't find the output cff file definition");
     107            return NULL;
     108        }
     109        if (file->type != PM_FPA_FILE_CFF) {
     110            psError(PS_ERR_IO, true, "%s is not of type %s", "PSPHOT.OUTPUT.CFF", pmFPAfileStringFromType (PM_FPA_FILE_CFF));
     111            return NULL;
     112        }
     113        file->save = true;
     114    }
     115
    102116
    103117# if (0)
Note: See TracChangeset for help on using the changeset viewer.