🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.astro.fits
Article #9

BSCALE/BZERO

#9
From: Peter Teuben
Date: Tue, 28 Jul 1992 15:27
28 lines
1695 bytes
The NOST fits panel report states that for BITPIX < 0 (i.e. when
the data is stored in IEEE floating point format) the usage of
BSCALE and BZERO not recommended. We never (wanted to) forbid 
or explicitly state that it should or should not be applied
in section 6.3 (though section 5.2.2.5 does state this).

The FITS users guide (also published by NOST) does explicitly
states that BSCALE and BZERO  be applied in the BITPIX<0 case, with
the danger of producing overflows/underflows of course (hence the 
reason that BSCALE and BZERO should not be present).

I've indeed noted that the AIPS and MIRIAD readers 'correctly' apply
BSCALE and BZERO in the floating point cases, but the problem arose
when we imported a FITS file generated by IDL. The idl procedure
'WRITEFITS' seems to write images with BSCALE not 1.0, which has
caused some readers to read in the wrong datavalues.
Perhaps Wayne Landsman can comment on this.

Has anybody seen fits readers which skip BSCALE and BZERO if BITPIX < 0?

	Peter

--
Peter J. Teuben         |  INTERNET  : teuben@astro.umd.edu
Astronomy Department    |  FAX:        (301) 314-9067
University of Maryland  |  MA-BELL   : (301) 405-1540 (office)
College Park, MD 20742  |              (301) 405-1502 (secr.)
Technical Details
Message-ID: <TEUBEN.92Jul28112713@lynx.astro.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!mips!darwin.sura.net!haven.umd.edu!umd5!umd5.umd.edu!teuben

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!mips!darwin.sura.net!haven.umd.edu!umd5!umd5.umd.edu!teuben
From: teuben@lynx.astro.umd.edu (Peter Teuben)
Newsgroups: sci.astro.fits
Subject: BSCALE/BZERO
Message-ID: <TEUBEN.92Jul28112713@lynx.astro.umd.edu>
Date: 28 Jul 92 15:27:13 GMT
Sender: news@umd5.umd.edu
Distribution: sci
Organization: University of Maryland, Astronomy Department
Lines: 28