dggrid4py.auxlat

Authalic to WGS84 latitude conversions

This is experimental and based on pygeodesy.

For example, use like below to convert a clipping polygon from WGS84 to authalic latitudes for DGGRID input.

import shapely

from dggrid4py.auxlat import geodetic_to_authalic, authalic_to_geodetic

Polygon([ (lon, geodetic_to_authalic(lat)) for (lon, lat) in clip_poly.exterior.coords])

And then use to convert DGGRID output geometries (centroids or grid_Cell_polygons) from authalic to WGS84 latitudes.

import geopandas as gpd
from dggrid4py.auxlat import geoseries_to_authalic, geoseries_to_geodetic

geoseries_to_geodetic(gdf.geometry)

Functions

authalic_to_geodetic(lat_authalic)

geodetic_to_authalic(lat_geodetic)

geoseries_to_authalic(geoseries)

geoseries_to_geodetic(geoseries)