MCPcopy Create free account

hub / github.com/environmental-modeling-workflows/watershed-workflow / functions

Functions1,294 in github.com/environmental-modeling-workflows/watershed-workflow

Functiondecorate
Store f in HANDLERS[vcs][method].
versioneer.py:375
Functiondecorate
Store f in HANDLERS[vcs][method].
watershed_workflow/_version.py:60
Functiondefault_simplify_options
Returns a refine options struct for use in scripts.
watershed_workflow/ui.py:149
Functiondefault_triangulate_options
Returns a refine options struct for use in scripts.
watershed_workflow/ui.py:169
Functiondem_and_points
()
watershed_workflow/test/FAIL_test_dem_interp.py:12
Functiondem_source_options
Add options for sources.
watershed_workflow/ui.py:291
Functiondesaturate
Desaturate a color by reducing its saturation. Parameters ---------- color : Color or np.ndarray Color to desaturate. Can be in R
watershed_workflow/colors.py:358
Methoddeselect
Clears anything plotted in the last click.
watershed_workflow/plot.py:165
FunctiondetermineOutletToReachMap
Given a list of rivers and a set of gages, find the reach in rivers and mark where on the reach to put the effective gage. Parameters
watershed_workflow/river_tree.py:1047
Methoddim
Spatial dimension of the mesh. Returns ------- int Number of spatial dimensions.
watershed_workflow/mesh.py:246
Methoddim
(self)
watershed_workflow/mesh.py:1049
Functiondownload
Download a file from a URL to a location. If force, clobber whatever is there. Note that kwargs are supplied to the requests call.
watershed_workflow/sources/utils.py:42
FunctiondownloadWithProgressBar
Download a file from URL to location, with a progress bar. If force, clobber whatever is there.
watershed_workflow/sources/utils.py:62
FunctiondropDuplicates
Search for duplicate soils which differ only by ID, and rename them, returning a new df. Parameters ---------- df : pd.DataFrame A
watershed_workflow/soil_properties.py:363
Functiondtb_raster_path
Path to the DTB test raster file.
watershed_workflow/sources/test/test_manager_raster.py:16
Methodedge_counts
(self)
watershed_workflow/mesh.py:313
Methodedges
(self)
watershed_workflow/mesh.py:290
Methodedges_to_cells
(self)
watershed_workflow/mesh.py:319
Functionelevate
Elevate a mesh onto the provided dem, in place. Parameters ---------- mesh_crs : crs-type Mesh coordinate system. dem : xr.Da
watershed_workflow/__init__.py:677
Functionexisting_lai_file
Path to existing LAI file for testing.
watershed_workflow/sources/test/test_manager_appeears.py:26
Functionexisting_lulc_file
Path to existing LULC file for testing.
watershed_workflow/sources/test/test_manager_appeears.py:32
Methodexplore
Open an interactive map using Folium. Parameters ---------- column : str, optional Column name to use for c
watershed_workflow/river_tree.py:192
Methodexplore_linestrings
(self, **kwargs)
watershed_workflow/split_hucs.py:274
MethodextendCoordinates
Appends multiple coordinates at the end (downstream) of the linestring.
watershed_workflow/river_tree.py:508
Methodface_to_vertex_conn
(self)
watershed_workflow/mesh.py:1037
FunctionfillPits
Conditions a mesh, IN PLACE, by removing pits. Starts at outlet and works through all coordinates in the mesh, ensuring that there is a p
watershed_workflow/condition.py:25
FunctionfillPitsDual
Conditions the dual of the mesh, IN PLACE, by filling pits. This ensures the property that, starting with an outlet cell, there is a path to
watershed_workflow/condition.py:183
FunctionfilterDivergences
Removes both diversions and braids. Braids are divergences that return to the river network, and so look like branches of a river tree whose
watershed_workflow/river_tree.py:1473
FunctionfilterDiversions
Filteres diversions, but not braids.
watershed_workflow/river_tree.py:1409
FunctionfilterLeapDay
(data: xr.Dataset, time_column: str = 'time')
watershed_workflow/data.py:414
FunctionfilterSmallRivers
Remove any rivers with fewer than count reaches.
watershed_workflow/river_tree.py:1516
FunctionfilterToShape
Filter GeoDataFrame features based on spatial relationship with shape. Parameters ---------- df : gpd.GeoDataFrame GeoDataFra
watershed_workflow/utils.py:446
Methodfinalize_options
(self)
versioneer.py:1761
FunctionfindClosestPointIndex
Find the index of the closest point in an array of points. Parameters ---------- point : tuple of float Reference point as (x
watershed_workflow/utils.py:248
FunctionfindHUC
Finds the smallest HUC containing shape. Parameters ---------- source : source-type Source object providing a getShapes() method
watershed_workflow/__init__.py:56
FunctionfindNearestPoint
Find the nearest point on a LineString to a given point. Parameters ---------- point : shapely.geometry.Point or tuple of float
watershed_workflow/utils.py:903
FunctionfindOutletsByCrossings
For each HUC, find all outlets using a river network's crossing points. Parameters ---------- hucs : SplitHUCs Split HUCs object
watershed_workflow/hydrography.py:28
FunctionfindOutletsByElevation
Find outlets by the minimum elevation on the boundary. Parameters ---------- hucs : SplitHUCs Split HUCs object to find outlets f
watershed_workflow/hydrography.py:181
FunctionfindOutletsByHydroseq
Find outlets using the HydroSequence VAA of NHDPlus. Finds the minimum hydroseq reach in each HUC, and intersects that with the boundary to f
watershed_workflow/hydrography.py:208
Functionflatten
Flatten a list of shapes by expanding Multi-objects into individual geometries. Parameters ---------- list_of_shps : iterable
watershed_workflow/utils.py:305
Methodformat_this
(item)
watershed_workflow/plot.py:157
Functionfrom_cartopy
Convert cartopy CRS to workflow CRS. Parameters ---------- crs : cartopy.crs.CRS Cartopy CRS object to convert.
watershed_workflow/crs.py:182
Functionfrom_proj
Convert a Proj CRS to the workflow CRS standard. Parameters ---------- crs : CRS Proj CRS object to convert. Ret
watershed_workflow/crs.py:67
Functionfrom_xarray
Extract CRS from xarray DataArray. Parameters ---------- array : xarray.DataArray xarray DataArray that may contain CRS infor
watershed_workflow/crs.py:270
Functionfunc
(reach)
watershed_workflow/river_mesh.py:104
Functiongas_cmap
Create a gas-themed colormap. Returns ------- matplotlib.colors.LinearSegmentedColormap Gas-themed colormap from white to red.
watershed_workflow/colors.py:245
FunctiongenerateCoords
Generate all coordinates from a fiona geometry object. Parameters ---------- obj : dict Fiona shape dictionary with 'coordinates'
watershed_workflow/utils.py:1092
MethodgetAll
Download all HUCs at a given level.
watershed_workflow/sources/manager_wbd.py:88
FunctiongetCode
Gets the huc string from a HUC shape.
watershed_workflow/sources/utils.py:17
FunctiongetDefaultBedrockProperties
Simple helper function to get a one-row dataframe with bedrock properties. Returns ------- pd.DataFrame Sane default bedrock soil p
watershed_workflow/soil_properties.py:276
MethodgetNextAvailableLabeledSetID
Returns next available LS id.
watershed_workflow/mesh.py:1100
FunctiongetNode
Finds the node, by index, in a list of rivers. Parameters ---------- rivers : list[River] List of River objects to search throu
watershed_workflow/river_tree.py:906
FunctiongetShapePropertiesOnMesh
Intepolate shape data onto cell centroids of a mesh.
watershed_workflow/__init__.py:729
FunctiongetSources
Parsers the command line argument struct from argparse and provides an updated set of data sources. Parameters ---------- args : stru
watershed_workflow/sources/__init__.py:105
Functionget_basic_argparse
Gets a basic argparse class with basic options for all scripts.
watershed_workflow/ui.py:57
Functionget_cmdclass
Get the custom setuptools/distutils subclasses used by Versioneer. If the package uses a different cmdclass (e.g. one from numpy), it should
versioneer.py:1727
Functionget_version
Get the short version string for this project.
versioneer.py:1722
Functionget_versions
Get version information or return default if unable to do so.
watershed_workflow/_version.py:611
Functiongit_get_keywords
Extract version information from the given file.
versioneer.py:1065
Functiongit_get_keywords
Extract version information from the given file.
watershed_workflow/_version.py:134
Functiongit_pieces_from_vcs
Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded
versioneer.py:1157
Functiongit_versions_from_keywords
Get version information from git keywords.
versioneer.py:1093
Functiongoalpost
(watershed_rivers2)
watershed_workflow/test/test_11_condition.py:284
Functionhuc_arg
Adds a HUC argument to the parser.
watershed_workflow/ui.py:107
Functionhuc_args
Adds a HUC argument to the parser.
watershed_workflow/ui.py:112
Functionhuc_hint_options
Adds a HUC hint option for searching for shapes in HUCs
watershed_workflow/ui.py:260
Functionhuc_level_arg
Adds a HUC level argument to the parser.
watershed_workflow/ui.py:120
Functionhuc_source_options
Add options for sources.
watershed_workflow/ui.py:281
Functionhydro_source_options
Add options for sources.
watershed_workflow/ui.py:301
Functionice_cmap
Create an ice-themed colormap. Returns ------- matplotlib.colors.LinearSegmentedColormap Ice-themed colormap from white to blue.
watershed_workflow/colors.py:195
FunctionidentifyLocalMinima
For all cells, identify if their centroid elevation is lower than the elevation of all neighbors. Parameters ---------- m2 : mesh.Mes
watershed_workflow/condition.py:371
FunctionimputeHoles2D
Interpolate values for missing data in rasters using scipy griddata. Parameters ---------- arr : xarray.DataArray Input
watershed_workflow/data.py:1935
Methodinitialize_options
(self)
versioneer.py:1758
Methodinject
Inject node between self and self.children.
watershed_workflow/tinytree.py:178
Functioninshape_args
Sets input filename shapefile options.
watershed_workflow/ui.py:245
FunctioninterpolateToRegular
Interpolate data to new times. This function automatically selects the appropriate implementation based on the input data type: Data
watershed_workflow/data.py:650
FunctioninterpolateValues
Interpolate values from a 2D grid-based DataArray at given x, y or lat, lon points. Parameters ---------- points : np.ndarray
watershed_workflow/data.py:1888
FunctionintersectPointToSegment
Find the nearest point on a line segment to a given point. Parameters ---------- point : shapely.geometry.Point Point to find
watershed_workflow/utils.py:867
Functionintersects
Check whether two geometries intersect. Parameters ---------- shp1 : BaseGeometry First shapely geometry object. shp2 : B
watershed_workflow/utils.py:378
FunctionisClose
Equivalence of rivers. Parameters ---------- river1 : River First river to compare. river2 : River Second river to co
watershed_workflow/river_tree.py:1542
FunctionisConvex
Check if a set of points forms a convex polygon. Parameters ---------- points : iterable of tuple Points as coordinate tuples
watershed_workflow/utils.py:512
MethodisDescendantOf
Returns true if this node lies on the path to the root from the specified node. :node A Tree object
watershed_workflow/tinytree.py:196
FunctionisEqual
Check if two CRS objects are equal. Parameters ---------- crs1 : CRS First CRS to compare. crs2 : CRS Second CRS
watershed_workflow/crs.py:328
FunctionisNative
Check if CRS is in the native format. Parameters ---------- crs : CRS Coordinate reference system to check. Retu
watershed_workflow/crs.py:51
MethodisReady
Check if MODIS data request is ready for download. Overrides base class to check AppEEARS processing status and bundle availability.
watershed_workflow/sources/manager_modis_appeears.py:470
FunctionisSharpAngles
Posterior check for any sharp angles. Don't call this first -- just call smoothSharpAngles(). This is really for testing and confirming that
watershed_workflow/angles.py:37
FunctionisVolumetricIntersection
Check whether two geometries have a volumetric (area) intersection. Parameters ---------- shp1 : BaseGeometry First shapely g
watershed_workflow/utils.py:427
Methodis_list
(data)
watershed_workflow/mesh.py:1387
Methodis_uniform
(self)
watershed_workflow/resampling.py:27
Methodleaf_nodes
Generator for all leaves of the tree.
watershed_workflow/tinytree.py:273
Functionlighten
Lighten a color by increasing its brightness. Parameters ---------- color : Color Color to lighten. fraction : float, optiona
watershed_workflow/colors.py:405
Functionlines
()
watershed_workflow/test/crs_fixtures.py:27
Methodlinestring
Returns the linestring geometry.
watershed_workflow/river_tree.py:131
FunctionlinestringsWithCoords
Plot linestrings, but also potentially scatter their coordinates. Parameters ---------- df : geopandas.GeoDataFrame GeoDataFrame
watershed_workflow/plot.py:52
FunctionlogMinMaxMedianSegment
Log statistics and optionally plot histogram of segment lengths. Parameters ---------- iterable : iterable of shapely.geometry.LineSt
watershed_workflow/utils.py:993
FunctionlogSources
Pretty print source dictionary to log.
watershed_workflow/sources/__init__.py:181
MethodmakeContinuous
Sometimes there can be small gaps between linestrings of river tree if river is constructed using hydroseq and Snap option is not used
watershed_workflow/river_tree.py:613
FunctionmakeMap
(m)
watershed_workflow/__init__.py:741
Methodmake_release_tree
(self, base_dir, files)
versioneer.py:1913
Functionmanager_multi_shapes
ManagerShapefile for multi-shape file without ID field specified
watershed_workflow/sources/test/test_manager_shapefile.py:33
← previousnext →601–700 of 1,294, ranked by callers