IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 22, 2007, 7:42:46 AM (18 years ago)
Author:
eugene
Message:

finished psastroModel for boresite, created gpcModel for rough theoretical model, added useModel and fixChips options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroDefineFiles.c

    r15669 r15891  
    2020    output->save = true;
    2121
    22     bool fixChips = psMetadataLookupBool (&status, recipe, "PSASTRO.FIX.CHIPS");
    23     if (fixChips) {
    24         if (!psastroDefineFile (config, input->fpa, "PSASTRO.REF.ASTROM", "REF.ASTROM", PM_FPA_FILE_ASTROM, PM_DETREND_TYPE_ASTROM)) {
    25             psError (PS_ERR_IO, false, "Can't find a reference astrometry file");
     22    bool fixChips = psMetadataLookupBool (&status, config->arguments, "PSASTRO.FIX.CHIPS");
     23    if (!status) {
     24        fixChips = psMetadataLookupBool (&status, recipe, "PSASTRO.FIX.CHIPS");
     25    }
     26    bool useModel = psMetadataLookupBool (&status, config->arguments, "PSASTRO.USE.MODEL");
     27    if (!status) {
     28        fixChips = psMetadataLookupBool (&status, recipe, "PSASTRO.USE.MODEL");
     29    }
     30    if (fixChips || useModel) {
     31        if (!psastroDefineFile (config, input->fpa, "PSASTRO.MODEL", "ASTROM.MODEL", PM_FPA_FILE_ASTROM, PM_DETREND_TYPE_ASTROM)) {
     32            psError (PS_ERR_IO, false, "Can't find an astrometry model file");
    2633            return NULL;
    2734        }
    28     }
    29 
    30     bool saveAstrom = psMetadataLookupBool (&status, recipe, "SAVE.REF.ASTROM");
    31     if (saveAstrom) {
    32         pmFPAfile *outAstrom = pmFPAfileDefineOutputFromFile (config, input, "PSASTRO.OUT.ASTROM");
    33         if (!outAstrom) {
    34             psError (PS_ERR_IO, false, "Can't find a reference astrometry file");
    35             return NULL;
    36         }
    37         outAstrom->save = true;
    3835    }
    3936
Note: See TracChangeset for help on using the changeset viewer.