mt_metadata.transfer_functions.io.zonge.metadata.survey

Classes

ArrayEnum

str(object='') -> str

ProjEnum

str(object='') -> str

Survey

Base class for all metadata objects with Pydantic validation.

Module Contents

class mt_metadata.transfer_functions.io.zonge.metadata.survey.ArrayEnum

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

tensor = 'tensor'
class mt_metadata.transfer_functions.io.zonge.metadata.survey.ProjEnum

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

UTM = 'UTM'
other = 'other'
class mt_metadata.transfer_functions.io.zonge.metadata.survey.Survey(**data)

Bases: mt_metadata.base.MetadataBase

Base class for all metadata objects with Pydantic validation.

MetadataBase extends DotNotationBaseModel (which inherits from Pydantic’s BaseModel) to provide automatic validation according to metadata standards. It adds functionality beyond dictionaries, supporting JSON, XML, pandas Series, and other formats for metadata interchange.

_skip_equals

Private attribute listing fields to skip in equality comparisons

Type:

list[str]

_fields

Private attribute caching field information

Type:

dict[str, Any]

Notes

  • All field assignments are validated automatically via Pydantic

  • None values are converted to appropriate defaults (empty string or 0.0)

  • Supports nested attribute access via dot notation

  • Thread-safe for read operations after initialization

type: Annotated[mt_metadata.common.enumerations.DataTypeEnum, Field(default=DataTypeEnum.NSAMT, description='Type of EM survey', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['nsamt']})]
array: Annotated[ArrayEnum, Field(default=ArrayEnum.tensor, description='Type of array', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['tensor']})]
datum: Annotated[str, Field(default='WGS84', description='Datum of the location', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['WGS84']})]
u_t_m_zone: Annotated[int, Field(default=0, description='UTM zone of location', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['12']})]
proj: Annotated[ProjEnum, Field(default=ProjEnum.UTM, description='Projection of the location coordinates', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['UTM']})]
classmethod validate_datum(value)

Validate the datum value and convert it to the appropriate enum type.