pycequeau.physiographic package

class pycequeau.physiographic.Basin(project_folder: str, basin_name: str, file_list: list, *args)[source]

Bases: object

_summary_

property Basin
property CEfishnet
CP_routing()[source]

Create the CP grid from the merged shp file This has the same dimensions as the FAC file in order to compare them both to do the routing process The CP grid is already processed and well polished

property CPfishnet
property DEM
carreauxEntiers_struct() None[source]

_summary_

carreauxPartiels_struct() None[source]

_summary_

property ce_fishnet_name
classmethod clean_grids(watershed: str, CEfishnet: Dataset)[source]

_summary_

This function deletes the non used CE grid in the created fishnet https://gdal.org/doxygen/classOGRGeometry.html :param watershed: _description_ :type watershed: str :param CEfishnet: _description_ :type CEfishnet: ogr.DataSource

classmethod clip_shps(sub_basins: str, watershed: str, newSubBasins: str)[source]

_summary_

Parameters:
  • sub_basins (str) – _description_

  • watershed (str) – _description_

  • newSubBasins (str) – _description_

property cp_fishnet_name
create_CEfishnet(xoffset=0.0, yoffset=0.0)[source]

_summary_

Parameters:
  • xoffset (float, optional) – _description_. Defaults to 0.0.

  • yoffset (float, optional) – _description_. Defaults to 0.0.

create_CPfishnet()[source]

_summary_

create_CPgrid()[source]

_summary_

Returns:

_description_

Return type:

_type_

create_bassinVersant_structure()[source]

_summary_

property get_CEgrid
property get_EPSG
property get_dimenssions
classmethod get_land_cover(gdf: GeoDataFrame, LC_name: str, attr: str) tuple[source]

_summary_

Parameters:
  • gdf (gpd.GeoDataFrame) – _description_

  • LC_name (str) – _description_

  • ncols (int) – _description_

  • nrows (int) – _description_

Returns:

_description_

Return type:

tuple

classmethod get_water_cover(shp_name: str, gdf: GeoDataFrame, ref_raster: str, ncols: int, nrows: int) list[source]

_summary_

Parameters:
  • shp_name (str) – Water bodies shape file name

  • shp_fishnet (gpd.GeoDataFrame) – fishnet shape file

  • ref_raster (str) – reference raster to get the size of the pixel

  • ncols (int) – _description_

  • nrows (int) – _description_

Returns:

_description_

Return type:

list

classmethod join_shps(CEfishnet: str, SubBasins: str, CPfishnet: str)[source]

_summary_

Parameters:
  • CEfishnet (str) – _description_

  • SubBasins (str) – _description_

  • CPfishnet (str) – _description_

plot_routing(area_th=0.01)[source]

_summary_

Parameters:

area_th (float, optional) – _description_. Defaults to 0.01.

polish_CPfishnet(area_th=0.05)[source]

_summary_

Parameters:
  • area_th (float, optional) – _description_. Defaults to 0.05.

  • flow_th (float, optional) – _description_. Defaults to 5e3.

property project_path
rasterize_maps()[source]

_summary_

set_dimensions(dx: float, dy: float)[source]

_summary_

Parameters:
  • dx (float) – _description_

  • dy (float) – _description_

property watershed_shapefile

Submodules