cryoswath.gis module

cryoswath.gis.buffer_4326_shp(shp: Geometry, radius: float, simplify: bool = True) MultiPolygon[source]
cryoswath.gis.ensure_pyproj_crs(crs: CRS) CRS[source]
cryoswath.gis.esri_to_feather(file_path: str = None) None[source]
cryoswath.gis.find_planar_crs(*, shp: Geometry = None, lat: float = None, lon: float = None, region_id: str = None)[source]
cryoswath.gis.get_4326_to_dem_Transformer(dem_reader: DatasetReader) Transformer[source]
cryoswath.gis.get_lon_origin(crs)[source]
cryoswath.gis.points_on_glacier(points: GeoSeries) Index[source]
cryoswath.gis.simplify_4326_shp(shp: Geometry, tolerance: float = None) Geometry[source]
cryoswath.gis.subdivide_region(basin_gdf: GeoDataFrame, lat_bin_width_degree: float = 1, lon_bin_width_degree: float = 1) list[GeoDataFrame][source]

Devides GeoDataFrame of basins into smaller GeoDataFrame based on their central lat/lon coords.

Parameters:
  • basin_gdf (gpd.GeoDataFrame, optional) – Basins to subdivide.

  • lat_bin_width_degree (float, optional) – Requested sub-region latitude range in degrees. Defaults to 1.

  • lon_bin_width_degree (float, optional) – Requested sub-region longitude range in degrees.. Defaults to 1.

Returns:

List of region parts.

Return type:

list[gpd.GeoDataFrame]