- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/fits/psFitsImage.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/psLib/src/fits/psFitsImage.c
r22729 r25022 439 439 440 440 p_psFitsReadInfo *info = p_psFitsReadInfoAlloc(fits, region, z); 441 if (!info) { 442 psError(PS_ERR_IO, false, "Unable to read FITS information"); 443 return NULL; 444 } 441 445 442 446 // Size of image … … 612 616 } 613 617 618 bool createPHU = false; // Are we creating a PHU? 619 614 620 // Create the image HDU 615 621 int hdus = psFitsGetSize(fits); // Number of HDUs in file … … 617 623 // We're creating the first image 618 624 fits_create_img(fits->fd, bitPix, naxis, naxes, &status); 625 createPHU = true; 619 626 } else { 620 627 if (!after) { … … 623 630 // Set status to signal fits_insert_img to insert a new primary HDU 624 631 status = PREPEND_PRIMARY; 632 createPHU = true; 625 633 } else { 626 634 // Move back one to perform an insert after the previous HDU … … 637 645 638 646 // write the header, if any. 639 if (header && !psFitsWriteHeader (fits, header)) {647 if (header && !psFitsWriteHeaderImage(fits, header, createPHU)) { 640 648 psError(PS_ERR_IO, false, "Unable to write FITS header.\n"); 641 649 success = false;
Note:
See TracChangeset
for help on using the changeset viewer.
