pyinterp.geometry.geographic.Coordinates

Contents

pyinterp.geometry.geographic.Coordinates#

class pyinterp.geometry.geographic.Coordinates(self, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None)#

Bases: object

Create a coordinate transformation system.

Parameters:

spheroid – Optional spheroid to use. Defaults to WGS-84.

Initialize the coordinates system with optional spheroid.

Attributes

spheroid

WGS used to transform the coordinates.

Public Methods

ecef_to_lla(self, x[, shape, writable, ...])

Convert Cartesian ECEF coordinates to geographic coordinates.

lla_to_ecef(self, lon[, shape, writable, ...])

Convert geographic coordinates to Cartesian ECEF coordinates.

transform(self, target, lon[, shape, ...])

Transform positions from one coordinate system to another.

Special Methods

__getstate__(self)

Get the state for pickling.

__new__(*args, **kwargs)

__setstate__(self, state)

Set the state for unpickling.