odc.geo.crs.crs_units_per_degree

odc.geo.crs.crs_units_per_degree(crs, lon, lat=0, step=0.1)[source]

Helper method for converting resolution between meters/degrees.

Compute number of CRS units per degree for a projected CRS at a given location in lon/lat.

Location can be supplied as a tuple or as two arguments.

Parameters:
Return type:

float

Returns:

A floating number S such that S*degrees -> meters