Changeset 38538 for trunk/psLib/src/fits/psFitsImage.c
- Timestamp:
- Jun 24, 2015, 2:13:57 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsImage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.c
r37050 r38538 751 751 752 752 // Remove any BOFFSET values that exist in the header if we are not using that scaling anymore 753 if (options &&(!((options->scaling == PS_FITS_SCALE_LOG_RANGE)||754 (options->scaling == PS_FITS_SCALE_LOG_MANUAL)||755 (options->scaling == PS_FITS_SCALE_LOG_STDEV_POSITIVE)||756 (options->scaling == PS_FITS_SCALE_LOG_STDEV_NEGATIVE)||757 (options->scaling == PS_FITS_SCALE_LOG_STDEV_BOTH)||758 (options->scaling == PS_FITS_SCALE_ASINH_RANGE)||759 (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)||760 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_POSITIVE)||761 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_NEGATIVE)||762 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_BOTH)))) {763 if ( psMetadataLookup(header,"BOFFSET")) {753 if (options && (!((options->scaling == PS_FITS_SCALE_LOG_RANGE)|| 754 (options->scaling == PS_FITS_SCALE_LOG_MANUAL)|| 755 (options->scaling == PS_FITS_SCALE_LOG_STDEV_POSITIVE)|| 756 (options->scaling == PS_FITS_SCALE_LOG_STDEV_NEGATIVE)|| 757 (options->scaling == PS_FITS_SCALE_LOG_STDEV_BOTH)|| 758 (options->scaling == PS_FITS_SCALE_ASINH_RANGE)|| 759 (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)|| 760 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_POSITIVE)|| 761 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_NEGATIVE)|| 762 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_BOTH)))) { 763 if (header && psMetadataLookup(header,"BOFFSET")) { 764 764 psMetadataRemoveKey(header,"BOFFSET"); 765 765 } 766 766 } 767 767 // Remove any BSOFTENvalues that exist in the header if we are not using that scaling anymore 768 if (options &&(!((options->scaling == PS_FITS_SCALE_ASINH_RANGE)||769 (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)||770 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_POSITIVE)||771 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_NEGATIVE)||772 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_BOTH)))) {773 if ( psMetadataLookup(header,"BSOFTEN")) {768 if (options && (!((options->scaling == PS_FITS_SCALE_ASINH_RANGE)|| 769 (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)|| 770 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_POSITIVE)|| 771 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_NEGATIVE)|| 772 (options->scaling == PS_FITS_SCALE_ASINH_STDEV_BOTH)))) { 773 if (header && psMetadataLookup(header,"BSOFTEN")) { 774 774 psMetadataRemoveKey(header,"BSOFTEN"); 775 775 } 776 776 } 777 777 778 // If there isno options set, remove all our non-standard keywords, because no one asked for them.778 // If there are no options set, remove all our non-standard keywords, because no one asked for them. 779 779 if (!options) { 780 if ( psMetadataLookup(header,"BOFFSET")) {780 if (header && psMetadataLookup(header,"BOFFSET")) { 781 781 psMetadataRemoveKey(header,"BOFFSET"); 782 782 } 783 if ( psMetadataLookup(header,"BSOFTEN")) {783 if (header && psMetadataLookup(header,"BSOFTEN")) { 784 784 psMetadataRemoveKey(header,"BSOFTEN"); 785 785 }
Note:
See TracChangeset
for help on using the changeset viewer.
