Skip to main content

DownholeIntervalsData

GitHub source

DownholeIntervalsData

evo.objects.typed.downhole_intervals.DownholeIntervalsData

Data for creating a new DownholeIntervals object.

Parameters:

NameTypeDescriptionDefault
namestr

The name of the object.

required
intervalsDataFrame

DataFrame containing the interval data. Required columns:

  • hole_id — hole identifier (string or Categorical)
  • from — depth of the top of the interval
  • to — depth of the base of the interval
  • x_start, y_start, z_start — 3D start-point coordinates
  • x_end, y_end, z_end — 3D end-point coordinates
  • x_mid, y_mid, z_mid — 3D mid-point coordinates

Any additional columns are uploaded as interval attributes. Per-attribute units can be specified via the DataFrame's attrs dictionary using :class:~evo.objects.typed.attributes.AttributeDescription::

from evo.objects.typed.attributes import AttributeDescription
df.attrs["attribute_descriptions"] = {"grade": AttributeDescription(unit="ppm")}
required
is_compositedbool

Whether the intervals have been composited.

required
depth_unitstr | None

Optional unit identifier for the from/to depths (e.g. "m").

None
coordinate_reference_systemEpsgCode | str | None

Optional EPSG code or OGC WKT string for the CRS.

None
descriptionstr | None

Optional description of the object.

None
tagsdict[str, str] | None

Optional dictionary of tags for the object.

None
extensionsdict[str, Any] | None

Optional dictionary of extensions for the object.

None

compute_bounding_box

compute_bounding_box() -> BoundingBox

Compute the bounding box from all start, end, and mid-point coordinates.

Was this page helpful?