Recent Releases of fluvgeo
fluvgeo - v2025.07.08
fluvgeo 2025.07.08
Bug fix
- Fixed a bug in the
floodplain_volumeandhydroflatten_demfunctions when the input raster extents did not match.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty 11 months ago
fluvgeo - 2025.06.18.3
fluvgeo 2025.06.18.3
Minor Changes
- Updated terminology from "detrended elevation" to "relative elevation".
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty 12 months ago
fluvgeo - v2025.06.12.1
fluvgeo 2025.06.12
Minor Changes
- For the
get_leafletfunction, exposed zoom as a parameter.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty 12 months ago
fluvgeo - v2025.05.03
fluvgeo 2025.05.03
Major changes
- Adopted the
nhdplusToolsr package to gain access to USGS Network Linked Data Index (NLDI) services. - Added the
pt_watershed_areafunction to retrieve delineated watersheds from NHDPlus via the NLDI. - Incorporated the
pt_watershed_areafunction into the processing steps for cross sections to identify NHD reaches (reachcode, comid) and calculate upstream drainage basin areas.
Minor changes
- Added hillshading to the
get_terrain_leafletfunction. - Added channel_ and floodplain_polys to the
get_results_leafletfunction.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v2024.04.19
fluvgeo 2025.04.19
Major changes
-
Added several functions to support use in Shiny web apps:
- Renamed the
dem2remfunction todetrendto support the return of both anremandtrendsurface. Trend surfaces can be used to model water surfaces. water_surface_area- Derive a polygon representing the water surface area at a specifiedremelevation. Eliminates disconnected off-channel areas and simplifies the geometry. Used to createchannel_polyandfloodplain_polysf objects.xs_pts_classify- Classifies cross_section_points as falling in the channel and floodplain.hydroflatten_dem- Uses atrendsurface to add a water surface to a dem.floodplain_volume- Calculates the volume between two surfaces, such as a DEM and water surface.
- Renamed the
-
Updated the
detrendfunction to not extend the interpolatedtrendsurface beyond the extent of the inputflowline_points. This was required to prevent extrapolation of the surface at each end of the reach beyond the available input data. In many cases, this extrapolation was distorting thetrendsurface at each end of the reach.
Minor changes
- Updated
get_demto enable multiple threads for download.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v2025.04.17
fluvgeo 2025.04.17
Bug fix
- Remediation of apparent
terra::SpatRasterobject corruption. Was getting error: "expansion is not yet allowed" when nothing seemed to be wrong with the extent, crs, or resolution of the object.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v2025.04.14
fluvgeo 2025.04.14
Bug fix
- Fixed documentation mistake which prevented building package from source on linux.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v2025.04.12
fluvgeo 2025.04.12
Major changes
-
Start using the new data package
FluvialGeomorph/fluvgeodatafor testing newly added functions. -
Added new functions to support
fluvgeouse in shiny apps:flowline- Create a valid flowline object from raw linework.flowline_points- Create a valid flowline_points object from a flowline object.cross_section- Create a valid cross_section object from raw linework.cross_section_points- Create a valid cross_section_points object from a cross_section object.dem2rem- Convert a DEM to an REM.get_dem- Get a DEM from the latest ESRI terrain image server.get_leaflet- Get a basic leaflet object.get_results_leaflet- Get a leaflet objet with fluvgeo objects.get_terrain_leaflet- Get a leaflet object with a DEM.arcgis_auth- Authorize to an AGOL service.check_crs_3857- Check if sf or terra objects are CRS 3857.sf_fix_crs- Fix sf objects that might have mis-specified CRS's 3857 and 4326.sf_get_z- Get z value from an elevation model for an sf object.
Minor changes
- Swiched to using
tmapv4 from CRAN.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v0.1.54
fluvgeo v0.1.54 (2025-04-08)
Major changes
-
Updated reports to use a series of new functions to improve data quality and labeling.
-
Added a series of functions to streamline the editing and drawing of cross sections in the sf format.
start_left- Determines if a cross section starts to the left of the flowline.sf_line_end_point- Returns the x,y corrdinates of the start or end of a line.sf_point_attributes- Write the x and y coordinate values into columns.xs_upstream- Determine the upstream cross section and write its vlues into new columns. *xs_bearing- Calculate the bearing of a cross section.
Minor changes
- None.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 1 year ago
fluvgeo - v0.1.53
fluvgeo v0.1.53 (2025-02-04)
Major changes
-
Converted all functions to tmap version 4 (well, v3.99).
-
Discovered that the
arcgisbinding::arc.openfunction now no longer works reliably (see issue #91). -
Removed all remaining dependencies on the ESRI
arcgisbindingR package as many of its primary IO functions are no longer reliably working. Removed remaining functions that relied onarc.openorarc.write:arc_raster2SpatRasterreplaced bygdb_raster2SpatRastarc2sfreplaced byfc2fsget_arc_wktsf2arc_tablesf2arc
-
Discovered that the GDAL v3.7+ OpenFileGDB driver can now read rasters.
-
The
terrapackage for rasters is currently bundled with > GDAL 3.7
> terra::gdal()
[1] "3.9.3"
>terra::gdal(drivers = TRUE) |> filter(name == 'OpenFileGDB')
name raster vector can vsi long.name
1 OpenFileGDB TRUE TRUE read/write TRUE ESRI FileGDB
- Added a test function to verify that the GDAL OpenFileGDB driver can replace
arcgisbindings.
Minor changes
- Fixed some broken test data.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 1 year ago
fluvgeo - v0.1.52
fluvgeo v0.1.52 (2024-06-15)
Major changes
- Added the new Level 2 Report "b" version. This report sports new a cross section figure which is more compact and information dense. Updated the hydraulic dimensions table to only use cross section stations from within the channel portion of the cross section.
- Updated the Level 1 Report "b" version. This report also sports a new cross section figure which is more compact information dense.
- Refactored the
fig_xs_profilesfunction into two functions, each specialized for either L1 or L2 reports. These figures were made more compact to ensure they fit on a single page. - Refactored the
xs_compare_plot_L1andxs_compare_plot_L2functions to be more compact. - Added a new function
table_xs_dimensionsthat returns agtableobject of hydraulic dimensions for a cross section.
Minor changes
- Added the helper function
justify_gtableto improve formatting of gtables.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty almost 2 years ago
fluvgeo - v0.1.51
fluvgeo v0.1.51 (2024-05-26)
Major changes
- Added the report
level_1_report_bto enable a modification of the level 1 workflow and improve cross section figures. - Added the new
fig_xs_profilesfigure to more compactly represent individual cross section maps and their plots. - Updated the
map_xsfunction to map thechannelandfloodplainpolygons instead of thebanklinesline feature class. - Extended the
xs_compare_plot_L1function to support filtering of cross section station locations to either all, floodplain, or channel.
Minor changes
- Fixed a bug in the
cross_section_dimensions_L2function.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 2 years ago
fluvgeo - v0.1.49
fluvgeo v0.1.49 (2024-04-02)
Major changes
- The function
xs_geometrypreviously calculated the maximum cross section depth and was changed to calculate the mean depth of each cross section. This change was made to better align with the hydraulic geometry literature. - Configured the
slope_sinuosityfunction to optionally smooth theflowline_pointsz-elevations. As the quality of LiDAR data collection continually increases, there is less need to smooth longitudinal profile z-elevations.
Minor changes
- Added field survey test data.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty about 2 years ago
fluvgeo - v0.1.45
fluvgeo v0.1.45 (2023-03-21)
Major changes
- None
Bug Fixes
- Added
terrainr::get_tilesfunction to addressceramicdisplay issues for background elevation imagery in reports.
See Issue 20
Minor changes
- Added
terrafunctions to replacerasterfunctions in elevation mapping hillshade generation.
Hydrosphere - Freshwater and Hydrology
- R
Published by bchileen about 3 years ago
fluvgeo - 0.1.43
fluvgeo v0.1.43 (2023-02-09)
Major changes
- Added the ability to turn off aerial or elevation backgrounds to map functions.
Bug Fixes
- The R package
ceramicis passing GDAL output that is interrupting the display of maps in reports.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 3 years ago
fluvgeo - v0.1.42
fluvgeo v0.1.42 (2023-01-25)
Major changes
- Added the
sx2arc_tablefunction to writesfandspobjects to a file geodatabase table.
Bug Fixes
-
Discovered that
arcgisbinding::arc.writefrequently fails writing feature classes to a file geodatabase. "Wild caught" file geodatabase feature classes produced by theFluvialGeomorph-toolboxwhen converted tosporsfinsidefluvgeofrequently fail to create a valid feature class (i.e., missing geometry, no coordinate system) when saved to a file geodatabase usingarc.write. -
This behavior is described in the
arcgisbindingissues listed below. These outstanding issues identify and generally discuss the problems, but provide no fix or clear workaround guidance. -
The workarounds identified in these issues were implemented in the
sp2arcandsf2arcfunctions. No combination of these suggestions were able to produce a reliable workaround. -
Since no comprehensive solution is currently being provided for these issues in
arc.write, we have chosen to minimize our exposure. We have decided to only write table data back to the file geodatabase. -
If the
arcgisbingingteam addresses these issues, we may choose to go back to trusting the writing of file geodatabase feature classes usingarc.write.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 3 years ago
fluvgeo - 0.1.38
fluvgeo v0.1.38 (2023-01-21)
Bug Fixes
- Updated the fc2sf function to enforce feature dataset usage.
- Updated all test functions to reference test data in feature datasets.
- Updated test data to use feature dataset for vector feature class storage. This implements the coordinate reference system workaround.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 3 years ago
fluvgeo - v0.1.37
fluvgeo v0.1.37 (2023-01-03)
Bug Fixes
- Developed workaround to the
arcgisbindingfailure to comprehensively handle coordinate reference system conversions between ESRI-GDAL-ESRI. The workaround is to require the user to read and write geodatabase (GDB) feature classes into a feature dataset. The feature dataset then enforces the coordinate reference system. - Determined that the
arcgisbindingrecommendation to handle coordinate reference system conversions between ESRI-GDAL/PROJ6-ESRI using thearc.write()shape_infomethod does not work, Issue 38.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 3 years ago
fluvgeo -
fluvgeo v0.1.36 (2022-11-15)
Bug Fixes
- Updated the process for identifying horizontal coordinate systems and setting linear unit conversion factors for slope and sinuosity calculations.
- Fixed bug when calculating sinuosity when linear units not meters.
- Identified ESRI arcgisbinding bug in properly handling coordinate reference systems on read and write (see
arcgisbindingissue 26 & 38)[https://github.com/R-ArcGIS/r-bridge/issues/38].
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 3 years ago
fluvgeo - v0.1.35
fluvgeo v0.1.35 (2021-02-28)
Major Changes
- Updated all metric calculations to include an additional variable for each metric modified to only contain the values within the logical limits of that metric. This improves interpretation by eliminating technical possible, but confusing results from the display. The unmodified variables are also included for review and troubleshooting.
- Slope and sinuosity are now calculated based on an upstream AND downstream centered moving window. Previously the calculation had been made with just an upstream moving window 69d9835.
Bug Fixes
- Updated and cleaned test data.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 5 years ago
fluvgeo - v0.1.33
fluvgeo v0.1.33 (2020-11-21)
Major Changes
- Added the option to display an aerial photo or elevation background to the
map_reach_metricfunction.
Bug Fixes
- Updated the
slope_sinuosityfunction to ensure that coordinate systems with linear units of meters, feet, or US survey feet are handled properly.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 5 years ago
fluvgeo - v0.1.31
fluvgeo v0.1.31 (2020-09-21)
Major Changes
- Added the Level 3 report (formerly named the
xs_metrics_report). - Added
map_xsto the Level 1 and Estimate Bankfull reports. - Made the banklines parameter in
map_xsoptional to support its use in the Level 1 report and the Estimate Bankfull report before banklines are created. - Added the
esri_raster2RasterLayerfunction to standardize raster retrieval. - Moved the legend of
xs_compare_plot_L1into the plot area to be consistent with the level 2 plots.
Bug Fixes
- Clarified the x-axis label in the
xs_compare_plot_*to more clearly communicate the orientation of the cross section. - Restructured the way XS maps are drawn in reports when called in a loop. Changed the
map_xsfunction to accept araster::RasterLayerso that the site DEM is only loaded once rather than being loaded each time themap_xsfunction is called.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 5 years ago
fluvgeo - v0.1.30
fluvgeo v0.1.30 (2020-09-13)
Major Changes
- Added a new Level 1 cross sections dimensions tool. This supports the new Level 1 workflow that calculates the dimensions possible at this stage of the analysis.
- Updated the Level 1 Report with a new cross section metrics graph.
- Updated the Estimate Bankfull Report cross section graphs to use a square aspect ratio.
- Updated the Level 2 Report cross section graphs to use a wide aspect ratio.
- Added a labeling frequency parameter to the following functions:
xs_metrics_plot_L1,xs_metrics_plot_L2,compare_xs_long_profile,xs_long_profile,xs_profile_plot,map_reach_metric,xs_metric_plot.
Bug Fixes
- Fixed Level 1 graph series order to match Level 2 report series order.
- Added a parameter check to the
check_cross_section_dimensions. check_cross_section_dimensionsnow accepts sf input.- Fixed some failing tests.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty over 5 years ago
fluvgeo - v0.1.29
fluvgeo v0.1.29 (2020-09-07)
Major Changes
- Updated the Level 1 Report with new options.
- Updated the Estimate Bankfull Report with new options.
- Updated the Level 2 Report with new options.
- Upgraded the
map_reach_overviewfunction to use aerial photos and coarse-scale elevation from Mapbox. This functionality is provided by theceramicR package. Use of Mapbox requires an API key to access a relatively generous free tier of mapping services. - Added the Lever 2 compare xs plot graph that allows users to compare multiple surveys with the "base year" survey. Displays the detrended elevation for the "base year" survey.
- Added level 2 test data for the Cole Creek R1 test site. This site contains multiple surveys.
Bug Fixes
- Updated the
map_reach_overviewto use theceramicR package to retrieve Mapbox aerial photos and coarse-scale elevation in place of the brokentmaptools::read_osm. - Removed the floodprone water surface series from the longitudinal profile graph.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty almost 6 years ago
fluvgeo - v0.1.28
Major Changes
- The
map_xsfunction now handles inputs in different coordinate systems. It does this by reprojecting all inputs to match the dem. - Added the
flowline_metricsfunction that plots Level 1 metrics.
Bug Fixes
- Made the cross section map optional in the Level 2 Report and the cross section metrics report. This works around a bug that causes reports to fail when the
map_xsfunction is called in a report. - Fixed the
xs_metrics_report. - Fixed examples.
- Lots of little bug fixes. R CMD check now runs with only test errors.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty almost 6 years ago
fluvgeo - v0.1.27
Major Changes
- Added the
Level 2 Report. - Created a new Level 2 cross section metrics plot function,
xs_metrics_plot_2for the Level 2 Report that only displays xs metrics complete at Level 2. - Updated functions used in Level 1 and 2 reports to accept
sfobjects in addition tospobjects. sf` R package for spatial data. - Switched x-axis direction for all longitudinal profile graphs.
Bug Fixes
- Sort Level 1 report cross sections.
- Fixed
Estimate Bankfullreport.
Hydrosphere - Freshwater and Hydrology
- R
Published by mpdougherty almost 6 years ago