gavo.grammars.fitstablegrammar module

A grammar taking rows from a FITS table.

class gavo.grammars.fitstablegrammar.FITSTableGrammar(parent, **kwargs)[source]

Bases: Grammar

A grammar parsing from FITS tables.

fitsTableGrammar result in typed records, i.e., values normally come in the types they are supposed to have. Of course, that won’t work for datetimes, STC-S regions, and the like.

The keys of the result dictionaries are simpily the names given in the FITS.

attrSeq = [<gavo.base.attrdef.UnicodeAttribute object>, <gavo.base.attrdef.IntAttribute object>, <gavo.base.parsecontext.IdAttribute object>, <gavo.base.complexattrs.StructAttribute object>, <gavo.base.attrdef.BooleanAttribute object>, <gavo.base.attrdef.BooleanAttribute object>, <gavo.base.parsecontext.OriginalAttribute object>, <gavo.base.complexattrs.PropertyAttribute object>, <gavo.rscdef.common.RDAttribute object>, <gavo.base.complexattrs.StructListAttribute object>, <gavo.base.complexattrs.StructAttribute object>]
clearProperty(name)
completedCallbacks = []
getFullId()
getProperty(name, default=<Undefined>)
hasProperty(name)
managedAttrs = {'enc': <gavo.base.attrdef.UnicodeAttribute object>, 'hdu': <gavo.base.attrdef.IntAttribute object>, 'id': <gavo.base.parsecontext.IdAttribute object>, 'ignoreOn': <gavo.base.complexattrs.StructAttribute object>, 'lowerKeys': <gavo.base.attrdef.BooleanAttribute object>, 'nanIsNULL': <gavo.base.attrdef.BooleanAttribute object>, 'original': <gavo.base.parsecontext.OriginalAttribute object>, 'properties': <gavo.base.complexattrs.PropertyAttribute object>, 'property': <gavo.base.complexattrs.PropertyAttribute object>, 'rd': <gavo.rscdef.common.RDAttribute object>, 'rowfilter': <gavo.base.complexattrs.StructListAttribute object>, 'rowfilters': <gavo.base.complexattrs.StructListAttribute object>, 'sourceFields': <gavo.base.complexattrs.StructAttribute object>}
name_ = 'fitsTableGrammar'
property rd
rowIterator

alias of FITSTableIterator

setProperty(name, value)
class gavo.grammars.fitstablegrammar.FITSTableIterator(grammar, sourceToken, sourceRow=None)[source]

Bases: RowIterator

The row iterator for FITSTableGrammars.