MCPcopy Create free account

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

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

Functionmanager_no_id
ManagerShapefile without ID field specified
watershed_workflow/sources/test/test_manager_shapefile.py:27
FunctionmangleGLHYMPSProperties
GLHYMPs properties need their units changed and variables renamed. Parameters ---------- shapes : gpd.GeoDataFrame min_porosity : flo
watershed_workflow/soil_properties.py:303
Functionmapper
(value)
watershed_workflow/colors.py:309
Methodmaterial_ids_list
(self)
watershed_workflow/mesh.py:1045
Methodmax
(self)
watershed_workflow/resampling.py:54
Methodmax
(self)
watershed_workflow/resampling.py:67
Methodmax
(self)
watershed_workflow/resampling.py:84
Methodmax
(self)
watershed_workflow/resampling.py:111
FunctionmeasureBoldness
Calculate a vibrancy and boldness score for a given color. Parameters ---------- color : Color Color to measure boldness for.
watershed_workflow/colors.py:67
FunctionmergeMeshes
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
FunctionmergeShortReaches
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
Methodmin
(self)
watershed_workflow/resampling.py:51
Methodmin
(self)
watershed_workflow/resampling.py:64
Methodmin
(self)
watershed_workflow/resampling.py:81
Methodmin
(self)
watershed_workflow/resampling.py:108
Methodmixed_types_gdf
Create a GeoDataFrame with different numeric types, leaving a gap for nans.
watershed_workflow/test/test_02b_data.py:1844
Functionmodis_manager
Create MODIS manager without authentication for testing.
watershed_workflow/sources/test/test_manager_appeears.py:18
Functionmove
Move a file to a folder.
watershed_workflow/sources/utils.py:106
Functionmulti_shape_path
Path to shapefile with multiple shapes for row index testing
watershed_workflow/sources/test/test_manager_shapefile.py:21
Methodmultipolygon_gdf
Create a GeoDataFrame with MultiPolygons.
watershed_workflow/test/test_02b_data.py:1827
Functionnhd_hr
ManagerNHD for NHDPlus HR protocol
watershed_workflow/sources/test/test_manager_nhd.py:23
Functionnhd_mr
ManagerNHD for NHD MR protocol
watershed_workflow/sources/test/test_manager_nhd.py:17
Functionnhd_waterdata
ManagerNHD for WaterData protocol
watershed_workflow/sources/test/test_manager_nhd.py:11
Methodnum_cells
Number of cells in the mesh. Returns ------- int Number of cells.
watershed_workflow/mesh.py:257
Methodnum_cells
(self)
watershed_workflow/mesh.py:1053
Methodnum_edges
Number of edges in the mesh. Returns ------- int Number of edges.
watershed_workflow/mesh.py:279
Methodnum_faces
(self)
watershed_workflow/mesh.py:1061
Methodnum_vertices
Number of vertices in the mesh. Returns ------- int Number of vertices.
watershed_workflow/mesh.py:268
Methodnum_vertices
(self)
watershed_workflow/mesh.py:1057
FunctionoptimizeDzs
Tries to optimize dzs
watershed_workflow/mesh.py:1689
Functionoutmesh_args
Sets output filename and format options.
watershed_workflow/ui.py:254
Methodoverlapping_polygon_gdf
Create a GeoDataFrame with overlapping polygons.
watershed_workflow/test/test_02b_data.py:1814
Methodparent_child_index
Return the index of this node in the parent child list, based on object identity.
watershed_workflow/tinytree.py:123
Functionpenalty
(dzs)
watershed_workflow/mesh.py:1714
Methodplot
Plot the rivers. Parameters ---------- *args Positional arguments passed to watershed_workflow.plot.linestr
watershed_workflow/river_tree.py:173
Methodplot
Plot as polygons (boundaries only).
watershed_workflow/split_hucs.py:265
FunctionplotHUCs
(hucs, hucs_orig, force = False)
watershed_workflow/test/test_07_angles.py:13
FunctionplotLAI
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
Functionplot_options
(parser)
watershed_workflow/ui.py:184
Functionplot_with_dem
(args, hucs, reaches, dem, profile,
watershed_workflow/bin_utils.py:53
Functionplot_with_triangulation
(args, hucs, rivers, trian
watershed_workflow/bin_utils.py:17
Functionpoint
()
watershed_workflow/test/crs_fixtures.py:5
Functionpoint_ak
()
watershed_workflow/test/crs_fixtures.py:9
Functionpoints
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
Functionpoints
()
watershed_workflow/test/crs_fixtures.py:18
Functionpolygons
()
watershed_workflow/test/crs_fixtures.py:40
MethodpopCoordinate
Removes the ith coordinate and returns its value.
watershed_workflow/river_tree.py:518
MethodprependCoordinates
Prepends multiple coordinates at the beginning (upstream) of the linestring.
watershed_workflow/river_tree.py:513
FunctionprojectVectorAtAngle
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
Functionprojection
(parser)
watershed_workflow/ui.py:82
Methodproperties
(self)
watershed_workflow/river_tree.py:144
FunctionpruneByLineStringLength
Removes any leaf linestrings that are shorter than prune_tol. Parameters ---------- river : River The river network to prune.
watershed_workflow/river_tree.py:1318
FunctionpruneRiversByArea
Both prunes reaches and filters rivers whose contributing area is less than area.
watershed_workflow/river_tree.py:1392
Functionraster_manager
ManagerRaster instance for DTB.tif.
watershed_workflow/sources/test/test_manager_raster.py:22
FunctionrasterizeGeoDataFrame
Convert a GeoDataFrame to a rasterized DataArray based on a column's values. Parameters ---------- gdf : geopandas.GeoDataFrame
watershed_workflow/data.py:1978
Functionread
Reads a Gmsh msh file.
watershed_workflow/vtk_io.py:103
Functionrecenter
Center a collection of objects by translating to remove their centroid. Parameters ---------- objects : iterable of BaseGeometry
watershed_workflow/utils.py:329
FunctionreduceRivers
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
Functionrefine
A function for use with watershed_workflow.triangulate.triangulate's refinement_func argument based on a global max area.
watershed_workflow/triangulation.py:250
FunctionrefineByMaxArea
Returns a refinement function based on max area, for use with Triangle.
watershed_workflow/triangulation.py:248
FunctionrefineByMaxEdgeLength
Returns a refinement function based on max edge length, for use with Triangle.
watershed_workflow/triangulation.py:333
FunctionrefineByPolygons
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
FunctionrefineByRiverDistance
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
Functionregister_vcs_handler
Create decorator to mark a method as the handler of a VCS.
versioneer.py:373
Functionregister_vcs_handler
Create decorator to mark a method as the handler of a VCS.
watershed_workflow/_version.py:58
FunctionremoveBraids
Remove braids, but not diversions.
watershed_workflow/river_tree.py:1444
FunctionremoveNullLAI
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
FunctionremoveThirdDimension
Remove the third dimension (Z-coordinate) from a shapely geometry. Parameters ---------- geom : shapely.geometry.base.BaseGeometry
watershed_workflow/utils.py:939
Methodreparent
Inserts a node between the current node and its parent. Returns the specified parent node. :node A Tree object
watershed_workflow/tinytree.py:185
FunctionresampleRiver
Resamples each reach based on the TARGET_SEGMENT_LENGTH property.
watershed_workflow/resampling.py:143
FunctionresampleRivers
Resamples each reach based on the TARGET_SEGMENT_LENGTH property.
watershed_workflow/resampling.py:119
FunctionresampleSplitHUCs
Resamples each HUC boundary segment based on a given target length.
watershed_workflow/resampling.py:193
Functionrivers
()
watershed_workflow/test/shapes.py:77
Methodrun
(self)
versioneer.py:1764
Methodrun
(self)
versioneer.py:1798
Methodrun
(self)
versioneer.py:1820
Methodrun
(self)
versioneer.py:1849
Methodrun
(self)
versioneer.py:1875
Functionrun_command
Call the given command(s).
watershed_workflow/_version.py:70
Methodsample_2d_data
Create sample 2D data with some structure.
watershed_workflow/test/test_02b_data.py:1504
Methodsample_3d_dataarray
Create 3D DataArray with time dimension.
watershed_workflow/test/test_02b_data.py:1537
Methodsample_data
Create sample time series data.
watershed_workflow/test/test_02b_data.py:1096
Methodsample_dataarray
Create sample DataArray.
watershed_workflow/test/test_02b_data.py:861
Methodsample_dataarray
Create sample DataArray.
watershed_workflow/test/test_02b_data.py:1115
Methodsample_dataarray_latlon
Create DataArray with lat, lon dimensions.
watershed_workflow/test/test_02b_data.py:1527
Methodsample_dataarray_xy
Create DataArray with x, y dimensions.
watershed_workflow/test/test_02b_data.py:1516
Methodsample_dataframe
Create sample DataFrame.
watershed_workflow/test/test_02b_data.py:851
Methodsample_dataframe
Create sample DataFrame.
watershed_workflow/test/test_02b_data.py:1104
Methodsample_dataset
Create sample Dataset.
watershed_workflow/test/test_02b_data.py:872
Methodsample_dataset
Create sample Dataset.
watershed_workflow/test/test_02b_data.py:1127
Methodsample_dataset
Create Dataset with multiple variables.
watershed_workflow/test/test_02b_data.py:1551
Methodsample_multiyear_df
Create sample DataFrame spanning multiple years.
watershed_workflow/test/test_02b_data.py:972
Methodsample_times
Create sample irregular cftime dates.
watershed_workflow/test/test_02b_data.py:840
Functionsave
(args, triangulation)
watershed_workflow/bin_utils.py:143
Functionscalebar
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
FunctionsetDataDirectory
Sets the directory in which all data is stored.
watershed_workflow/config.py:62
FunctionsetProfileByDEM
Set the z-coordinate of the reach linestring from a DEM dataset.
watershed_workflow/condition.py:515
Functionsetup_logging
Sets the log level and log file.
watershed_workflow/ui.py:41
Functionshapefile
Type for argparse - checks that file exists and can be opened by geopandas.
watershed_workflow/ui.py:24
Functionshapefile_path
Path to test shapefile
watershed_workflow/sources/test/test_manager_shapefile.py:15
← previousnext →701–800 of 1,294, ranked by callers