Re: [fitsbits] Start of the 'INHERIT' Public Comment Period




On Fri 2007/03/23 16:06:53 EDT, William Pence wrote
in a message to: FITSBITS <fitsbits@xxxxxxxx>

A document describing this convention and a sample FITS file that uses
it are available for public review and comment from the FITS registry
web page at

http://fits.gsfc.nasa.gov/fits_registry.html

My comments only refer to the documentation of the convention, not the
convention itself.

The document states:

"It is recommended that this inherit convention be used only in
FITS files that have a null primary array (e.g., with NAXIS = 0) to
avoid possible confusion if array-specific keywords (e.g., BSCALE
and BZERO) were to be inherited."

If this is the way that INHERIT has always been used then it should be
required, not "recommended" (inheriting from a non-null primary HDU
would be asking for trouble, especially concerning WCS keywrds).

Also, while recommended usage may assist human interpretation, it is
unhelpful for software which can't assume that any recommendations have
been followed and so must be completely general.

"If the INHERIT keyword is not present, nothing should be inferred about
whether the inherit convention should apply or not because the FITS
standard says nothing regarding the relationship of keywords in the
primary header to those in an extension."

This statement is contentious. It is widely understood that FITS HDUs
must be self-contained, whether or not that is stated explicitly in the
standard. Basically this statement tries to excuse the exploitation of
a loophole in the standard.

"When an application reads an extension header with INHERIT = T, it
should merge the keywords in the current extension with the primary
header keywords, ..."

What does "merge" mean here? A simple way to picture keyword
inheritance is to think of appending the extension header onto the
primary header (as a character array) and feeding the lot into a header
parser that accepts the last occurrence of any repeated keyword.

"... with the exclusion of the mandatory keywords, and any COMMENT,
HISTORY, and blank keywords in the primary header."

If COMMENT and HISTORY keywords are not propagated then there should
also be some statement that extension headers must contain a full
complement of COMMENT and HISTORY cards whether or not they duplicate
those in the primary header.

General:

The FITS WCS standard defines default values for WCS keywords that are
omitted from a header. The document should discuss how the INHERIT
convention interacts with the omission of such keywords.

Although it is reasonable to discuss the relative merits and
deficiencies of the convention compared to other alternatives, much of
the content of the first paragraph of the section entitled "Practical
Considerations" seems to deal with one particular implementation. As
such it should either be omitted or recast into a discussion of the way
that it should be implemented.

As another practical consideration, serial readers (e.g. tape or
internet download) have no way of knowing in advance whether the primary
header will be required for later use by an extension that inherits it.
Therefore, in order to implement this convention, they would need to
cache the primary header from ANY general FITS file in case it later
turns out to use the INHERIT convention.

Mark Calabretta
ATNF

.



Relevant Pages

  • [fitsbits] Start of the INHERIT Public Comment Period
    ... 'INHERIT' FITS convention that has been submitted by the Nelson Zarate ... commentary keywords) ...
    (sci.astro.fits)
  • [fitsbits] Fwd: multiple keyword occurance in header
    ... [fitsbits] multiple keyword occurance in header ... BLOCK HISTORY BEGIN ... literal copy of keywords from previous steps ... ... sequential header edits is only one way duplicates can arise. ...
    (sci.astro.fits)
  • Re: Meta
    ... http-equiv is useless for documents served on the web. ... Keywords is useless. ... keywords header at best, and rumor has it that excessive use of keywords may ... local search engine for a local site, you might make use of keywords in some ...
    (alt.html)
  • Re: grid column header click code (vfp6)
    ... what i do with memo field is to create an index out of the keywords found in ... the memo field, which is faster based on my experience. ... that is just what I did - I already had a grid subclass that I ... header click was to be executed - so I didn't use it. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Full text search for NNTP server
    ... > Dont dream too much, users dont have time to add keywords in their post. ... Keywords data out of article bodies. ... No change to the real header ...
    (news.software.readers)

Loading