🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.astro.fits
Article #66

Re: Re: VAX R*8 to FITS/IEEE R*8 conversion problem

#66
From: William Thompson, code 682.1, x2...
Date: Thu, 17 Dec 1992 19:53
28 lines
1929 bytes
In article <9212171724.AA01436@fits.cv.nrao.edu>, Lucio Chiappetti <lucio@ifctr.mi.cnr.it> writes...

	(stuff deleted)

>  The conversion from G_FLOAT would be analogous to the R*4 one, but the
>  one for D_FLOAT (the reverse of the ieeed routine in the IRAF VMS assembler
>  routine) is not obviously done in Fortran.
>  What I am uncertain of, is whether I should continue using D_FLOAT on Vax
>  or move to G_FLOAT.
> 
>  I actually use quite a limited amount of REAL*8 values, and I was always
>  happy with applying some scale factors when exceeding the exponent range
>  (1.OE38 for both R*4 and D_FLOAT R*8). From the quoted assembler routine
>  I derive that IRAF does the same.
> 
>  I would appreciate to know other people's opinion on the matter
>  whether G_FLOAT should be recommended on VMS for IEEE compatibility,
>  or not.

I believe that G_FLOAT and H_FLOAT (REAL*16) are not supported on the new Alpha
machines.

We use IDL, which doesn't give the user the option of selecting D_FLOAT or
G_FLOAT (and doesn't support quadruple-precision).  On the VAX, it uses D_FLOAT
numbers for double precision.  (As an aside, IDL does provide built-in support
for converting between IEEE and host formats, for all datatypes it supports.)

Bill Thompson
Technical Details
Message-ID: <17DEC199215532833@stars.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!nsisrv!stars.gsfc.nasa.gov!thompson
References: <9212171724.AA01436@fits.cv.nrao.edu>

Show Full Headers
Complete Article Headers
Newsgroups: sci.astro.fits
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!nsisrv!stars.gsfc.nasa.gov!thompson
From: thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040)
Subject: Re:      Re: VAX R*8 to FITS/IEEE R*8 conversion problem
Message-ID: <17DEC199215532833@stars.gsfc.nasa.gov>
News-Software: VAX/VMS VNEWS 1.4-b1  
Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
Nntp-Posting-Host: stars.gsfc.nasa.gov
Organization: NASA/GSFC-Laboratory for Astronomy and Solar Physics
References: <9212171724.AA01436@fits.cv.nrao.edu>
Date: Thu, 17 Dec 1992 19:53:00 GMT
Lines: 28