Changeset 14536
- Timestamp:
- Aug 16, 2007, 10:57:18 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadout.c
r14526 r14536 44 44 pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSUB.OUTPUT"); // Output cell 45 45 pmReadout *outRO = pmReadoutAlloc(outCell); // Output readout 46 pmFPA *outFPA = outCell->parent->parent; // Output FPA 47 pmHDU *outHDU = outFPA->hdu; // Output HDU 48 if (!outHDU->header) { 49 outHDU->header = psMetadataAlloc(); 50 } 46 51 47 52 psImage *input = inRO->image; // Input image … … 287 292 } 288 293 294 // Add kernel descrption to header 295 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0, 296 "Subtraction kernel", kernels->description); 289 297 psFree(kernels); 290 298 … … 341 349 pmFPA *refFPA = refRO->parent->parent->parent; // Reference FPA 342 350 pmHDU *refHDU = refFPA->hdu; // Reference HDU 343 pmFPA *outFPA = outCell->parent->parent; // Output FPA344 pmHDU *outHDU = outFPA->hdu; // Output HDU345 351 if (!outHDU || !refHDU) { 346 352 psWarning("Unable to find HDU at FPA level to copy astrometry."); … … 350 356 psFree(outRO); 351 357 return false; 352 }353 if (!outHDU->header) {354 outHDU->header = psMetadataAlloc();355 358 } 356 359 if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
Note:
See TracChangeset
for help on using the changeset viewer.
