pycequeau.physiographic.CPfishnet module¶
- pycequeau.physiographic.CPfishnet.convert_coords_to_index(df: GeoDataFrame, dataset: Dataset) GeoDataFrame[source]¶
_summary_
- Parameters:
df (gpd.GeoDataFrame) – _description_
dataset (gdal.Dataset) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.cumulative_areas(CP_fishnet: GeoDataFrame, CE_fishnet: GeoDataFrame, out_routes: ndarray) DataFrame[source]¶
_summary_
- Parameters:
CP_fishnet (gpd.GeoDataFrame) – _description_
CE_fishnet (gpd.GeoDataFrame) – _description_
out_routes (np.ndarray) – _description_
- Returns:
_description_
- Return type:
pd.DataFrame
- pycequeau.physiographic.CPfishnet.dissolve_pixels(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, pixel_size_area) GeoDataFrame[source]¶
The ressult from the previous process might lead to have multipolygon features We need to make sure this is going to be well dissolved. Also, all the pixel-size features need to be merged with the bigger neighbors in order to avoid errors while computing zonal area in further steps.
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
area_th (_type_) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.find_neighbors(gdf: GeoDataFrame, id: str) GeoDataFrame[source]¶
_summary_
- Parameters:
gdf (gpd.GeoDataFrame) – _description_
id (str) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.force_4CP(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, area_th: float) GeoDataFrame[source]¶
_summary_
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
area_th (float) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.get_downstream_CP(rtable: DataFrame) DataFrame[source]¶
_summary_
- Parameters:
rtable (pd.DataFrame) – _description_
- Returns:
_description_
- Return type:
pd.DataFrame
- pycequeau.physiographic.CPfishnet.get_rtable(CP_fishnet: GeoDataFrame, routing: DataFrame)[source]¶
_summary_
- Parameters:
CP_fishnet (gpd.GeoDataFrame) – _description_
routing (pd.DataFrame) – _description_
- Returns:
_description_
- Return type:
_type_
- pycequeau.physiographic.CPfishnet.identify_small_CPs(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, thereshold: float)[source]¶
_summary_
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
thereshold (float) – _description_
- Returns:
_description_
- Return type:
_type_
- pycequeau.physiographic.CPfishnet.mean_altitudes(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, DEM: str)[source]¶
_summary_
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
DEM (str) – _description_
- Returns:
_description_
- Return type:
_type_
- pycequeau.physiographic.CPfishnet.mean_canopy(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, Canopy_name: str)[source]¶
_summary_
- Args:
CE_fishnet (gpd.GeoDataFrame): _description_ CP_fishnet (gpd.GeoDataFrame): _description_ Canopy (str): _description_
# Returns: # _type_: _description_ #
- pycequeau.physiographic.CPfishnet.outlet_routes(rtable: DataFrame) DataFrame[source]¶
_summary_
- Parameters:
rtable (pd.DataFrame) – _description_
- Returns:
_description_
- Return type:
pd.DataFrame
- pycequeau.physiographic.CPfishnet.remove_border_CPs(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, FAC: str) list[source]¶
_summary_
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
FAC (str) – _description_
- Returns:
_description_
- Return type:
list
- pycequeau.physiographic.CPfishnet.remove_smallCP(CE_fishnet: GeoDataFrame, CP_fishnet: GeoDataFrame, thereshold: float) GeoDataFrame[source]¶
_summary_
- Parameters:
CE_fishnet (gpd.GeoDataFrame) – _description_
CP_fishnet (gpd.GeoDataFrame) – _description_
thereshold (float) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.renumber_fishnets(CP_fishnet: GeoDataFrame, CE_fishnet: GeoDataFrame, rtable: DataFrame, routing: DataFrame) GeoDataFrame[source]¶
_summary_
- Parameters:
CP_fishnet (gpd.GeoDataFrame) – _description_
CE_fishnet (gpd.GeoDataFrame) – _description_
rtable (pd.DataFrame) – _description_
routing (pd.DataFrame) – _description_
- Returns:
_description_
- Return type:
gpd.GeoDataFrame
- pycequeau.physiographic.CPfishnet.routing_table(CP_fishnet: GeoDataFrame, CE_fishnet: GeoDataFrame, FAC: str, CP_array: ndarray, CE_array: ndarray, ncols: float, nrows: float) DataFrame[source]¶
_summary_
- Parameters:
CP_fishnet (gpd.GeoDataFrame) – _description_
CE_fishnet (gpd.GeoDataFrame) – _description_
FAC (str) – _description_
CP_array (np.ndarray) – _description_
CE_array (np.ndarray) – _description_
ncols (float) – _description_
nrows (float) – _description_
- Returns:
_description_
- Return type:
pd.DataFrame