- Timestamp:
- Apr 19, 2013, 4:45:57 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130419
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpDefineSkycell.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpDefineSkycell.c
r27096 r35421 73 73 psFitsClose(fits); 74 74 75 // We need to force the format for the skycell to be equivalent to SIMPLE. Determine 76 // the current format from the header; Determine camera if not specified already 77 // XXX EAM : this operation should be defined as a pmConfig function (pmConfigCopy?) 78 skyConfig = pmConfigAlloc(); 79 skyConfig->user = psMemIncrRefCounter(config->user); 80 skyConfig->system = psMemIncrRefCounter(config->system); 75 { // this bit is unique to pswarpDefineSkycell: 81 76 82 psFree (skyConfig->files); 83 skyConfig->files = psMemIncrRefCounter(config->files); 84 psFree (skyConfig->arguments); 85 skyConfig->arguments = psMemIncrRefCounter(config->arguments); 77 // We need to force the format for the skycell to be equivalent to SIMPLE. Determine 78 // the current format from the header; Determine camera if not specified already 79 // XXX EAM : this operation should be defined as a pmConfig function (pmConfigCopy?) 80 skyConfig = pmConfigAlloc(); 81 skyConfig->user = psMemIncrRefCounter(config->user); 82 skyConfig->system = psMemIncrRefCounter(config->system); 83 84 psFree (skyConfig->files); 85 skyConfig->files = psMemIncrRefCounter(config->files); 86 psFree (skyConfig->arguments); 87 skyConfig->arguments = psMemIncrRefCounter(config->arguments); 88 } 86 89 87 90 format = pmConfigCameraFormatFromHeader (NULL, NULL, NULL, skyConfig, phu, false); … … 94 97 95 98 // Record the camera name of the skycell, so we can save its configuration 96 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "SKYCELL.CAMERA", 0, "Name of camera for skycell",97 skyConfig->cameraName);99 // XXX this can be put outside of the f 100 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "SKYCELL.CAMERA", 0, "Name of camera for skycell", skyConfig->cameraName); 98 101 99 102 // build the template fpa, set up the basic view
Note:
See TracChangeset
for help on using the changeset viewer.
