MCPcopy Index your code

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

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

↓ 234 callersMethodappend
Adds a object, returning a handle to that object
watershed_workflow/split_hucs.py:68
↓ 60 callersMethodgetDataset
Get dataset for the given geometry and time range. Blocking request. Parameters ---------- geometry : shapely.geomet
watershed_workflow/sources/manager_dataset.py:245
↓ 59 callersMethoditems
(self)
watershed_workflow/split_hucs.py:105
↓ 45 callersMethodplot
Plot the flattened 2D mesh.
watershed_workflow/mesh.py:442
↓ 38 callersMethodcopy
Shallow copy using a provided DataFrame
watershed_workflow/river_tree.py:747
↓ 33 callersMethodextend
Add many objects, returning a list of handles.
watershed_workflow/split_hucs.py:75
↓ 33 callersMethodkeys
(self)
watershed_workflow/river_tree.py:81
↓ 33 callersMethodpreOrder
Generates nodes in PreOrder.
watershed_workflow/tinytree.py:223
↓ 32 callersMethodsplit
Split the reach at the ith coordinate of the linestring. Note that this does not split the catchment! self becomes the downstream no
watershed_workflow/river_tree.py:289
↓ 30 callersMethodpop
Removes a handle and its object.
watershed_workflow/split_hucs.py:79
↓ 24 callersMethodgetShapesByGeometry
Get shapes that intersect with the given geometry. Parameters ---------- geometry : shapely.geometry.base.BaseGeometry | gpd.
watershed_workflow/sources/manager_shapes.py:102
↓ 22 callersFunctiondata
(poly_hucs, river_segs)
watershed_workflow/test/test_05_hydrography.py:13
↓ 22 callersMethodgetShapesByID
Get shapes by their ID values. Parameters ---------- ids : List[str] | str Single ID or list of IDs to retrieve.
watershed_workflow/sources/manager_shapes.py:161
↓ 21 callersMethodremove
Remove this node from its parent. Returns the index this node had in the parent child list.
watershed_workflow/tinytree.py:133
↓ 20 callersMethodupdate
Acts on click. Parameters ---------- event : matplotlib event The click event from matplotlib.
watershed_workflow/plot.py:201
↓ 20 callersMethodvalues
(self)
watershed_workflow/split_hucs.py:101
↓ 18 callersFunctionrun_test_1D
(elev_in, elev_out, alg)
watershed_workflow/test/test_11_condition.py:28
↓ 17 callersFunctionhilevSnap
This helper function simply does all three hydro operations.
watershed_workflow/test/test_05_hydrography.py:36
↓ 17 callersMethodmax
(self)
watershed_workflow/resampling.py:35
↓ 17 callersFunctionshift
(p, t)
watershed_workflow/test/crs_fixtures.py:13
↓ 14 callersMethodisContinuous
Checks geometric continuity of the river. Confirms that all upstream children's downstream coordinate coincides with self's upstream
watershed_workflow/river_tree.py:599
↓ 14 callersMethodmin
(self)
watershed_workflow/resampling.py:31
↓ 12 callersMethodcomputePolygon
Construct polygon i and return a copy.
watershed_workflow/split_hucs.py:234
↓ 12 callersMethodfile_name
(self, *args, **kwargs)
watershed_workflow/sources/filenames.py:38
↓ 12 callersFunctionplotLineString
(reach, fmt, ax)
watershed_workflow/test/test_11_condition.py:87
↓ 12 callersFunctionprojectOne
Find a point p_out that is width away from p and such that p_up --> p is right-perpendicular to p --> p_out. Parameters ---------- p_up :
watershed_workflow/river_mesh.py:622
↓ 12 callersFunctionprojectTwo
Find a point that is perpendicular to the linestring p_up --> p --> p_dn. Projects by intersecting two lines, one parallel to p_up --> p and widt
watershed_workflow/river_mesh.py:648
↓ 12 callersMethodreplace
Replace this node with a sequence of other nodes. This is equivalent to deleting this node from the child list, and then
watershed_workflow/tinytree.py:153
↓ 12 callersFunctionreverseLineString
Reverse the direction of a LineString. Parameters ---------- ls : shapely.geometry.LineString LineString to reverse.
watershed_workflow/utils.py:556
↓ 11 callersMethodcol_to_id
Maps 2D cell ID and index in the vertical to a 3D cell ID. Parameters ---------- column : int 2D cell ID.
watershed_workflow/mesh.py:145
↓ 11 callersMethodsetLevel
(self, level : int)
watershed_workflow/sources/manager_wbd.py:29
↓ 10 callersFunctioncomputeWidth
(a)
watershed_workflow/test/test_11_condition.py:292
↓ 10 callersMethodexterior
Construct boundary polygon and return a copy.
watershed_workflow/split_hucs.py:361
↓ 10 callersMethodisMonotonic
(self, known_depressions=None)
watershed_workflow/river_tree.py:636
↓ 10 callersMethodrequestDataset
Establish a request for a dataset for the given geometry and time range. Parameters ---------- geometry : shapely.geometry.Po
watershed_workflow/sources/manager_dataset.py:148
↓ 9 callersMethodaddChild
Append a child (upstream) reach to this reach.
watershed_workflow/river_tree.py:122
↓ 9 callersMethodmerge
Merges this node with its parent. Parameters ---------- merge_reach : bool, optional Whether to merge the l
watershed_workflow/river_tree.py:391
↓ 8 callersFunction_getAngles
Given a list of linestrings whose terminal coordinate is the same, compute angles between each successive pair of strings.
watershed_workflow/angles.py:21
↓ 8 callersMethod_prerequestDataset
(self)
watershed_workflow/sources/manager_shapes.py:199
↓ 8 callersMethodadd
Add BoundaryEntry object to the waterway
watershed_workflow/condition.py:238
↓ 8 callersFunctioncheck0
(hucs, rivers)
watershed_workflow/test/test_05_hydrography.py:49
↓ 8 callersFunctioncomputeLine
Compute line coefficients (Ax + By + C = 0) for a line defined by two points. Parameters ---------- p1 : np.ndarray First point c
watershed_workflow/river_mesh.py:539
↓ 8 callersMethodfetchRequest
Fetch the request and get the actual data.
watershed_workflow/sources/manager_dataset.py:201
↓ 8 callersMethodfolder_name
(self, *args, **kwargs)
watershed_workflow/sources/filenames.py:21
↓ 8 callersMethodgetNextAvailableLabeledSetID
Returns next available LS id.
watershed_workflow/mesh.py:412
↓ 8 callersFunctionplot
(river, coords, elems, hucs = None, force = False)
watershed_workflow/test/test_10_mesh_mixed.py:83
↓ 8 callersFunctionplot_comparison
(var_estimate, var_reference, var_name, ax)
watershed_workflow/test/test_15_stream_light.py:69
↓ 7 callersMethod_parseVariable
Parse a variable name to extract base variable and layer. Parameters ---------- var_name : str Variable n
watershed_workflow/sources/manager_soilgrids_2017.py:176
↓ 7 callersMethodconstructRiversByGeometry
Forms a list of River trees from a list of reaches by looking for close endpoints of those reaches. Parameters ----------
watershed_workflow/river_tree.py:769
↓ 7 callersFunctionget_config_from_root
Read the project setup.cfg file to determine Versioneer config.
versioneer.py:336
↓ 7 callersFunctionget_root
Get the project root directory. We require that all commands are run from the project root, i.e. the directory that contains setup.py, setup.
versioneer.py:297
↓ 7 callersFunctionget_versions
Get the project version from whatever source is available. Returns dict with two keys: 'version' and 'full'.
versioneer.py:1646
↓ 7 callersMethodisReady
Is the request ready for fetching?
watershed_workflow/sources/manager_dataset.py:196
↓ 7 callersMethodrun
(self)
versioneer.py:1905
↓ 7 callersMethodto_crs
Warp the coordinate system.
watershed_workflow/river_tree.py:708
↓ 6 callersMethodadd
(self, arg)
watershed_workflow/tinytree.py:63
↓ 6 callersMethodaddChild
Add a child to this node. :child A Tree object
watershed_workflow/tinytree.py:102
↓ 6 callersFunctionassert_list_same
(l1, l2)
watershed_workflow/test/test_03_river_tree.py:12
↓ 6 callersMethodcell_edges
Generator for edges of a cell. Parameters ---------- conn : List[int] Cell connectivity (vertex indices).
watershed_workflow/mesh.py:326
↓ 6 callersFunctioncheck1
(hucs, rivers, extra_point=None)
watershed_workflow/test/test_05_hydrography.py:161
↓ 6 callersMethodclearGeometryCache
If coordinates are changed, any computed, cached geometry must be recomputed. It is the USER's responsibility to call this function i
watershed_workflow/mesh.py:433
↓ 6 callersMethodedge_hash
Hashes edges in a direction-independent way. Parameters ---------- i : int First vertex index. j
watershed_workflow/mesh.py:294
↓ 6 callersMethodgetNode
return node for a given index
watershed_workflow/river_tree.py:552
↓ 6 callersFunctionget_shapes
(filename)
watershed_workflow/test/test_14_find_huc.py:11
↓ 6 callersMethodpolygons
Iterate over the polygons.
watershed_workflow/split_hucs.py:255
↓ 6 callersMethodprune
Removes this node and all below it, merging properties. This method removes the entire subtree rooted at this node, but first
watershed_workflow/river_tree.py:427
↓ 6 callersMethodtransform
Transform a 2D mesh. Parameters ---------- mat : np.ndarray, optional 3x3 transformation matrix. Default
watershed_workflow/mesh.py:506
↓ 5 callersFunctioncheck2
(hucs, rivers, extra_point=None)
watershed_workflow/test/test_05_hydrography.py:250
↓ 5 callersMethodcomputeCentroid
Computes, based on coords, the centroid of a cell with ID c. Note this ALWAYS recomputes the value, not using the cache.
watershed_workflow/mesh.py:419
↓ 5 callersMethoddata_dir
(self)
watershed_workflow/sources/filenames.py:17
↓ 5 callersMethodhandles
Generator for handles
watershed_workflow/split_hucs.py:91
↓ 5 callersMethodisLocallyMonotonic
Checks for monotonically decreasing elevation as we march downstream in this reach.
watershed_workflow/river_tree.py:625
↓ 5 callersFunctionis_multi
(thing)
watershed_workflow/utils.py:601
↓ 5 callersMethodpathToRoot
A generator for the nodes on the path to root, including this.
watershed_workflow/river_tree.py:658
↓ 5 callersMethodvertex_to_id
Maps 2D vertex ID and index in the vertical to a 3D vertex ID. Parameters ---------- vertex : int 2D vert
watershed_workflow/mesh.py:162
↓ 5 callersFunctionwrite_to_version_file
Write the given version number to the given _version.py file.
versioneer.py:1381
↓ 4 callersMethod_isContinuous
Is a given child continuous with self?
watershed_workflow/river_tree.py:587
↓ 4 callersMethoddeepcopy
Creates a deep copy of self
watershed_workflow/river_tree.py:754
↓ 4 callersMethoddeepcopy
Return a deep copy
watershed_workflow/split_hucs.py:373
↓ 4 callersFunctiondist_func
(a_axes, b_axes)
watershed_workflow/scalebar.py:171
↓ 4 callersMethodedge_to_id
Maps 2D edge hash and index in the vertical to a 3D face ID of a vertical face. Parameters ---------- edge : int
watershed_workflow/mesh.py:179
↓ 4 callersFunctioniter
(thing)
watershed_workflow/utils.py:618
↓ 4 callersFunctionlocal_len
(thing)
watershed_workflow/utils.py:612
↓ 4 callersFunctionmake_reach
Helper function to make a straight reach along y=0 given elevs.
watershed_workflow/test/test_11_condition.py:80
↓ 4 callersMethodmoveCoordinate
Moves the ith coordinate of self.linestring to a new location.
watershed_workflow/river_tree.py:447
↓ 4 callersFunctionplot
(hucs, rivers, points, tris, force = False)
watershed_workflow/test/test_08_triangulate.py:21
↓ 4 callersFunctionplus_or_dot
Return a + if we don't already have one, else return a .
versioneer.py:1392
↓ 4 callersFunctionplus_or_dot
Return a + if we don't already have one, else return a .
watershed_workflow/_version.py:357
↓ 4 callersMethodupdate
Recomputes all polygons
watershed_workflow/split_hucs.py:229
↓ 3 callersMethod_addStandardNames
Convert native column names to standard names. This method should be implemented by derived classes to map their native column names
watershed_workflow/sources/manager_shapes.py:347
↓ 3 callersMethod_authenticate
Authenticate to the AppEEARS API. Parameters ---------- username : string, optional Username, defaults to value fro
watershed_workflow/sources/manager_modis_appeears.py:149
↓ 3 callersFunction_computeAverageYear
Compute annual average for a Dataset and generate output times. Parameters ---------- ds : xr.Dataset Input Dataset with
watershed_workflow/data.py:704
↓ 3 callersFunction_isInternalSharpAngle
(coords : np.ndarray | shapely.geometry.LineString, i : int,
watershed_workflow/angles.py:89
↓ 3 callersFunction_isSequenceLike
(anobj)
watershed_workflow/tinytree.py:50
↓ 3 callersFunction_parseStartDate
Parse start_date into cftime.DatetimeNoLeap. Parameters ---------- start_date : str, datetime, or cftime.datetime Start
watershed_workflow/data.py:767
↓ 3 callersMethod_postprocessShapes
Apply standard postprocessing to shapes. Parameters ---------- df : gpd.GeoDataFrame GeoDataFrame from derived cl
watershed_workflow/sources/manager_shapes.py:203
↓ 3 callersMethod_readData
Read all files for a request, returning the data as a Dataset.
watershed_workflow/sources/manager_modis_appeears.py:362
↓ 3 callersMethod_readFile
Open the file and get the data -- currently these reads it all, which may not be necessary.
watershed_workflow/sources/manager_modis_appeears.py:376
↓ 3 callersFunction_resampleLineStringNonuniform
Resample a linestring by distance with no respect for previous discrete coords.
watershed_workflow/resampling.py:295
↓ 3 callersFunction_resampleLineStringUniform
Resample a linestring uniformly with no respect for previous discrete coords.
watershed_workflow/resampling.py:258
next →1–100 of 1,294, ranked by callers