MCPcopy Create free account

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

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

Functionshort_time_range
Short time range for fast testing.
watershed_workflow/sources/test/test_manager_daymet.py:32
Functionshort_time_range
Short time range for fast testing.
watershed_workflow/sources/test/test_manager_aorc.py:36
Functionshplys
Warp a collection of shapely geometry objects from old_crs to new_crs. Parameters ---------- shps : list of shapely.geometry.bas
watershed_workflow/warp.py:143
Methodsiblings
Generator yielding all siblings of this node, not including this node.
watershed_workflow/tinytree.py:214
Methodsimple_polygon_gdf
Create a simple GeoDataFrame with polygons.
watershed_workflow/test/test_02b_data.py:1800
Functionsimplify
Simplify, IN PLACE, all reaches.
watershed_workflow/river_tree.py:1531
Functionsimplify
Simplifies, in place, the HUC and river shapes to create constrained, discrete segments. Parameters ---------- hucs : SplitHUCs A
watershed_workflow/__init__.py:204
Functionsimplify
Simplify, IN PLACE, all linestrings in the polygon representation.
watershed_workflow/split_hucs.py:382
Functionsimplify_options
Adds a simplify tolerance option to the parser.
watershed_workflow/ui.py:133
Functionsl_data
()
watershed_workflow/test/test_15_stream_light.py:11
Functionsmall_aorc_geometry
Small test geometry in AORC native CRS (WGS84) for fast testing.
watershed_workflow/sources/test/test_manager_aorc.py:17
Functionsmall_daymet_geometry
Small test geometry in WGS84 for fast testing.
watershed_workflow/sources/test/test_manager_daymet.py:19
Functionsmall_test_crs
CRS for the small test geometry.
watershed_workflow/sources/test/test_manager_3dep.py:21
Functionsmall_test_geometry
Small test geometry in lat/lon for fast testing.
watershed_workflow/sources/test/test_manager_3dep.py:15
Functionsmall_test_geometry
Small test geometry in WGS84 (native CRS) for fast testing.
watershed_workflow/sources/test/test_manager_nlcd.py:15
Functionsmooth2D
(data: xr.DataArray, dim1: Optional[str] = ..., dim2: Optional[str] = ...,
watershed_workflow/data.py:1785
FunctionsmoothSharpAngles
Smooth sharp angles across HUC and river linestrings.
watershed_workflow/angles.py:64
FunctionsmoothTimeSeries
(data: xr.DataArray, time_dim: str = ..., method: Literal['savgol',
watershed_workflow/data.py:1378
FunctionsnapHUCsJunctions
Snaps the junctions of HUC linestrings to endpoints of rivers. Modifies HUCs geometry. Parameters ---------- hucs : SplitHUCs
watershed_workflow/hydrography.py:446
FunctionsnapReachEndpoints
Snap river endpoints to HUC linestrings and insert that point into the boundary. Note this is O(n^2), and could be made more efficient. Modif
watershed_workflow/hydrography.py:534
FunctionsnapWaterbodies
Snap waterbodies to HUCs and river linestrings. Attempts to make waterbodies that intersect or nearly intersect hucs intersect discretely, in
watershed_workflow/hydrography.py:265
Functionsoilgrids
()
watershed_workflow/sources/test/test_manager_soilgrids.py:11
Functionsoilgrids_us
()
watershed_workflow/sources/test/test_manager_soilgrids.py:16
Methodspines
Iterate over spines.
watershed_workflow/split_hucs.py:353
MethodsummarizeExtrusion
Summarizes extruded data by printing info to log file. This is useful in rapidly debugging and understanding the layering before
watershed_workflow/mesh.py:1309
FunctiontessalateRiverAligned
Tessalate HUCs using river-aligned quads along the corridor and triangles away from it. Parameters ---------- hucs : SplitHUCs The
watershed_workflow/__init__.py:568
FunctiontestHUCIsBad
()
watershed_workflow/test/test_07_angles.py:289
FunctiontestHUCIsBad_NoOp
(two_boxes)
watershed_workflow/test/test_07_angles.py:276
FunctiontestHUCOutletIsBad
()
watershed_workflow/test/test_07_angles.py:253
FunctiontestInternalAngleEndpointBad
Tests len > 3, one bad angle.
watershed_workflow/test/test_07_angles.py:118
FunctiontestInternalAngleEndpointTwoBad
Tests len > 3, two bad angles.
watershed_workflow/test/test_07_angles.py:135
FunctiontestInternalAngleLen3Null
Tests that same ls is returned if no bad angles
watershed_workflow/test/test_07_angles.py:52
FunctiontestInternalAngleLen3Recenter
Tests length 3 -- center point is moved
watershed_workflow/test/test_07_angles.py:76
FunctiontestInternalAngleLen3RemovePoint
Tests length 3 -- center point is removed
watershed_workflow/test/test_07_angles.py:62
FunctiontestInternalAngleNull
Tests len > 3, all are fine.
watershed_workflow/test/test_07_angles.py:95
FunctiontestInternalAngleOneBad
Tests len > 3, one bad angle.
watershed_workflow/test/test_07_angles.py:103
FunctiontestJunctionAngles
()
watershed_workflow/test/test_07_angles.py:204
FunctiontestJunctionIsBadAngle
()
watershed_workflow/test/test_07_angles.py:226
FunctiontestL
Deal with a kink in an internal angle.
watershed_workflow/test/test_07_angles.py:192
FunctiontestThreeSuccessiveBadAngles
()
watershed_workflow/test/test_07_angles.py:173
FunctiontestTwoSuccessiveBadAngles
()
watershed_workflow/test/test_07_angles.py:152
Functiontest_2D
Create a 2D mesh, extrude, write.
watershed_workflow/test/test_09_mesh.py:20
Methodtest_3d_smoothing
Test smoothing 3D data (smooth each time slice).
watershed_workflow/test/test_02b_data.py:1618
Methodtest_5_day_interval
Test 5-day interval interpolation.
watershed_workflow/test/test_02b_data.py:917
Methodtest_5day_interval
Test with 5-day interval data.
watershed_workflow/test/test_02b_data.py:1070
Functiontest_alaska
()
watershed_workflow/test/test_01_crs.py:49
Methodtest_all_nan_values
Test mode computation when all values are NaN.
watershed_workflow/test/test_02b_data.py:1382
Methodtest_all_types_support_both_methods
Test that all data types support both smoothing methods.
watershed_workflow/test/test_02b_data.py:1239
Functiontest_angle
()
watershed_workflow/test/test_02_utils.py:341
Functiontest_angle2
()
watershed_workflow/test/test_02_utils.py:385
Methodtest_anisotropic_smoothing
Test anisotropic smoothing (different sigma/size for each dimension).
watershed_workflow/test/test_02b_data.py:1671
Functiontest_async_interface
Test the async interface methods.
watershed_workflow/sources/test/test_manager_nlcd.py:190
Methodtest_auto_detect_latlon_dims
Test automatic detection of lat, lon dimensions.
watershed_workflow/test/test_02b_data.py:1595
Methodtest_auto_detect_xy_dims
Test automatic detection of x, y dimensions.
watershed_workflow/test/test_02b_data.py:1588
Methodtest_averaging_accuracy
Test that averaging is mathematically correct.
watershed_workflow/test/test_02b_data.py:1006
Functiontest_bad_angle
()
watershed_workflow/test/test_07_angles.py:41
Functiontest_bad_outlet_pit
()
watershed_workflow/test/test_11_condition.py:74
Methodtest_basic_rasterization
Test basic rasterization of polygons.
watershed_workflow/test/test_02b_data.py:1857
Functiontest_bigger
()
watershed_workflow/test/test_06_resampling.py:52
Functiontest_catchments_functionality
Test that catchments are properly fetched when enabled
watershed_workflow/sources/test/test_manager_nhd.py:132
Methodtest_cftime_objects_have_noleap_calendar
Test that returned time objects are cftime with noleap calendar.
watershed_workflow/test/test_02b_data.py:411
Methodtest_cftime_objects_have_noleap_calendar
Test that returned time objects are cftime with noleap calendar.
watershed_workflow/test/test_02b_data.py:538
Methodtest_cftime_objects_have_noleap_calendar
Test that returned time objects are cftime with noleap calendar.
watershed_workflow/test/test_02b_data.py:759
Methodtest_cftime_with_leap_day_raises_error
Test that cftime objects with leap day raise ValueError.
watershed_workflow/test/test_02b_data.py:91
Functiontest_close
()
watershed_workflow/test/test_02_utils.py:9
Functiontest_cluster
()
watershed_workflow/test/test_12_soil_properties.py:34
Functiontest_complex_polygon_shapes
Test with more complex polygon shapes.
watershed_workflow/test/test_02b_data.py:2086
Methodtest_consistency_across_input_types
Test that conversion produces consistent results across input types.
watershed_workflow/test/test_02b_data.py:204
Functiontest_construct_request_mocked
Test _constructRequest with mocked API call.
watershed_workflow/sources/test/test_manager_appeears.py:215
Functiontest_constructor
Test basic constructor and properties.
watershed_workflow/sources/test/test_manager_basin3d.py:29
Functiontest_constructor
Test basic constructor and properties.
watershed_workflow/sources/test/test_manager_soilgrids.py:20
Functiontest_constructor_basic
Test basic constructor
watershed_workflow/sources/test/test_manager_shapefile.py:51
Functiontest_constructor_invalid_data_source
Test constructor with no valid plugins.
watershed_workflow/sources/test/test_manager_basin3d.py:51
Functiontest_constructor_invalid_feature_type
Test constructor with invalid feature type.
watershed_workflow/sources/test/test_manager_basin3d.py:45
Functiontest_constructor_multi_features
Test constructor with multiple feature types.
watershed_workflow/sources/test/test_manager_basin3d.py:39
Functiontest_constructor_no_catchments
Test constructor with catchments disabled
watershed_workflow/sources/test/test_manager_nhd.py:39
Functiontest_constructor_properties
Test that constructor sets properties correctly
watershed_workflow/sources/test/test_manager_nhd.py:28
Functiontest_constructor_properties
Test that constructor sets properties correctly
watershed_workflow/sources/test/test_manager_wbd.py:68
Functiontest_constructor_us_variant
Test US variant constructor.
watershed_workflow/sources/test/test_manager_soilgrids.py:31
Functiontest_constructor_waterdata_properties
Test that constructor with WaterData protocol sets properties correctly
watershed_workflow/sources/test/test_manager_wbd.py:77
Functiontest_constructor_with_id_field
Test constructor with ID field specified
watershed_workflow/sources/test/test_manager_shapefile.py:60
Functiontest_contains
()
watershed_workflow/test/test_02_utils.py:46
Functiontest_coordinate_conversion_from_km_to_meters
Test that coordinates are properly converted from km to meters.
watershed_workflow/sources/test/test_manager_daymet.py:127
Functiontest_coordinate_system
Test that coordinates are in degrees (lat/lon), not meters.
watershed_workflow/sources/test/test_manager_aorc.py:153
Functiontest_coweeta_basin_integration
Test ManagerRaster with Coweeta basin geometry.
watershed_workflow/sources/test/test_manager_raster.py:241
Functiontest_crosswalk
()
watershed_workflow/test/test_13_land_cover_properties.py:10
Functiontest_crs
CRS for test geometry (UTM Zone 17N)
watershed_workflow/sources/test/test_manager_shapefile.py:46
Functiontest_crs_handling
Test that CRS is properly handled
watershed_workflow/sources/test/test_manager_shapefile.py:148
Functiontest_crs_handling
Test that CRS is properly handled
watershed_workflow/sources/test/test_manager_nhd.py:165
Methodtest_custom_bounds
Test with custom bounds.
watershed_workflow/test/test_02b_data.py:1963
Methodtest_custom_dims
Test with custom dimension names.
watershed_workflow/test/test_02b_data.py:1602
Methodtest_custom_nodata
Test custom nodata values.
watershed_workflow/test/test_02b_data.py:1947
Methodtest_custom_time_dimension
Test custom time dimension name.
watershed_workflow/test/test_02b_data.py:925
Methodtest_custom_time_dimension
Test mode computation with custom time dimension name.
watershed_workflow/test/test_02b_data.py:1392
Methodtest_custom_time_dimension_name
Test using a custom time dimension name.
watershed_workflow/test/test_02b_data.py:641
Functiontest_cut_first_point
()
watershed_workflow/test/test_02_utils.py:126
Functiontest_cut_last_point
()
watershed_workflow/test/test_02_utils.py:150
Functiontest_cut_point_not_there
()
watershed_workflow/test/test_02_utils.py:70
Functiontest_cut_point_there
()
watershed_workflow/test/test_02_utils.py:83
Functiontest_cut_two_crossings
()
watershed_workflow/test/test_02_utils.py:169
← previousnext →801–900 of 1,294, ranked by callers