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] Start of the 'INHERIT' Public Comment Period



 
 
Thread Tools Display Modes
  #1  
Old April 6th 07, 08:28 PM posted to sci.astro.fits
Rob Seaman
external usenet poster
 
Posts: 49
Default [fitsbits] Start of the 'INHERIT' Public Comment Period

Steve wrote:

The data reduction package developed at Lick would not accept
FITS files unless the PHDU contained these keywords:

NAXIS = 2
NAXIS1 = 0
NAXIS2 = 0

So that's what we put in the empty PHDU of our mosaic files. But as
we got close to the point of deploying the instrument producing these
files we found that we could not continue that practice, for the data
reduction package developed at NOAO would not accept such FITS files.
What it wanted was

NAXIS = 0

I note with gratitude that Pence's FITSIO toolkit allowed either
scenario without forcing the issue.


This is also a case in which there is a clear answer in the standard
- either form is legal, but the latter is preferred:

NAXIS Keyword - The value field shall contain a non-negative
integer no greater than 999, representing the number of axes in
the associated data array. A value of zero signifies that no data
follow the header in the HDU.
NAXISn Keywords - The value field of this indexed keyword shall
contain a non-negative integer, representing the number of
elements along axis n of a data array. The NAXISn must be present
for all values n = 1,...,NAXIS, and for no other values of n. A
value of zero for any of the NAXISn signifies that no data follow
the header in the HDU. If NAXIS is equal to 0, there should not
be any NAXISn keywords.

The IRAF support is incomplete, but the Lick behavior is simply
bizarre. It is gratifying that CFITSIO accepted either form, but
data providers are certainly well advised to test compliance with a
range of community software resources.

Note that precisely the same issue applies here as with INHERIT. A
Lick file might be copied with third party software that quite
reasonably would note that since there are no data records that NAXIS
should equal zero. The Lick software would then refuse to recognize
the copy. The original file is conforming FITS, however.

Rob
 




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
[fitsbits] Start of the 'INHERIT' Public Comment Period Robert Hanisch FITS 3 April 13th 07 09:37 AM
[fitsbits] Start of the 'INHERIT' Public Comment Period William Pence FITS 8 April 8th 07 03:59 AM
[fitsbits] Start of the 'INHERIT' Public Comment Period Rob Seaman FITS 0 April 6th 07 07:24 PM
[fitsbits] Start of the 'INHERIT' Public Comment Period Robert Hanisch FITS 0 April 6th 07 01:00 AM
[fitsbits] Start of the 'INHERIT' Public Comment Period William Pence FITS 0 March 23rd 07 08:06 PM


All times are GMT +1. The time now is 08:26 PM.


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.