A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » FITS
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

[fitsbits] 64-bit integer comments



 
 
Thread Tools Display Modes
  #1  
Old May 14th 05, 04:42 AM
Thierry Forveille
external usenet poster
 
Posts: n/a
Default [fitsbits] 64-bit integer comments

Mike Nolan writes:
I guess that my point is that if you wait for the need, it will come
and go before you can use it. If the solution is clear and much of the
software implements it anyway, it's time to do it; particularly when
there are a few decisions to make (e.g. signed or not) that can be
worked around either way, but not if half choose one and half the
other.

It looks like we are reaching a philosophical disagreement on whether
64-bit integers should be called overengineering or good planning for
the future. We understand each other's point I think, but just don't
give them identical weights. Part of that might be people who use
FITS as their internal format versus those who use for transport
only.

I don't see how we are going to bridge that difference (unless someone
comes up with the killer application that does need I*8), so that particular
issue might have to be resolved by vote rather than consensus.
  #2  
Old May 16th 05, 04:04 PM
William Pence
external usenet poster
 
Posts: n/a
Default

Mark Calabretta wrote:
According to the standard "A free format integer value follows the same
rules as fixed format integers [i.e. right-justified in cols 11-30]
except that it may occur anywhere within columns 11-80." It doesn't
actually say anything about the number of digits that are or are not
allowed, but as you say it could well be inferred that up to 70 digits
are permitted, and there are plausible examples where such might occur,
e.g. public keys and the like. Presumably no current software can
handle such keywords properly.

However, I was really suggesting that the standard should warn
unsuspecting implementors of this surprising feature, not tell them how
to implement it.


There have been many other suggestions for clarifying various sections of
the FITS Standard since the last update in 1999, so we should probably start
thinking about convening another technical revision panel to address all of
these issues at one time. (Maybe next year, after the current round of WCS
and 64-bit integer proposals have been dealt with?)

more aware of the need to support larger values. FITS interface software
like CFITSIO already supports reading FITS keywords into 64-bit int
variables, so there is no technical reason to prevent generic software from
always reading integer keywords into 64-bit ints. As an example, I recently



I looked for the corresponding functions in v2.500 but only found the
'long int' forms. Does it rely on long int being 64-bit?


No, CFITSIO only requires that the C compiler support a 64-bit integer data
type, but it could be called 'longlong', 'long', '__int64', or something
else, depending on the particular compiler/platform. When calling the
general keyword reading routines in CFITSIO, one needs to specify the data
type of the variable into which the keyword value is to be returned. The
constant 'TLONGLONG' should be used to specify the 64-bit integer data type.
CFITSIO also defines and uses 'LONGLONG' as a machine independent 64-bit
integer data type. It is 'typedefed' to be equivalent to whatever intrinsic
64-bit integer data type is available on each particular platform.

Bill Pence
--
__________________________________________________ __________________
Dr. William Pence
NASA/GSFC Code 662 HEASARC +1-301-286-4599 (voice)
Greenbelt MD 20771 +1-301-286-1684 (fax)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FITS long integer support (was [fitsbits] ADASS FITS BoFon Sunday) William Pence FITS 6 October 22nd 04 08:23 PM
[fitsbits] FITS long integer support Steve Allen FITS 0 October 21st 04 06:22 PM
How Much Longer Can SRians Ignore Their Fundamental Error. Robert Astronomy Misc 133 August 30th 04 01:31 AM
[fitsbits] Start of the FITS MIME type Public Comment Period William Pence FITS 8 June 17th 04 06:08 AM
[fitsbits] BLANK keyword misinterpretation Steve Allen FITS 4 November 21st 03 04:42 PM


All times are GMT +1. The time now is 07:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.