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:
- ellipsoid
sargom.coordinates.ellipsoids.Ellipsoid
Reference ellipsoid used for the projection.
- lon_origin_rad
float
Longitude of the origin of the Lambert Conic Conformal projection in radians.
- lat_origin_rad
float
Latitude of the origin of the Lambert Conic Conformal projection in radians.
- scale
float
, optional Scale factor of the projection. Default is 1.0.
- x_offset_m
float
, optional Offset from the projection origin in the x-direction in meters. Default is 0.0.
- y_offset_m
float
, optional Offset from the projection origin in the y-direction in meters. Default is 0.0.
- ellipsoid
- Attributes:
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_m
numpy.ndarray
The projected x-coordinate in meters.
- y_m
numpy.ndarray
The projected y-coordinate in meters.
- x_m
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_rad
numpy.ndarray
The geographic longitude in radians.
- lat_rad
numpy.ndarray
The geographic latitude in radians.
- lon_rad
Notes
The transformation uses the inverse Lambert Conic Conformal projection formulas with the ellipsoid parameters and projection constants.