Changeset 35382
- Timestamp:
- Apr 9, 2013, 12:10:11 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307/pswarp/src
- Files:
-
- 2 edited
-
Makefile.am (modified) (1 diff)
-
pswarpParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/pswarp/src/Makefile.am
r35373 r35382 35 35 pswarpDefine.c \ 36 36 pswarpDefineBackground.c \ 37 pswarpDefineSkycell.c \38 37 pswarpErrorCodes.c \ 39 38 pswarpMapGrid.c \ -
branches/eam_branches/ipp-20130307/pswarp/src/pswarpParseCamera.c
r34800 r35382 91 91 92 92 // The input skycell is a required argument: it defines the output image 93 // XXX we may need a different skycell structure here 94 pmFPAfile *skycell = NULL; 93 bool status = false; 95 94 pmConfig *skyConfig = NULL; 96 bool status = pswarpDefineSkycell(&skycell, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL"); 97 if (!status) { 98 psError(psErrorCodeLast(), false, "Failed to build FPA from PSWARP.SKYCELL"); 99 return false; 100 } 95 pmFPAfile *skycell = pmFPAfileDefineNewConfig(&status, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL"); 96 if (!status || !skycell) { 97 psError(psErrorCodeLast(), false, "Failed to build FPA from PSWARP.SKYCELL"); 98 return false; 99 } 100 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "SKYCELL.CAMERA", 0, "Name of camera for skycell", skyConfig->cameraName); 101 101 psFree(skyConfig); 102 102 … … 142 142 if (inBackground && psMetadataLookupBool(&mdok, recipe, "BACKGROUND.MODEL")) { 143 143 pmFPAfile *outBackground = pmFPAfileDefineSkycell(config, NULL, "PSWARP.OUTPUT.BKGMODEL"); 144 /* pmFPAfile *outBackground = pmFPAfileDefineFromFPA(config,output->fpa, */145 /* psMetadataLookupS32(&mdok,recipe,"BKG.XGRID"), */146 /* psMetadataLookupS32(&mdok,recipe,"BKG.YGRID"), */147 /* "PSWARP.OUTPUT.BKGMODEL"); */148 144 outBackground->xBin = psMetadataLookupS32(&mdok, recipe, "BKG.XGRID"); 149 145 outBackground->yBin = psMetadataLookupS32(&mdok, recipe, "BKG.YGRID");
Note:
See TracChangeset
for help on using the changeset viewer.
