MCPcopy Create free account

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

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

↓ 1 callersFunctionfixConvexity
Snap element coordinates onto the convex hull while respecting upstream stream width. Parameters ---------- reach : River River r
watershed_workflow/river_mesh.py:756
↓ 1 callersFunctionfrom_rasterio
Convert rasterio CRS to workflow CRS standard. Parameters ---------- crs : rasterio.crs.CRS Rasterio CRS object to convert.
watershed_workflow/crs.py:99
↓ 1 callersFunctionfrom_wkt
Create CRS from Well-Known Text (WKT) string. Parameters ---------- string : str WKT string specification of coordinate refer
watershed_workflow/crs.py:238
↓ 1 callersFunctionfunc
(reach)
watershed_workflow/condition.py:427
↓ 1 callersFunctiongenerateRings
Generate coordinate rings from a fiona shape object. Parameters ---------- obj : dict Fiona shape dictionary with 'coordinates' o
watershed_workflow/utils.py:1064
↓ 1 callersFunctiongetConfig
()
watershed_workflow/config.py:38
↓ 1 callersFunctiongetDatasetOnMesh
Interpolate xarray data onto cell centroids of a mesh.
watershed_workflow/__init__.py:715
↓ 1 callersFunctiongetDefaultConfig
Dictionary of all config option defaults. Returns ------- rcParams : configparser.ConfigParser A dict-like object containing parame
watershed_workflow/config.py:13
↓ 1 callersFunctiongetDefaultSources
Provides a default set of data sources. Returns a dictionary with default sources for each type.
watershed_workflow/sources/__init__.py:87
↓ 1 callersFunctiongetHome
()
watershed_workflow/config.py:9
↓ 1 callersFunctiongetVerifyOption
Returns the 'verify' option for requests as provided in config files.
watershed_workflow/sources/utils.py:31
↓ 1 callersFunctionget_args
()
bin/mesh_shape.py:12
↓ 1 callersFunctionget_args
()
bin/condition_dem.py:12
↓ 1 callersFunctionget_args
()
bin/plot_shape.py:14
↓ 1 callersFunctionget_args
()
bin/plot_hucs.py:13
↓ 1 callersFunctionget_args
()
bin/extrude_mesh.py:20
↓ 1 callersFunctionget_args
()
bin/mesh_hucs.py:12
↓ 1 callersFunctionget_config
Create, populate and return the VersioneerConfig() object.
watershed_workflow/_version.py:36
↓ 1 callersFunctionget_keywords
Get the keywords needed to look up the version information.
watershed_workflow/_version.py:19
↓ 1 callersFunctiongit_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 callersFunctiongit_versions_from_keywords
Get version information from git keywords.
watershed_workflow/_version.py:162
↓ 1 callersFunctioninNeighborhood
Check if two geometries can possibly intersect using bounding box test. Parameters ---------- shp1 : BaseGeometry First shape
watershed_workflow/utils.py:840
↓ 1 callersMethodinsertCoordinate
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 callersMethodinsertCoordinateByArclen
Inserts a new coordinate at a given arclen, returning the index of that coordinate. Parameters ---------- s : float
watershed_workflow/river_tree.py:474
↓ 1 callersFunctioninterpolate
(data: xr.Dataset, time_values: Sequence[ValidTime] = ..., time_dim: str = ...
watershed_workflow/data.py:575
↓ 1 callersFunctioninterpolate_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 callersFunctionintersectAndSplit
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 callersFunctionisClose
Check if two shapely geometries are topologically equivalent and geometrically close. Parameters ---------- s1 : BaseGeometry
watershed_workflow/utils.py:572
↓ 1 callersFunctionisCollinear
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 callersFunctionisEqual
(p1, p2)
watershed_workflow/hydrography.py:699
↓ 1 callersFunctionisHUCsSharpAngle
Are there sharp angles in a HUC boundary or junction?
watershed_workflow/angles.py:471
↓ 1 callersMethodisLocallyContinuous
Is this node continuous with its parent and children?
watershed_workflow/river_tree.py:592
↓ 1 callersFunctionisNearlyGrey
Determines whether a color is nearly grey. Parameters ---------- color : Color Color to test for greyness. tolerance : float,
watershed_workflow/colors.py:45
↓ 1 callersFunctionisNonPointIntersection
Check whether two geometries intersect with more than just a point. Parameters ---------- shp1 : BaseGeometry First shapely g
watershed_workflow/utils.py:402
↓ 1 callersFunctionisOutletSharpAngle
Are there sharp angles at the downstream end of a river, which may include HUC boundaries?
watershed_workflow/angles.py:298
↓ 1 callersMethodisSiblingOf
Returns true if this node is a sibling of the specified node. :node A Tree object
watershed_workflow/tinytree.py:205
↓ 1 callersFunctionisUpstreamSharpAngle
Are there sharp angles at the upstream end of a reach, which may include HUC boundaries?
watershed_workflow/angles.py:380
↓ 1 callersFunctionis_list_same
(l1, l2)
watershed_workflow/test/test_03_river_tree.py:20
↓ 1 callersFunctionmake_points_1D
(elevs)
watershed_workflow/test/test_11_condition.py:14
↓ 1 callersFunctionmap_conn
(conn, mapping)
watershed_workflow/mesh.py:1821
↓ 1 callersFunctionmergeTwoMeshes
merge two meshes (mesh.Mesh2D objects)
watershed_workflow/mesh.py:1810
↓ 1 callersFunctionmesh_hucs
(args)
bin/mesh_hucs.py:32
↓ 1 callersFunctionmesh_shapes
(args)
bin/mesh_shape.py:33
↓ 1 callersFunctionmy_refine_func
(*args)
watershed_workflow/__init__.py:498
↓ 1 callersFunctionpartition
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 callersFunctionpenalty_dz
(dzs)
watershed_workflow/mesh.py:1704
↓ 1 callersFunctionpenalty_increasing
(dzs)
watershed_workflow/mesh.py:1707
↓ 1 callersFunctionpenalty_smooth
(dzs)
watershed_workflow/mesh.py:1710
↓ 1 callersFunctionpenalty_thickness
(dzs)
watershed_workflow/mesh.py:1701
↓ 1 callersFunctionpep440_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 callersFunctionpep440_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 callersFunctionplot
(hucs, hucs_orig, river, river_orig, force=False)
watershed_workflow/test/test_07_angles.py:29
↓ 1 callersMethodplotAsLinestrings
Plot not as polygons, but individual linestrings.
watershed_workflow/split_hucs.py:269
↓ 1 callersFunctionplotRiver
(river, river_orig, force = False)
watershed_workflow/test/test_07_angles.py:21
↓ 1 callersFunctionplot_hucs
(args)
bin/plot_hucs.py:31
↓ 1 callersFunctionplot_shape
(args)
bin/plot_shape.py:32
↓ 1 callersMethodprePostInBetweenOrder
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 callersFunctionpruneByArea
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 callersMethodraw_folder_name
(self, *args, **kwargs)
watershed_workflow/sources/filenames.py:27
↓ 1 callersFunctionraw_from_cell_data
(cell_data)
watershed_workflow/vtk_io.py:345
↓ 1 callersMethodread_VTK_Simplices
Constructor from an structured VTK file.
watershed_workflow/mesh.py:612
↓ 1 callersMethodread_VTK_Unstructured
Constructor from an unstructured VTK file.
watershed_workflow/mesh.py:545
↓ 1 callersFunctionread_and_process_dump
Helper function to read, process, and save a new mock HUC file.
watershed_workflow/test/source_fixture_helpers.py:27
↓ 1 callersFunctionread_buffer
(f)
watershed_workflow/vtk_io.py:111
↓ 1 callersFunctionrefine_distance_options
(parser)
watershed_workflow/ui.py:212
↓ 1 callersFunctionrefine_max_area_options
(parser)
watershed_workflow/ui.py:206
↓ 1 callersFunctionrefine_max_edge_length
(parser)
watershed_workflow/ui.py:233
↓ 1 callersFunctionrefine_min_angle
(parser)
watershed_workflow/ui.py:227
↓ 1 callersFunctionremoveHoles
Removes interior small holes between the boundaries of polygons. Note this assumes the polygons are mostly disjoint.
watershed_workflow/split_hucs.py:389
↓ 1 callersFunctionrender
Render the given version pieces into the requested style.
versioneer.py:1606
↓ 1 callersFunctionrender
Render the given version pieces into the requested style.
watershed_workflow/_version.py:569
↓ 1 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
versioneer.py:1544
↓ 1 callersFunctionrender_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
watershed_workflow/_version.py:507
↓ 1 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_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 callersFunctionrender_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
versioneer.py:1464
↓ 1 callersFunctionrender_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
watershed_workflow/_version.py:427
↓ 1 callersFunctionresampleLineStringNonuniform
Resample a linestring nonuniformly, keeping previous discrete coords if possible.
watershed_workflow/resampling.py:349
↓ 1 callersMethodrun
(self)
watershed_workflow/stream_light.py:775
↓ 1 callersFunctionrun_command
Call the given command(s).
versioneer.py:382
↓ 1 callersFunctionscan_setup_py
Validate the contents of setup.py against Versioneer's expectations.
versioneer.py:2066
↓ 1 callersMethodselect
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 callersFunctionseq
(r)
watershed_workflow/mesh.py:1673
↓ 1 callersMethodset
(self, **kwargs)
watershed_workflow/sources/manager_wbd.py:25
↓ 1 callersMethodsetChannelProperties
Set the channel properties. Parameters ---------- lat : float Latitude [decimal degrees]. lon : float
watershed_workflow/stream_light.py:49
↓ 1 callersMethodsetEnergyDrivers
Set the energy drivers. Parameters ---------- doy : int Day of the year. hour: int Hour of t
watershed_workflow/stream_light.py:99
↓ 1 callersFunctionset_up_docker_config
(workdir, data_library)
bin/run_ww_lab.py:22
↓ 1 callersFunctionshply
Warp a shapely geometry object from old_crs to new_crs. Parameters ---------- shp : shapely.geometry.base.BaseGeometry S
watershed_workflow/warp.py:108
↓ 1 callersFunctionsmooth2D_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 callersFunctionsmoothHUCsSharpAngles
Smooths sharp angles on HUC linestrings or junctions.
watershed_workflow/angles.py:494
← previousnext →301–400 of 1,294, ranked by callers