🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.astro.fits
Article #8

Re: FITS error test files

#8
From: Barry Schlesinger
Date: Thu, 23 Jul 1992 13:59
56 lines
2592 bytes
In article <pence.711826605@heawk1>, pence@heawk1.gsfc.nasa.gov ( William Pence) writes...
> 
>I tried reading the test defective FITS files  generated by Barry
>Schlesinger (see previous post to this newsgroup) to see if the FITSIO
>subroutine package detected the errors.  I tried reading each pseudo
>FITS file with a simple program that just lists the header of a FITS
>file.  The following list shows the error message that was returned by
>FITSIO for each file.   FITSIO did very well and found all the errors,
>except one:  it didn't complain if the first keyword was 'SIMPLE =
>W';  it just assumed that if SIMPLE was not true, then it must be false.
>I'll add this check to the next version of FITSIO.
> 
>-Bill Pence
>--------------------------------------------------------------------------
> 
>List of error responses generated by FITSIO when trying to read test defective
>FITS files generated by Barry Schlesinger
> 
>FILENAME       FITSIO RESPONSE
>--------       ---------------
>good.tst
>        No errors detected; OK since this is a legal FITS file
> 
>different.tst:
>	Error Status Returned :  210
>	Missing "= " in cols 9-10
> 

This is something of an understatement, as the file isn't close to 
FITS.

> ... [results for other files] ...
.
>shuffle.tst
>	Error Status Returned :  222
>	BITPIX keyword not found

Actually there is a BITPIX keyword in the file, just in the wrong 
place.  But a reader shouldn't be expected to find it.

>latenaxis.tst
>	Error Status Returned :  223
>	NAXIS  keyword not found 

As above.

>endequal.tst
>	No errors detected;  OK since this is a legal FITS file (?).

Not exactly.  The = in column 9 of the END card image shouldn't be
there.  Readers probably should provide a warning.  Validation
software certainly should.  As is noted in the README.FIRST, Don Wells
reports that some readers have crashed on this syntax. 

				Barry Schlesinger
				FITS Support Office
Technical Details
Message-ID: <23JUL199208595216@nssdca.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!nssdca.gsfc.nasa.gov!bschlesinger
References: <20JUL199216405756@nssdca.gsfc.nasa.gov> <pence.711826605@heawk1>

Show Full Headers
Complete Article Headers
Newsgroups: sci.astro.fits
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!nssdca.gsfc.nasa.gov!bschlesinger
From: bschlesinger@nssdca.gsfc.nasa.gov (Barry Schlesinger)
Subject: Re: FITS error test files
Message-ID: <23JUL199208595216@nssdca.gsfc.nasa.gov>
News-Software: VAX/VMS VNEWS 1.41    
Keywords: FITS, software, readers
Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
Nntp-Posting-Host: nssdca.gsfc.nasa.gov
Organization: NASA - Goddard Space Flight Center
References: <20JUL199216405756@nssdca.gsfc.nasa.gov> <pence.711826605@heawk1>
Date: Thu, 23 Jul 1992 13:59:00 GMT
Lines: 57