checksit.readers.badctextfile

Functions

checkCellMethod(values)

checkConventions(values)

checkCoordinateVariables(values)

checkDate(values)

checkFeatureType(values)

checkFloat(values)

checkHeight(values)

checkInt(values)

checkLocation(values)

checkStandardName(values)

checkString(values)

checkType(values)

Classes

BADCTextFile(fh)

MDinfo defines the valid use for the metadata items in the data files. The dictionary is keyed on the metadata label and has values that correspond to: A flag to say if the label can apply globally, A flag to say if the label can apply to a column, The minimum number of values associated with the label The maximum number of values associated with the label - -1 is used where any number are permitted A flag to say if the label is mandatory for 'basic' files (0=not mandatory, 1=mandatory existence for at least one column, 2=must exist for all columns) A flag to say if the label is mandatory for 'complete' files (0=not mandatory, 1=mandatory existence for at least one column, 2=must exist for all columns).

BADCTextFileData()

BADCTextFileMetadata()

BADCTextFileVariable([values])

Exceptions

BADCTextFileDataError

BADCTextFileError

BADCTextFileMetadataIncomplete

BADCTextFileMetadataInvalid

BADCTextFileMetadataNonstandard

BADCTextFileParseError

exception checksit.readers.badctextfile.BADCTextFileDataError[source]
exception checksit.readers.badctextfile.BADCTextFileError[source]
exception checksit.readers.badctextfile.BADCTextFileMetadataIncomplete[source]
exception checksit.readers.badctextfile.BADCTextFileMetadataInvalid[source]
exception checksit.readers.badctextfile.BADCTextFileMetadataNonstandard[source]
exception checksit.readers.badctextfile.BADCTextFileParseError[source]
class checksit.readers.badctextfile.BADCTextFile(fh)[source]

MDinfo defines the valid use for the metadata items in the data files. The dictionary is keyed on the metadata label and has values that correspond to:

A flag to say if the label can apply globally, A flag to say if the label can apply to a column, The minimum number of values associated with the label The maximum number of values associated with the label - -1 is used where any number are permitted A flag to say if the label is mandatory for ‘basic’ files

(0=not mandatory, 1=mandatory existence for at least one column, 2=must exist for all columns)

A flag to say if the label is mandatory for ‘complete’ files

(0=not mandatory, 1=mandatory existence for at least one column, 2=must exist for all columns)