pyinterp.geodetic.Box

class pyinterp.geodetic.Box(min_corner: Optional[pyinterp.geodetic.Point] = None, max_corner: Optional[pyinterp.geodetic.Point] = None)[source]

Bases: pyinterp.core.geodetic.Box

Defines a box made of two describing points in a spherical coordinates system in degrees.

__init__(min_corner: Optional[pyinterp.geodetic.Point] = None, max_corner: Optional[pyinterp.geodetic.Point] = None)[source]

Initialize a new box.

Parameters

Methods

Box.area(self[, wgs])

Calculates the area.

Box.covered_by(*args, **kwargs)

Overloaded function.

Box.distance(*args, **kwargs)

Overloaded function.

Box.read_wkt(wkt)

Parses OGC Well-Known Text (WKT) into a box.

Box.whole_earth()

Returns the box covering the whole earth.

Box.wkt(self)

Gets the OGC Well-Known Text (WKT) representation of this instance.

Attributes

Box.max_corner

The maximal corner (upper right) of the box.

Box.min_corner

The minimal corner (lower left) of the box.