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
↓ 1 callers
Function
fixConvexity
Snap element coordinates onto the convex hull while respecting upstream stream width. Parameters ---------- reach : River River r
watershed_workflow/river_mesh.py:756
↓ 1 callers
Function
from_rasterio
Convert rasterio CRS to workflow CRS standard. Parameters ---------- crs : rasterio.crs.CRS Rasterio CRS object to convert.
watershed_workflow/crs.py:99
↓ 1 callers
Function
from_wkt
Create CRS from Well-Known Text (WKT) string. Parameters ---------- string : str WKT string specification of coordinate refer
watershed_workflow/crs.py:238
↓ 1 callers
Function
func
(reach)
watershed_workflow/condition.py:427
↓ 1 callers
Function
generateRings
Generate coordinate rings from a fiona shape object. Parameters ---------- obj : dict Fiona shape dictionary with 'coordinates' o
watershed_workflow/utils.py:1064
↓ 1 callers
Function
getConfig
()
watershed_workflow/config.py:38
↓ 1 callers
Function
getDatasetOnMesh
Interpolate xarray data onto cell centroids of a mesh.
watershed_workflow/__init__.py:715
↓ 1 callers
Function
getDefaultConfig
Dictionary of all config option defaults. Returns ------- rcParams : configparser.ConfigParser A dict-like object containing parame
watershed_workflow/config.py:13
↓ 1 callers
Function
getDefaultSources
Provides a default set of data sources. Returns a dictionary with default sources for each type.
watershed_workflow/sources/__init__.py:87
↓ 1 callers
Function
getHome
()
watershed_workflow/config.py:9
↓ 1 callers
Function
getVerifyOption
Returns the 'verify' option for requests as provided in config files.
watershed_workflow/sources/utils.py:31
↓ 1 callers
Function
get_args
()
bin/mesh_shape.py:12
↓ 1 callers
Function
get_args
()
bin/condition_dem.py:12
↓ 1 callers
Function
get_args
()
bin/plot_shape.py:14
↓ 1 callers
Function
get_args
()
bin/plot_hucs.py:13
↓ 1 callers
Function
get_args
()
bin/extrude_mesh.py:20
↓ 1 callers
Function
get_args
()
bin/mesh_hucs.py:12
↓ 1 callers
Function
get_config
Create, populate and return the VersioneerConfig() object.
watershed_workflow/_version.py:36
↓ 1 callers
Function
get_keywords
Get the keywords needed to look up the version information.
watershed_workflow/_version.py:19
↓ 1 callers
Function
git_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
watershed_workflow/_version.py:233
↓ 1 callers
Function
git_versions_from_keywords
Get version information from git keywords.
watershed_workflow/_version.py:162
↓ 1 callers
Function
inNeighborhood
Check if two geometries can possibly intersect using bounding box test. Parameters ---------- shp1 : BaseGeometry First shape
watershed_workflow/utils.py:840
↓ 1 callers
Method
insertCoordinate
If it doesn't already exist, inserts a new coordinate before the ith coordinate. Returns the index of the new (or preexisting) coordinate.
watershed_workflow/river_tree.py:455
↓ 1 callers
Method
insertCoordinateByArclen
Inserts a new coordinate at a given arclen, returning the index of that coordinate. Parameters ---------- s : float
watershed_workflow/river_tree.py:474
↓ 1 callers
Function
interpolate
(data: xr.Dataset, time_values: Sequence[ValidTime] = ..., time_dim: str = ...
watershed_workflow/data.py:575
↓ 1 callers
Function
interpolate_DataFrame
Interpolate DataFrame to arbitrary times. NOTE: this is not the same as pandas.interpolate(), but more like pandas.reindex(time_values).inter
watershed_workflow/data.py:531
↓ 1 callers
Function
intersectAndSplit
Given a list of shapes which share boundaries (i.e. they partition some space), return a compilation of their linestrings. Parameters ---
watershed_workflow/split_hucs.py:483
↓ 1 callers
Function
isClose
Check if two shapely geometries are topologically equivalent and geometrically close. Parameters ---------- s1 : BaseGeometry
watershed_workflow/utils.py:572
↓ 1 callers
Function
isCollinear
Check if three points are collinear within a given tolerance. Parameters ---------- p1 : tuple of float First point as (x, y)
watershed_workflow/utils.py:100
↓ 1 callers
Function
isEqual
(p1, p2)
watershed_workflow/hydrography.py:699
↓ 1 callers
Function
isHUCsSharpAngle
Are there sharp angles in a HUC boundary or junction?
watershed_workflow/angles.py:471
↓ 1 callers
Method
isLocallyContinuous
Is this node continuous with its parent and children?
watershed_workflow/river_tree.py:592
↓ 1 callers
Function
isNearlyGrey
Determines whether a color is nearly grey. Parameters ---------- color : Color Color to test for greyness. tolerance : float,
watershed_workflow/colors.py:45
↓ 1 callers
Function
isNonPointIntersection
Check whether two geometries intersect with more than just a point. Parameters ---------- shp1 : BaseGeometry First shapely g
watershed_workflow/utils.py:402
↓ 1 callers
Function
isOutletSharpAngle
Are there sharp angles at the downstream end of a river, which may include HUC boundaries?
watershed_workflow/angles.py:298
↓ 1 callers
Method
isSiblingOf
Returns true if this node is a sibling of the specified node. :node A Tree object
watershed_workflow/tinytree.py:205
↓ 1 callers
Function
isUpstreamSharpAngle
Are there sharp angles at the upstream end of a reach, which may include HUC boundaries?
watershed_workflow/angles.py:380
↓ 1 callers
Function
is_list_same
(l1, l2)
watershed_workflow/test/test_03_river_tree.py:20
↓ 1 callers
Function
make_points_1D
(elevs)
watershed_workflow/test/test_11_condition.py:14
↓ 1 callers
Function
map_conn
(conn, mapping)
watershed_workflow/mesh.py:1821
↓ 1 callers
Function
mergeTwoMeshes
merge two meshes (mesh.Mesh2D objects)
watershed_workflow/mesh.py:1810
↓ 1 callers
Function
mesh_hucs
(args)
bin/mesh_hucs.py:32
↓ 1 callers
Function
mesh_shapes
(args)
bin/mesh_shape.py:33
↓ 1 callers
Function
my_refine_func
(*args)
watershed_workflow/__init__.py:498
↓ 1 callers
Function
partition
Given a list of shapes which mostly share boundaries, make sure they partition the space. Often HUC boundaries have minor overlaps and underl
watershed_workflow/split_hucs.py:451
↓ 1 callers
Function
penalty_dz
(dzs)
watershed_workflow/mesh.py:1704
↓ 1 callers
Function
penalty_increasing
(dzs)
watershed_workflow/mesh.py:1707
↓ 1 callers
Function
penalty_smooth
(dzs)
watershed_workflow/mesh.py:1710
↓ 1 callers
Function
penalty_thickness
(dzs)
watershed_workflow/mesh.py:1701
↓ 1 callers
Function
pep440_split_post
Split pep440 version string at the post-release linestring. Returns the release linestrings before the post-release and the post-release vers
versioneer.py:1454
↓ 1 callers
Function
pep440_split_post
Split pep440 version string at the post-release linestring. Returns the release linestrings before the post-release and the post-release vers
watershed_workflow/_version.py:417
↓ 1 callers
Function
plot
(hucs, hucs_orig, river, river_orig, force=False)
watershed_workflow/test/test_07_angles.py:29
↓ 1 callers
Method
plotAsLinestrings
Plot not as polygons, but individual linestrings.
watershed_workflow/split_hucs.py:269
↓ 1 callers
Function
plotRiver
(river, river_orig, force = False)
watershed_workflow/test/test_07_angles.py:21
↓ 1 callers
Function
plot_hucs
(args)
bin/plot_hucs.py:31
↓ 1 callers
Function
plot_shape
(args)
bin/plot_shape.py:32
↓ 1 callers
Method
prePostInBetweenOrder
Generates a tuple, (flag,node) in pre and post order, but also with self in between all consective children. The flag indicat
watershed_workflow/tinytree.py:243
↓ 1 callers
Function
pruneByArea
Removes, IN PLACE, reaches whose total contributing area is less than area km^2. Parameters ---------- river : River The river ne
watershed_workflow/river_tree.py:1353
↓ 1 callers
Method
raw_folder_name
(self, *args, **kwargs)
watershed_workflow/sources/filenames.py:27
↓ 1 callers
Function
raw_from_cell_data
(cell_data)
watershed_workflow/vtk_io.py:345
↓ 1 callers
Method
read_VTK_Simplices
Constructor from an structured VTK file.
watershed_workflow/mesh.py:612
↓ 1 callers
Method
read_VTK_Unstructured
Constructor from an unstructured VTK file.
watershed_workflow/mesh.py:545
↓ 1 callers
Function
read_and_process_dump
Helper function to read, process, and save a new mock HUC file.
watershed_workflow/test/source_fixture_helpers.py:27
↓ 1 callers
Function
read_buffer
(f)
watershed_workflow/vtk_io.py:111
↓ 1 callers
Function
refine_distance_options
(parser)
watershed_workflow/ui.py:212
↓ 1 callers
Function
refine_max_area_options
(parser)
watershed_workflow/ui.py:206
↓ 1 callers
Function
refine_max_edge_length
(parser)
watershed_workflow/ui.py:233
↓ 1 callers
Function
refine_min_angle
(parser)
watershed_workflow/ui.py:227
↓ 1 callers
Function
removeHoles
Removes interior small holes between the boundaries of polygons. Note this assumes the polygons are mostly disjoint.
watershed_workflow/split_hucs.py:389
↓ 1 callers
Function
render
Render the given version pieces into the requested style.
versioneer.py:1606
↓ 1 callers
Function
render
Render the given version pieces into the requested style.
watershed_workflow/_version.py:569
↓ 1 callers
Function
render_git_describe
TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
versioneer.py:1566
↓ 1 callers
Function
render_git_describe
TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
watershed_workflow/_version.py:529
↓ 1 callers
Function
render_git_describe_long
TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no
versioneer.py:1586
↓ 1 callers
Function
render_git_describe_long
TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no
watershed_workflow/_version.py:549
↓ 1 callers
Function
render_pep440
Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged
versioneer.py:1399
↓ 1 callers
Function
render_pep440
Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged
watershed_workflow/_version.py:364
↓ 1 callers
Function
render_pep440_branch
TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . The ".dev0" means not master branch. Note that .dev0 sorts backwards (a feature branch will appear "olde
versioneer.py:1424
↓ 1 callers
Function
render_pep440_branch
TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . The ".dev0" means not master branch. Note that .dev0 sorts backwards (a feature branch will appear "olde
watershed_workflow/_version.py:388
↓ 1 callers
Function
render_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
versioneer.py:1544
↓ 1 callers
Function
render_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
watershed_workflow/_version.py:507
↓ 1 callers
Function
render_pep440_post
TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the correspo
versioneer.py:1488
↓ 1 callers
Function
render_pep440_post
TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the correspo
watershed_workflow/_version.py:451
↓ 1 callers
Function
render_pep440_post_branch
TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . The ".dev0" means not master branch. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
versioneer.py:1515
↓ 1 callers
Function
render_pep440_post_branch
TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . The ".dev0" means not master branch. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
watershed_workflow/_version.py:478
↓ 1 callers
Function
render_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
versioneer.py:1464
↓ 1 callers
Function
render_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
watershed_workflow/_version.py:427
↓ 1 callers
Function
resampleLineStringNonuniform
Resample a linestring nonuniformly, keeping previous discrete coords if possible.
watershed_workflow/resampling.py:349
↓ 1 callers
Method
run
(self)
watershed_workflow/stream_light.py:775
↓ 1 callers
Function
run_command
Call the given command(s).
versioneer.py:382
↓ 1 callers
Function
scan_setup_py
Validate the contents of setup.py against Versioneer's expectations.
versioneer.py:2066
↓ 1 callers
Method
select
Selects item i, collection index j, with a click at xy. Parameters ---------- i : int Index of the item in the it
watershed_workflow/plot.py:171
↓ 1 callers
Function
seq
(r)
watershed_workflow/mesh.py:1673
↓ 1 callers
Method
set
(self, **kwargs)
watershed_workflow/sources/manager_wbd.py:25
↓ 1 callers
Method
setChannelProperties
Set the channel properties. Parameters ---------- lat : float Latitude [decimal degrees]. lon : float
watershed_workflow/stream_light.py:49
↓ 1 callers
Method
setEnergyDrivers
Set the energy drivers. Parameters ---------- doy : int Day of the year. hour: int Hour of t
watershed_workflow/stream_light.py:99
↓ 1 callers
Function
set_up_docker_config
(workdir, data_library)
bin/run_ww_lab.py:22
↓ 1 callers
Function
shply
Warp a shapely geometry object from old_crs to new_crs. Parameters ---------- shp : shapely.geometry.base.BaseGeometry S
watershed_workflow/warp.py:108
↓ 1 callers
Function
smooth2D_Dataset
Apply 2D spatial smoothing to variables in a Dataset. Parameters ---------- ds : xr.Dataset Input Dataset with at least
watershed_workflow/data.py:1692
↓ 1 callers
Function
smoothHUCsSharpAngles
Smooths sharp angles on HUC linestrings or junctions.
watershed_workflow/angles.py:494
← previous
next →
301–400 of 1,294, ranked by callers