db.metadata package

Submodules

db.metadata.metadata module

Contains the METADATA and MapFeat classes

class db.metadata.metadata.METADATA[source]

Bases: object

Storage for metadata attributes extracted from GOCAD that can be assigned directly to GeoSciML

_property_name = None

Taken from ‘PROPERTY_CLASS_HEADER’ e.g. PROPERTY_CLASS_HEADER c1 {

add_property_name(name)[source]

Adds a property name :name: property name, string

geoevent_numeric_age_range = None

Copied from GOCAD “STRATIGRAPHIC_POSITION” (2nd val) to GeoSciML v4 GeologicEvent gsmlb:numericAgeRange

geofeat_name = None

Copied from GOCAD “STRATIGRAPHIC_POSITION” (1st val) or from GOCAD “GEOLOGICAL_FEATURE” to GeoSciML v4 GeologicFeature::GeologicUnit gml:name or GeologicFeature::GeologicStructure::ShearDisplacementStructure gml:name or GeologicFeature::GeologicStructure::Contact gml:name

get_property_name(idx=0)[source]

Retrieve property name :idx: index used when point in space has multiple properties, omit for volumes :returns: property name, string

is_index_data = None

Does the volume data just point to a rock/colour table, or is it measurement data?

label_list = None

Dict of objects for adding labels when displaying objects Format: [ { ‘name’: ‘name of object’, ‘position’: (x,y,z), ‘metadata’: {dict of metadata in key,val} }, … ]

mapped_feat = None

Copied from GOCAD “GEOLOGICAL_TYPE” which can have values: top, intraformational, fault, unconformity, intrusive, topography, boundary, and ghost ‘fault’ maps to “GeologicFeature::GeologicStructure::ShearDisplacementStructure” ‘intrusive’ - many kinds of igneous formations, maps to ‘GeologicFeature::GeologicUnit’ ‘unconformity’ - (gaps in the geologic record within a stratigraphic unit) and ‘intraformational’ and ‘boundary’ map to ‘GeologicFeature::GeologicStructure::Contact’ ‘top’, ‘topography’ maybe map to ‘MappedFeature’ fields

name = None

Taken from GOCAD object name ??

rock_label_table = None

Table specifying names of rocks, key is an integer, value is the label

src_filename = None

Volume data source file

class db.metadata.metadata.MapFeat[source]

Bases: enum.Enum

Collection of values used to denote different kinds of ‘MappedFeature’ in GeoSciML

CONTACT = 4
GEOLOGICAL_UNIT = 3
SHEAR_DISP_STRUCT = 2
UNKNOWN = 1

Module contents