pygeohydro.plot#
Plot hydrological signatures.
Plots include daily, monthly and annual hydrograph as well as regime curve (monthly mean) and flow duration curve.
Module Contents#
- pygeohydro.plot.cover_legends()#
Colormap (cmap) and their respective values (norm) for land cover data legends.
- pygeohydro.plot.descriptor_legends()#
Colormap (cmap) and their respective values (norm) for land cover data legends.
- pygeohydro.plot.interactive_map(bbox, crs=4326, nwis_kwds=None)#
Generate an interactive map including all USGS stations within a bounding box.
- Parameters:
bbox (
tuple
) – List of corners in this order (west, south, east, north)crs (
str
,int
, orpyproj.CRS
, optional) – CRS of the input bounding box, defaults to EPSG:4326.nwis_kwds (
dict
, optional) – Additional keywords to include in the NWIS request as a dictionary like so:{"hasDataTypeCd": "dv,iv", "outputDataTypeCd": "dv,iv", "parameterCd": "06000"}
. Default to None.
- Returns:
folium.Map
– Interactive map within a bounding box.- Return type:
folium.Map
Examples
>>> import pygeohydro as gh >>> nwis_kwds = {"hasDataTypeCd": "dv,iv", "outputDataTypeCd": "dv,iv"} >>> m = gh.interactive_map((-69.77, 45.07, -69.31, 45.45), nwis_kwds=nwis_kwds) >>> n_stations = len(m.to_dict()["children"]) - 1 >>> n_stations 10