environmentaltools.graphics.calc_extent
- environmentaltools.graphics.calc_extent(lon, lat, dist)[source]
Calculate map extent from center point and distance.
Computes the bounding box coordinates for a map centered at given lon/lat with specified distance to edges using geodesic calculations.
- Parameters:
lon (float) – Center longitude in degrees.
lat (float) – Center latitude in degrees.
dist (float) – Distance from center to edge in meters.
- Returns:
Map extent as [lon_min, lon_max, lat_min, lat_max].
- Return type:
list