IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36537 for trunk/psLib


Ignore:
Timestamp:
Feb 18, 2014, 4:35:48 PM (12 years ago)
Author:
watersc1
Message:

Change to the handling of BOFFSET and BSOFTEN header keywords used for asinh compression. If we have no options object, remove those keywords from the header (because we haven't been told to use them).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.c

    r33645 r36537  
    753753    }   
    754754
     755    // If there is no options set, remove all our non-standard keywords, because no one asked for them.
     756    if (!options) {
     757      if (psMetadataLookup(header,"BOFFSET")) {
     758        psMetadataRemoveKey(header,"BOFFSET");
     759      }
     760      if (psMetadataLookup(header,"BSOFTEN")) {
     761        psMetadataRemoveKey(header,"BSOFTEN");
     762      }
     763    }     
     764   
    755765    // write the header, if any.
    756766    if (header && !psFitsWriteHeaderImage(fits, header, createPHU)) {
Note: See TracChangeset for help on using the changeset viewer.