🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.astro.fits
Article #2

Re: Which characters are legal in a string?

#2
From: William Thompson, code 682.1, x2...
Date: Tue, 27 Oct 1992 14:40
30 lines
1855 bytes
In article <1cibc0INNpjq@darkstar.UCSC.EDU>, sla@umbra.ucsc.edu (Steve Allen) writes...
>I am looking through the NOST 100-0.3b standard document trying to be
>very sure about one point:
> 
>    Section 5.3.2.1 specifies that a "character string shall be composed
>    only of ASCII text."
> 
>    Section 6.1 specifies that characters shall be 7-bit ASCII
> 
>These specifications do not preclude the existence of unprintable characters
>(ASCII 0 through 31 and 127) in a character string.  Is it intended that
>unprintable characters be legal?  Are there FITS readers which will be
>confounded by unprintables?
> 

I've always gone by the philosophy that only ordinary printable characters
should appear in a FITS header.  For instance, my software will expand tab
characters out to the appropriate number of spaces before writing it into the
header.

One might argue that more leniency could be permitted in ASCII fields in FITS
binary tables.

>A further question might be asked about the reason why 8-bit ASCII is not
>allowed, but I would rather defer that until later.

That's simple:  8-bit ASCII isn't really a standard, is it?  You get different
characters on different machines.

Bill Thompson
Technical Details
Message-ID: <27OCT199210400385@stars.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!nsisrv!stars.gsfc.nasa.gov!thompson
References: <1cibc0INNpjq@darkstar.UCSC.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: sci.astro.fits
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!nsisrv!stars.gsfc.nasa.gov!thompson
From: thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040)
Subject: Re: Which characters are legal in a string?
Message-ID: <27OCT199210400385@stars.gsfc.nasa.gov>
Summary: are unprintables legal?
News-Software: VAX/VMS VNEWS 1.4-b1  
Keywords: ASCII
Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
Nntp-Posting-Host: stars.gsfc.nasa.gov
Organization: NASA/GSFC-Laboratory for Astronomy and Solar Physics
References: <1cibc0INNpjq@darkstar.UCSC.EDU>
Date: Tue, 27 Oct 1992 14:40:00 GMT
Lines: 30