Changeset 20641
- Timestamp:
- Nov 10, 2008, 2:06:14 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroDefineFiles.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroDefineFiles.c
r17061 r20641 33 33 return NULL; 34 34 } 35 } 36 37 // this step is optional 38 bool REFSTAR_MASK = psMetadataLookupBool (&status, recipe, "REFSTAR_MASK"); 39 if (REFSTAR_MASK) { 40 41 if (!psastroDefineFile (config, input->fpa, "PSASTRO.REFMASK", "REFMASK", PM_FPA_FILE_MASK, PM_DETREND_TYPE_MASK)) { 42 psError (PS_ERR_IO, false, "Can't find an input mask file"); 43 return NULL; 44 } 45 46 if (!psastroDefineFile (config, input->fpa, "PSASTRO.INPUT.MASK", "INPUT.MASK", PM_FPA_FILE_MASK, PM_DETREND_TYPE_MASK)) { 47 psError (PS_ERR_IO, false, "Can't find an input mask file"); 48 return NULL; 49 } 50 51 pmFPAfile *inMask = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT.MASK"); 52 if (!inMask) { 53 psError (PS_ERR_IO, false, "Can't find an input mask file"); 54 return NULL; 55 } 56 57 // XXX not yet sure if we need to mosaic or not... 58 pmFPAfile *outMask = pmFPAfileDefineOutputFromFile (config, inMask, "PSASTRO.OUTPUT.MASK"); 59 // pmFPAfile *outMask = pmFPAfileDefineChipMosaic(config, inMask->fpa, "PSASTRO.OUTPUT.MASK"); 60 if (!outMask) { 61 psError (PS_ERR_IO, false, "Can't find the astrometry refstars file definition"); 62 return NULL; 63 } 64 if (outMask->type != PM_FPA_FILE_MASK) { 65 psError(PS_ERR_IO, true, "%s is not of type %s", "PSASTRO.OUTPUT.MASK", pmFPAfileStringFromType (PM_FPA_FILE_MASK)); 66 return NULL; 67 } 68 outMask->save = true; 69 inMask->freeLevel = outMask->dataLevel; 35 70 } 36 71
Note:
See TracChangeset
for help on using the changeset viewer.
