LambertConicConformal

class sargeom.coordinates.LambertConicConformal(ellipsoid, lon_origin_rad, lat_origin_rad, scale=1.0, x_offset_m=0.0, y_offset_m=0.0)[source]

Bases: object

Lambert Conic Conformal projection class.

This class implements the Lambert Conic Conformal projection, a conformal map projection that preserves angles and is commonly used for mapping regions in the middle latitudes with primarily east-west extent.

Parameters:
ellipsoidsargom.coordinates.ellipsoids.Ellipsoid

Reference ellipsoid used for the projection.

lon_origin_radfloat

Longitude of the origin of the Lambert Conic Conformal projection in radians.

lat_origin_radfloat

Latitude of the origin of the Lambert Conic Conformal projection in radians.

scalefloat, optional

Scale factor of the projection. Default is 1.0.

x_offset_mfloat, optional

Offset from the projection origin in the x-direction in meters. Default is 0.0.

y_offset_mfloat, optional

Offset from the projection origin in the y-direction in meters. Default is 0.0.

Attributes:
ellipsoidsargom.coordinates.ellipsoids.Ellipsoid

The reference ellipsoid.

lon_origin_radfloat

The longitude origin in radians.

lat_origin_radfloat

The latitude origin in radians.

scalefloat

The scale factor.

x_offset_mfloat

The x-offset in meters.

y_offset_mfloat

The y-offset in meters.

Methods Summary

forward(lon_rad, lat_rad)

Forward transformation from geographic coordinates to projected coordinates.

inverse(x_m, y_m)

Inverse transformation from projected coordinates to geographic coordinates.

Methods Documentation

forward(lon_rad, lat_rad)[source]

Forward transformation from geographic coordinates to projected coordinates.

Transforms geographic coordinates (longitude, latitude) to projected coordinates (x, y) in the Lambert Conic Conformal projection.

Parameters:
lon_radarray_like

The geographic longitude in radians.

lat_radarray_like

The geographic latitude in radians.

Returns:
x_mnumpy.ndarray

The projected x-coordinate in meters.

y_mnumpy.ndarray

The projected y-coordinate in meters.

Notes

The transformation uses the standard Lambert Conic Conformal projection formulas with the ellipsoid parameters and projection constants.

inverse(x_m, y_m)[source]

Inverse transformation from projected coordinates to geographic coordinates.

Transforms projected coordinates (x, y) in the Lambert Conic Conformal projection to geographic coordinates (longitude, latitude).

Parameters:
x_marray_like

The projected x-coordinate in meters.

y_marray_like

The projected y-coordinate in meters.

Returns:
lon_radnumpy.ndarray

The geographic longitude in radians.

lat_radnumpy.ndarray

The geographic latitude in radians.

Notes

The transformation uses the inverse Lambert Conic Conformal projection formulas with the ellipsoid parameters and projection constants.