MCPcopy Create free account

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

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

↓ 3 callersFunction_resampleRiver
Resamples a river, in place, given a strategy to compute the target segment length.
watershed_workflow/resampling.py:179
↓ 3 callersFunction_spreadAngles
Given a list of linestrings, all of whose terminal coordinate is the same (origin) and whose ordering is clockwise around that origin, nudge t
watershed_workflow/angles.py:173
↓ 3 callersFunction_validUpDown
(n1,n2)
watershed_workflow/test/test_03_river_tree.py:155
↓ 3 callersFunctioncheck_twoboxes
(hucs)
watershed_workflow/test/test_05_hydrography.py:26
↓ 3 callersMethodconstructRiversByHydroseq
Given a list of linestrings, create a list of rivers using the HydroSeq maps provided in NHDPlus datasets. Parameters -------
watershed_workflow/river_tree.py:844
↓ 3 callersFunctioncreateRiverMesh
Returns list of elems and river corridor polygons for a given list of river trees Parameters: ----------- rivers: list(River object)
watershed_workflow/river_mesh.py:245
↓ 3 callersFunctioncreate_and_dump_env_local
(env_type, os_name, packages, env_name=None, dump_only=False, dry_run=False, use_local=False)
environments/create_envs.py:207
↓ 3 callersMethodextruded_Mesh2D
Uniformly extrude a 2D mesh to make a 3D mesh. Layers of potentially multiple sets of cells are extruded downward in the vertical. T
watershed_workflow/mesh.py:1338
↓ 3 callersMethodfile_name_base
(self, *args, **kwargs)
watershed_workflow/sources/filenames.py:35
↓ 3 callersFunctionfindIntersection
Find the intersection point of two lines given by coefficients. Parameters ---------- line1 : Tuple[float, float, float] First li
watershed_workflow/river_mesh.py:587
↓ 3 callersMethodfrom_Transect
Creates a 2D surface strip mesh from transect data
watershed_workflow/mesh.py:650
↓ 3 callersFunctionfrom_epsg
Convert EPSG code to workflow CRS. Parameters ---------- epsg : int EPSG code identifying the coordinate reference system.
watershed_workflow/crs.py:141
↓ 3 callersFunctionget_env_prefix
(env_type=None)
environments/create_envs.py:95
↓ 3 callersFunctionget_packages
Get the list of packages to build.
environments/create_envs.py:107
↓ 3 callersMethodisConsistent
Validity checking of the tree.
watershed_workflow/river_tree.py:651
↓ 3 callersMethodpostOrder
Generates nodes in PostOrder.
watershed_workflow/tinytree.py:233
↓ 3 callersFunctionprojectJunction
Find points around the junction between reach and its children. Parameters ---------- reach : River Parent reach containing the j
watershed_workflow/river_mesh.py:716
↓ 3 callersMethodregister
Called after a node has been added to a parent. :child A Tree object
watershed_workflow/tinytree.py:114
↓ 3 callersFunctionresampleLineStringUniform
Resample a linestring nearly uniformly, keeping previous discrete coords if possible.
watershed_workflow/resampling.py:266
↓ 3 callersMethodto_mls
Represent this as a shapely.geometry.MultiLineString
watershed_workflow/river_tree.py:733
↓ 3 callersFunctiontranslateLinePerpendicular
Translate a line by a specified distance in the direction perpendicular to the line. Parameters ---------- line : Tuple[float, float, flo
watershed_workflow/river_mesh.py:560
↓ 3 callersMethodvalidate
(self)
watershed_workflow/mesh.py:388
↓ 3 callersMethodwaitForDataset
Block until task is complete and return Dataset. Parameters ---------- request : Request Request object t
watershed_workflow/sources/manager_dataset.py:208
↓ 2 callersFunction_axes_to_lonlat
Convert axes coordinates to (lon, lat). Parameters ---------- ax : matplotlib.axes.Axes CartoPy axes object. coords : Tuple[f
watershed_workflow/scalebar.py:17
↓ 2 callersMethod_checkBundleURL
(self, request: manager_dataset.ManagerDataset.Request)
watershed_workflow/sources/manager_modis_appeears.py:304
↓ 2 callersMethod_cleanBounds
(self, geometry : shapely.geometry.base.BaseGeometry )
watershed_workflow/sources/manager_nrcs.py:531
↓ 2 callersMethod_computeShade
Calculating the percent of the wetted width shaded by banks and vegetation Parameters ---------- delta : float Di
watershed_workflow/stream_light.py:611
↓ 2 callersMethod_computeSolarAngles
This function calculates solar declination, altitude, zenith angle, and an initial estimate of azimuth. This initial estimate of solar
watershed_workflow/stream_light.py:133
↓ 2 callersMethod_constructRequest
Create an AppEEARS request to download the variable from start to finish. Note that this does not do the download -- it only creates
watershed_workflow/sources/manager_modis_appeears.py:195
↓ 2 callersFunction_convertDataFrameToDataset
Convert DataFrame to Dataset for shared processing. Parameters ---------- df : pandas.DataFrame Input DataFrame containing ti
watershed_workflow/data.py:134
↓ 2 callersFunction_convertDatasetToDataFrame
Convert Dataset back to DataFrame format. Parameters ---------- ds : xarray.Dataset Input Dataset to convert. time_column
watershed_workflow/data.py:177
↓ 2 callersMethod_convertToGeoDataFrame
Convert Basin3D MonitoringFeature objects to GeoDataFrame. Parameters ---------- basin3d_features : List[MonitoringFe
watershed_workflow/sources/manager_basin3d.py:187
↓ 2 callersFunction_createColormapCreator
Create a colormap creator function for specific color sets. Parameters ---------- label : str Label for the colormap type (e.g.,
watershed_workflow/colors.py:524
↓ 2 callersFunction_cutAndSnapExteriorCrossing
Cut and snap reach at exterior HUC boundary crossings. If any reach crosses a HUC boundary: 1. If it crosses an external boundary, cut the r
watershed_workflow/hydrography.py:323
↓ 2 callersMethod_download
Download AORC data for geometry and time range from S3 Zarr. Parameters ---------- geometry : shapely.geometry.Polygon
watershed_workflow/sources/manager_aorc.py:134
↓ 2 callersMethod_download
Download the files, returning downloaded filename.
watershed_workflow/sources/manager_glhymps.py:49
↓ 2 callersMethod_download
Downloads and reads soil shapefiles. This accepts only a bounding box. Parameters ---------- geometry : shapely.geom
watershed_workflow/sources/manager_nrcs.py:405
↓ 2 callersMethod_filename
(self, bounds_ll, start, end, variable)
watershed_workflow/sources/manager_modis_appeears.py:183
↓ 2 callersFunction_findBankVerticesFromEdge
For a given m2 mesh, id of river-corridor element, and edge, returns the bank-vertex id, i.e., for the triangle attached to the river-corridor
watershed_workflow/condition.py:681
↓ 2 callersFunction_findOutletsByElevation_helper
(polygon, crs, elev_raster)
watershed_workflow/hydrography.py:193
↓ 2 callersFunction_findSpatialDims
Find spatial dimensions in a list of dimension names. Parameters ---------- dims : tuple of str Dimension names to searc
watershed_workflow/data.py:1570
↓ 2 callersFunction_getHUCsJunctionLinestrings_Generator
(hucs : SplitHUCs)
watershed_workflow/angles.py:443
↓ 2 callersFunction_getOutletLinestrings
(hucs : SplitHUCs, reach : River)
watershed_workflow/angles.py:241
↓ 2 callersFunction_getUpstreamLinestrings
Find all linestrings that intersect at the upstream-most coordinate of reach.
watershed_workflow/angles.py:333
↓ 2 callersFunction_in_huc
Checks whether shply is in huc_shply
watershed_workflow/__init__.py:87
↓ 2 callersMethod_parseDate
Parse date input into cftime datetime. Parameters ---------- date : str | int | cftime._cftime.datetime | None Da
watershed_workflow/sources/manager_dataset.py:336
↓ 2 callersFunction_resampleRiverArgs
(river : River, target_length : Optional[float | ComputeTargetLength] = None,
watershed_workflow/resampling.py:165
↓ 2 callersFunction_resampleSplitHUCs
(huc : SplitHUCs, computeTargetLength : ComputeTargetLength, kee
watershed_workflow/resampling.py:243
↓ 2 callersFunction_smoothInternalSharpAngles
Smooths any internal angle less than min_angle.
watershed_workflow/angles.py:106
↓ 2 callersMethod_validateDate
Validate date against bounds. Parameters ---------- date : cftime._cftime.datetime | None Date to validate.
watershed_workflow/sources/manager_dataset.py:370
↓ 2 callersFunction_write_field_data
(f, data, write_binary)
watershed_workflow/vtk_io.py:474
↓ 2 callersMethodaddChildrenFromList
Add children to this node. :children A nested list specifying a tree of children
watershed_workflow/tinytree.py:85
↓ 2 callersFunctionadjustHUCsToRiverMesh
Adjust HUC segments that touch reach endpoints to match the corridor coordinates. Parameters ---------- hucs : SplitHUCs Split HU
watershed_workflow/river_mesh.py:464
↓ 2 callersFunctionallocatePrecipitation
Allocates precipitation between rain and snow based on temperature. Parameters ---------- precip : xr.DataArray Total precipitati
watershed_workflow/meteorology.py:16
↓ 2 callersMethodappendCoordinate
Appends a coordinate at the end (downstream) of the linestring.
watershed_workflow/river_tree.py:503
↓ 2 callersFunctionassert_list_same
(l1, l2)
watershed_workflow/test/test_10_mesh_mixed.py:284
↓ 2 callersFunctioncheck6
(hucs, rivers)
watershed_workflow/test/test_05_hydrography.py:406
↓ 2 callersFunctioncheck_2D_geometry
(m2)
watershed_workflow/test/test_09_mesh.py:10
↓ 2 callersMethodclear
Clear all the children of this node. Return a list of the removed children.
watershed_workflow/tinytree.py:143
↓ 2 callersFunctioncomputeSegmentLengths
Compute the length of each segment in a LineString. Parameters ---------- ls : shapely.geometry.LineString LineString to anal
watershed_workflow/utils.py:959
↓ 2 callersFunctioncomputeVGAlphaFromPermeability
Compute van Genuchten alpha from permeability and porosity. Uses the relationship from Guarracino WRR 2007. Parameters ---------- pe
watershed_workflow/soil_properties.py:248
↓ 2 callersFunctionconnectOnewayTrip
Connect indices in edges in a oneway fashion
watershed_workflow/triangulation.py:65
↓ 2 callersFunctionconvertTimesToCFTimeNoleap
Convert an iterable of cftime objects on any calendar to cftime DatetimeNoLeap calendar. This function accepts various datetime types and con
watershed_workflow/data.py:68
↓ 2 callersMethodcopyFromExisting
(self, other)
watershed_workflow/sources/manager_dataset.py:90
↓ 2 callersFunctioncreateNoleapMask
Create a mask that is true for any non-leap-day (day 366). Parameters ---------- time_values : Sequence[ValidTime] Time value
watershed_workflow/data.py:104
↓ 2 callersFunctionepsg_harness
(epsg)
watershed_workflow/test/test_01_crs.py:12
↓ 2 callersFunctionfile_exists
(x, type=None)
watershed_workflow/ui.py:16
↓ 2 callersMethodfindNode
Find a node, returning the first whose lambda application is true, or None
watershed_workflow/river_tree.py:560
↓ 2 callersFunctionfrom_string
Create CRS from proj string specification. Parameters ---------- string : str Proj string specification of coordinate referen
watershed_workflow/crs.py:222
↓ 2 callersFunctionfunc
(s_itr)
watershed_workflow/resampling.py:317
↓ 2 callersFunctionfunc1
(s_itr)
watershed_workflow/resampling.py:306
↓ 2 callersMethodgetCatchments
Add catchment data to flowline data. Parameters ---------- df : gpd.GeoDataFrame GeoDataFrame with flowli
watershed_workflow/sources/manager_nhd.py:136
↓ 2 callersMethodgetShapes
Get all shapes in a manager.
watershed_workflow/sources/manager_shapes.py:81
↓ 2 callersFunctionget_color_extents
(color)
watershed_workflow/plot.py:247
↓ 2 callersFunctionget_env_name
Standard format for the name of an environment.
environments/create_envs.py:91
↓ 2 callersMethodgiveChildren
Gives my children to node. :node A Tree object
watershed_workflow/tinytree.py:167
↓ 2 callersFunctioninterpolate_Dataset
Interpolate Dataset to arbitrary times. Parameters ---------- ds : xr.Dataset Input Dataset with a time dimension containing
watershed_workflow/data.py:492
↓ 2 callersFunctionisEmpty
Check if a shapely geometry is None or empty. Parameters ---------- shply : BaseGeometry or None Shapely geometry object to c
watershed_workflow/utils.py:496
↓ 2 callersMethodisHydroseqConsistent
Confirms that hydrosequence is valid.
watershed_workflow/river_tree.py:642
↓ 2 callersFunctionisInsideBall
Helper function -- is edge centroid within outlet_width of outlet?
watershed_workflow/regions.py:136
↓ 2 callersFunctionisInternalSharpAngle
Are there any sharp angles at an interior point of a linestring?
watershed_workflow/angles.py:99
↓ 2 callersMethodkeys
Generator for handles
watershed_workflow/split_hucs.py:96
↓ 2 callersFunctionmax_area_valid
A function to make sure max area scales with distance from river network Units in [m]
watershed_workflow/triangulation.py:272
↓ 2 callersFunctionorient
Orient an edge consistently. Parameters ---------- e : Tuple[int, int] Edge as tuple of two vertex indices. Retu
watershed_workflow/triangulation.py:75
↓ 2 callersMethodread_VTK
Constructor from a VTK file.
watershed_workflow/mesh.py:537
↓ 2 callersMethodresetDataFrame
Resets the data frame for the river rooted at self, and reindexes the tree to a simple integer-based, preOrdered indexing. Th
watershed_workflow/river_tree.py:665
↓ 2 callersFunctionsmooth2D_DataArray
Apply 2D spatial smoothing to a DataArray. Parameters ---------- da : xr.DataArray Input DataArray with at least 2 spati
watershed_workflow/data.py:1606
↓ 2 callersFunctionsmoothTimeSeries_Array
Smooth time series data using specified method. Parameters ---------- data : numpy.ndarray Array of data to smooth. Must
watershed_workflow/data.py:1108
↓ 2 callersFunctionsmoothTimeSeries_DataArray
Smooth time series data in a DataArray along the time dimension. Parameters ---------- da : xr.DataArray Input DataArray
watershed_workflow/data.py:1255
↓ 2 callersMethodsplitAtArclen
Inserts a coordinate at arclen s, then splits at that coordinate. Parameters ---------- s : float Arc lengt
watershed_workflow/river_tree.py:374
↓ 2 callersMethodto_dataframe
Represent as GeoDataFrame, useful for pickling.
watershed_workflow/river_tree.py:712
↓ 2 callersFunctionwiggle
(coords)
watershed_workflow/test/test_02_utils.py:51
↓ 1 callersMethod__init__
Do not call me. Instead use the class factory methods, one of: - construct_rivers_by_geometry() # generic data - construct_rivers_by
watershed_workflow/river_tree.py:102
↓ 1 callersMethod__init__
(self, df : gpd.GeoDataFrame, abs_tol : float = _abs_tol, r
watershed_workflow/split_hucs.py:146
↓ 1 callersMethod_addStandardNames
Convert native column names to standard names. Parameters ---------- df : gpd.GeoDataFrame GeoDataFrame with nati
watershed_workflow/sources/manager_nhd.py:179
↓ 1 callersMethod_checkStatus
Checks and prints the status of the AppEEARS request. Returns True, False, or 'UNKNOWN' when the response is not well formed, which seems to
watershed_workflow/sources/manager_modis_appeears.py:269
↓ 1 callersMethod_cleanBounds
Compute bounds in lat-lon CRS for DayMet API requests.
watershed_workflow/sources/manager_daymet.py:148
↓ 1 callersMethod_cleanBounds
Extract bounds from geometry already in native CRS and buffered by base class.
watershed_workflow/sources/manager_aorc.py:128
↓ 1 callersMethod_computeDiffuse
Spitters et al. (1986) Eqs. 20a-20d So = Extra-terrestrial irradiance on a plane parallel to the earth surface [J m-2 s-1]
watershed_workflow/stream_light.py:329
↓ 1 callersMethod_computeDt
Function to calculate the diffuse transmission coefficient Parameters ---------- lai: float Leaf are inde
watershed_workflow/stream_light.py:384
← previousnext →101–200 of 1,294, ranked by callers