Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/environmental-modeling-workflows/watershed-workflow
/ functions
Functions
1,294 in github.com/environmental-modeling-workflows/watershed-workflow
⨍
Functions
1,294
◇
Types & classes
71
↳
Endpoints
3
Function
manager_no_id
ManagerShapefile without ID field specified
watershed_workflow/sources/test/test_manager_shapefile.py:27
Function
mangleGLHYMPSProperties
GLHYMPs properties need their units changed and variables renamed. Parameters ---------- shapes : gpd.GeoDataFrame min_porosity : flo
watershed_workflow/soil_properties.py:303
Function
mapper
(value)
watershed_workflow/colors.py:309
Method
material_ids_list
(self)
watershed_workflow/mesh.py:1045
Method
max
(self)
watershed_workflow/resampling.py:54
Method
max
(self)
watershed_workflow/resampling.py:67
Method
max
(self)
watershed_workflow/resampling.py:84
Method
max
(self)
watershed_workflow/resampling.py:111
Function
measureBoldness
Calculate a vibrancy and boldness score for a given color. Parameters ---------- color : Color Color to measure boldness for.
watershed_workflow/colors.py:67
Function
mergeMeshes
Combines multiple 2D meshes into a single mesh. It is assumed that the meshes to be combined have common vertices on the shared edge (no st
watershed_workflow/mesh.py:1782
Function
mergeShortReaches
Remove inner branches that are short, combining branchpoints as needed. This function merges the "short" linestring into the child linestring
watershed_workflow/river_tree.py:1268
Method
min
(self)
watershed_workflow/resampling.py:51
Method
min
(self)
watershed_workflow/resampling.py:64
Method
min
(self)
watershed_workflow/resampling.py:81
Method
min
(self)
watershed_workflow/resampling.py:108
Method
mixed_types_gdf
Create a GeoDataFrame with different numeric types, leaving a gap for nans.
watershed_workflow/test/test_02b_data.py:1844
Function
modis_manager
Create MODIS manager without authentication for testing.
watershed_workflow/sources/test/test_manager_appeears.py:18
Function
move
Move a file to a folder.
watershed_workflow/sources/utils.py:106
Function
multi_shape_path
Path to shapefile with multiple shapes for row index testing
watershed_workflow/sources/test/test_manager_shapefile.py:21
Method
multipolygon_gdf
Create a GeoDataFrame with MultiPolygons.
watershed_workflow/test/test_02b_data.py:1827
Function
nhd_hr
ManagerNHD for NHDPlus HR protocol
watershed_workflow/sources/test/test_manager_nhd.py:23
Function
nhd_mr
ManagerNHD for NHD MR protocol
watershed_workflow/sources/test/test_manager_nhd.py:17
Function
nhd_waterdata
ManagerNHD for WaterData protocol
watershed_workflow/sources/test/test_manager_nhd.py:11
Method
num_cells
Number of cells in the mesh. Returns ------- int Number of cells.
watershed_workflow/mesh.py:257
Method
num_cells
(self)
watershed_workflow/mesh.py:1053
Method
num_edges
Number of edges in the mesh. Returns ------- int Number of edges.
watershed_workflow/mesh.py:279
Method
num_faces
(self)
watershed_workflow/mesh.py:1061
Method
num_vertices
Number of vertices in the mesh. Returns ------- int Number of vertices.
watershed_workflow/mesh.py:268
Method
num_vertices
(self)
watershed_workflow/mesh.py:1057
Function
optimizeDzs
Tries to optimize dzs
watershed_workflow/mesh.py:1689
Function
outmesh_args
Sets output filename and format options.
watershed_workflow/ui.py:254
Method
overlapping_polygon_gdf
Create a GeoDataFrame with overlapping polygons.
watershed_workflow/test/test_02b_data.py:1814
Method
parent_child_index
Return the index of this node in the parent child list, based on object identity.
watershed_workflow/tinytree.py:123
Function
penalty
(dzs)
watershed_workflow/mesh.py:1714
Method
plot
Plot the rivers. Parameters ---------- *args Positional arguments passed to watershed_workflow.plot.linestr
watershed_workflow/river_tree.py:173
Method
plot
Plot as polygons (boundaries only).
watershed_workflow/split_hucs.py:265
Function
plotHUCs
(hucs, hucs_orig, force = False)
watershed_workflow/test/test_07_angles.py:13
Function
plotLAI
Plots time series of land cover data. Parameters ---------- df : pd.DataFrame DataFrame containing time series LAI data. indi
watershed_workflow/land_cover_properties.py:281
Function
plot_options
(parser)
watershed_workflow/ui.py:184
Function
plot_with_dem
(args, hucs, reaches, dem, profile,
watershed_workflow/bin_utils.py:53
Function
plot_with_triangulation
(args, hucs, rivers, trian
watershed_workflow/bin_utils.py:17
Function
point
()
watershed_workflow/test/crs_fixtures.py:5
Function
point_ak
()
watershed_workflow/test/crs_fixtures.py:9
Function
points
Warp an array of points from old_crs to new_crs. Parameters ---------- array : numpy.ndarray Array of shape (N, 2) conta
watershed_workflow/warp.py:59
Function
points
()
watershed_workflow/test/crs_fixtures.py:18
Function
polygons
()
watershed_workflow/test/crs_fixtures.py:40
Method
popCoordinate
Removes the ith coordinate and returns its value.
watershed_workflow/river_tree.py:518
Method
prependCoordinates
Prepends multiple coordinates at the beginning (upstream) of the linestring.
watershed_workflow/river_tree.py:513
Function
projectVectorAtAngle
Project a vector from v1 at a specified angle and distance. Parameters ---------- v1 : tuple of float or shapely.geometry.LineString
watershed_workflow/utils.py:190
Function
projection
(parser)
watershed_workflow/ui.py:82
Method
properties
(self)
watershed_workflow/river_tree.py:144
Function
pruneByLineStringLength
Removes any leaf linestrings that are shorter than prune_tol. Parameters ---------- river : River The river network to prune.
watershed_workflow/river_tree.py:1318
Function
pruneRiversByArea
Both prunes reaches and filters rivers whose contributing area is less than area.
watershed_workflow/river_tree.py:1392
Function
raster_manager
ManagerRaster instance for DTB.tif.
watershed_workflow/sources/test/test_manager_raster.py:22
Function
rasterizeGeoDataFrame
Convert a GeoDataFrame to a rasterized DataArray based on a column's values. Parameters ---------- gdf : geopandas.GeoDataFrame
watershed_workflow/data.py:1978
Function
read
Reads a Gmsh msh file.
watershed_workflow/vtk_io.py:103
Function
recenter
Center a collection of objects by translating to remove their centroid. Parameters ---------- objects : iterable of BaseGeometry
watershed_workflow/utils.py:329
Function
reduceRivers
Reduce the extent of the river network through a variety of methods. Parameters ---------- rivers : list(river_tree.River) A list
watershed_workflow/__init__.py:135
Function
refine
A function for use with watershed_workflow.triangulate.triangulate's refinement_func argument based on a global max area.
watershed_workflow/triangulation.py:250
Function
refineByMaxArea
Returns a refinement function based on max area, for use with Triangle.
watershed_workflow/triangulation.py:248
Function
refineByMaxEdgeLength
Returns a refinement function based on max edge length, for use with Triangle.
watershed_workflow/triangulation.py:333
Function
refineByPolygons
Returns a graded refinement function based upon polygon area limits, for use with Triangle. Triangle area must be smaller than the area limit for
watershed_workflow/triangulation.py:305
Function
refineByRiverDistance
Returns a graded refinement function based upon a distance function from rivers, for use with Triangle. Triangle area must be smaller than near_a
watershed_workflow/triangulation.py:260
Function
register_vcs_handler
Create decorator to mark a method as the handler of a VCS.
versioneer.py:373
Function
register_vcs_handler
Create decorator to mark a method as the handler of a VCS.
watershed_workflow/_version.py:58
Function
removeBraids
Remove braids, but not diversions.
watershed_workflow/river_tree.py:1444
Function
removeNullLAI
In place, sets entries in the null list to 0 LAI. The null_list defaults to a common list for NLCD.
watershed_workflow/land_cover_properties.py:258
Function
removeThirdDimension
Remove the third dimension (Z-coordinate) from a shapely geometry. Parameters ---------- geom : shapely.geometry.base.BaseGeometry
watershed_workflow/utils.py:939
Method
reparent
Inserts a node between the current node and its parent. Returns the specified parent node. :node A Tree object
watershed_workflow/tinytree.py:185
Function
resampleRiver
Resamples each reach based on the TARGET_SEGMENT_LENGTH property.
watershed_workflow/resampling.py:143
Function
resampleRivers
Resamples each reach based on the TARGET_SEGMENT_LENGTH property.
watershed_workflow/resampling.py:119
Function
resampleSplitHUCs
Resamples each HUC boundary segment based on a given target length.
watershed_workflow/resampling.py:193
Function
rivers
()
watershed_workflow/test/shapes.py:77
Method
run
(self)
versioneer.py:1764
Method
run
(self)
versioneer.py:1798
Method
run
(self)
versioneer.py:1820
Method
run
(self)
versioneer.py:1849
Method
run
(self)
versioneer.py:1875
Function
run_command
Call the given command(s).
watershed_workflow/_version.py:70
Method
sample_2d_data
Create sample 2D data with some structure.
watershed_workflow/test/test_02b_data.py:1504
Method
sample_3d_dataarray
Create 3D DataArray with time dimension.
watershed_workflow/test/test_02b_data.py:1537
Method
sample_data
Create sample time series data.
watershed_workflow/test/test_02b_data.py:1096
Method
sample_dataarray
Create sample DataArray.
watershed_workflow/test/test_02b_data.py:861
Method
sample_dataarray
Create sample DataArray.
watershed_workflow/test/test_02b_data.py:1115
Method
sample_dataarray_latlon
Create DataArray with lat, lon dimensions.
watershed_workflow/test/test_02b_data.py:1527
Method
sample_dataarray_xy
Create DataArray with x, y dimensions.
watershed_workflow/test/test_02b_data.py:1516
Method
sample_dataframe
Create sample DataFrame.
watershed_workflow/test/test_02b_data.py:851
Method
sample_dataframe
Create sample DataFrame.
watershed_workflow/test/test_02b_data.py:1104
Method
sample_dataset
Create sample Dataset.
watershed_workflow/test/test_02b_data.py:872
Method
sample_dataset
Create sample Dataset.
watershed_workflow/test/test_02b_data.py:1127
Method
sample_dataset
Create Dataset with multiple variables.
watershed_workflow/test/test_02b_data.py:1551
Method
sample_multiyear_df
Create sample DataFrame spanning multiple years.
watershed_workflow/test/test_02b_data.py:972
Method
sample_times
Create sample irregular cftime dates.
watershed_workflow/test/test_02b_data.py:840
Function
save
(args, triangulation)
watershed_workflow/bin_utils.py:143
Function
scalebar
Add a scale bar to CartoPy axes. For angles between 0 and 90 the text and line may be plotted at slightly different angles for unknown reason
watershed_workflow/scalebar.py:184
Function
setDataDirectory
Sets the directory in which all data is stored.
watershed_workflow/config.py:62
Function
setProfileByDEM
Set the z-coordinate of the reach linestring from a DEM dataset.
watershed_workflow/condition.py:515
Function
setup_logging
Sets the log level and log file.
watershed_workflow/ui.py:41
Function
shapefile
Type for argparse - checks that file exists and can be opened by geopandas.
watershed_workflow/ui.py:24
Function
shapefile_path
Path to test shapefile
watershed_workflow/sources/test/test_manager_shapefile.py:15
← previous
next →
701–800 of 1,294, ranked by callers