pycsamt.format.borehole.pcsf#
PCBH association and coordinate alignment for PCSF models.
Functions
|
Transform PCBH paths into PCSF x/y/depth coordinates. |
|
Deserialize an association from the PCSF HDF5 adapter. |
|
Serialize an association for the PCSF HDF5 adapter. |
|
Return a model copy with a validated portable PCBH attachment. |
|
Return embedded PCBH data without resolving external resources. |
|
Return SHA-256 of canonical compact PCBH JSON. |
|
Return a model copy with an external PCBH reference. |
Classes
|
A trajectory point expressed in PCSF model coordinates. |
|
Per-hole relationship with the model bounding box. |
|
Aligned paths plus compatibility and bounds diagnostics. |
|
Embedded and/or externally referenced PCBH attachment. |
|
External PCBH URI and integrity checksum. |
- class pycsamt.format.borehole.pcsf.PCBHReference(uri, sha256)[source]
Bases:
PyCSAMTObjectExternal PCBH URI and integrity checksum.
- uri: str
- sha256: str
- validate()[source]
Validate object state.
Subclasses can override this hook. The base implementation intentionally accepts all states.
- Return type:
None
- class pycsamt.format.borehole.pcsf.PCBHAssociation(embedded=None, reference=None)[source]
Bases:
PyCSAMTObjectEmbedded and/or externally referenced PCBH attachment.
- Parameters:
embedded (PCBHDocument | None)
reference (PCBHReference | None)
- embedded: PCBHDocument | None = None
- reference: PCBHReference | None = None
- validate()[source]
Validate object state.
Subclasses can override this hook. The base implementation intentionally accepts all states.
- Return type:
None
- class pycsamt.format.borehole.pcsf.AlignedTrajectoryPoint(md, x, y, z)[source]
Bases:
PyCSAMTObjectA trajectory point expressed in PCSF model coordinates.
- md: float
- x: float
- y: float
- z: float
- class pycsamt.format.borehole.pcsf.BoreholeBoundsResult(borehole_id, relation, points_inside, points_total)[source]
Bases:
PyCSAMTObjectPer-hole relationship with the model bounding box.
- borehole_id: str
- relation: str
- points_inside: int
- points_total: int
- class pycsamt.format.borehole.pcsf.PCBHAlignmentReport(source_crs, target_crs, vertical_compatible, warnings, model_bounds, trajectories, bounds_results)[source]
Bases:
PyCSAMTObjectAligned paths plus compatibility and bounds diagnostics.
- Parameters:
- source_crs: str
- target_crs: str
- vertical_compatible: bool
- bounds_results: tuple[BoreholeBoundsResult, ...]
- pycsamt.format.borehole.pcsf.pcbh_document_checksum(document)[source]
Return SHA-256 of canonical compact PCBH JSON.
- Parameters:
document (PCBHDocument)
- Return type:
- pycsamt.format.borehole.pcsf.embed_pcbh(model, document, *, uri=None)[source]
Return a model copy with a validated portable PCBH attachment.
- pycsamt.format.borehole.pcsf.reference_pcbh(model, uri, sha256)[source]
Return a model copy with an external PCBH reference.
- pycsamt.format.borehole.pcsf.extract_pcbh(model)[source]
Return embedded PCBH data without resolving external resources.
- Parameters:
model (PCSFModel)
- Return type:
PCBHDocument | None
- pycsamt.format.borehole.pcsf.align_pcbh_to_pcsf(document, model, *, vertical_offset=None, sampling_step_md=10.0)[source]
Transform PCBH paths into PCSF x/y/depth coordinates.
vertical_offsetis required when PCBH and PCSF vertical references cannot be established as identical. It is added to PCBH elevations before conversion to PCSF depth-positive-down coordinates.