Skip to content

Commit

Permalink
Added a mention of scale_back to the FAQ that was missing.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2697 ed100bfc-0583-0410-97f2-c26b58777a21
  • Loading branch information
embray committed Apr 30, 2014
1 parent d521b4a commit b819ebe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FAQ.txt
Expand Up @@ -789,6 +789,13 @@ method::
>>> image.header['BITPIX']
32

Alternatively, if a file is opened with ``mode='update'`` along with the
``scale_back=True`` argument, the original BSCALE and BZERO scaling will
be automatically re-applied to the data before saving. Usually this is
not desireable, especially when converting from floating point back to
unsigned integer values. But this may be useful in cases where the raw
data needs to be modified corresponding to changes in the physical values.

To prevent rescaling from occurring at all (good for updating headers--even if
you don't intend for the code to access the data, it's good to err on the side
of caution here), use the ``do_not_scale_image_data`` argument when opening
Expand Down

0 comments on commit b819ebe

Please sign in to comment.