2.5.1.7. pycsamt.metadata.processing#

Format-neutral electromagnetic processing metadata.

Functions

normalize_sign_convention(value)

Normalize common Fourier sign-convention spellings.

Classes

ProcessingMeta([sign_convention, ...])

Processing assumptions and software associated with an EMTF product.

RemoteReferenceMeta([reference_type, site, ...])

Describe remote-reference processing when it was used.

class pycsamt.metadata.processing.RemoteReferenceMeta(reference_type=None, site=None, extra=<factory>)[source]

Bases: PyCSAMTObject

Describe remote-reference processing when it was used.

Parameters:
reference_type: str | None = None
site: str | None = None
extra: dict[str, Any]
validate()[source]

Validate object state.

Subclasses can override this hook. The base implementation intentionally accepts all states.

Return type:

None

class pycsamt.metadata.processing.ProcessingMeta(sign_convention=None, processed_by=None, software=None, remote_reference=None, processing_tag=None, run_list=None, extra=<factory>)[source]

Bases: PyCSAMTObject

Processing assumptions and software associated with an EMTF product.

This is the format-neutral canonical model. The historical pycsamt.seg.property.Processing object remains unchanged for EDI compatibility and can be adapted later by the EDI interoperability layer.

Parameters:
sign_convention: str | None = None
processed_by: str | None = None
software: Software | None = None
remote_reference: RemoteReferenceMeta | None = None
processing_tag: str | None = None
run_list: list[str] | None = None
extra: dict[str, Any]
validate()[source]

Validate object state.

Subclasses can override this hook. The base implementation intentionally accepts all states.

Return type:

None

pycsamt.metadata.processing.normalize_sign_convention(value)[source]

Normalize common Fourier sign-convention spellings.

Unknown non-empty values are preserved rather than silently coerced. This is intentionally stricter than the historical SEG helper, which defaulted unrecognized values to the positive convention.

Parameters:

value (str | None)

Return type:

str | None