openSTARS v1.2.2


Monthly downloads



An Open Source Implementation of the 'ArcGIS' Toolbox 'STARS'

An open source implementation of the 'STARS' toolbox (Peterson & Ver Hoef, 2014, <doi:10.18637/jss.v056.i02>) using 'R' and 'GRASS GIS'. It prepares the *.ssn object needed for the 'SSN' package. A Digital Elevation Model (DEM) is used to derive stream networks (in contrast to 'STARS' that can clean an existing stream network).

Functions in openSTARS

Name Description
calc_catchment_attributes_vect_rec calc_catchment_attributes_vect_rec Aggregate attributes for the total catchment of each stream segment.
calc_catchment_attributes_vect calc_catchment_attributes_vect Aggregate attributes for the total catchment of each stream segment.
calc_attributes_sites_exact Calculate attributes of the sites.
calc_catchment_attributes_rast calc_catchment_attributes_rast Aggregate attributes for the total catchment of each stream segment.
calc_binary Calculate binary IDs for each stream network.
calc_attributes_edges Calculate attributes of the edges.
calc_catchment_attributes_rast_rec calc_catchment_attributes_rast_rec Aggregate attributes for the total catchment of each stream segment.
assign_binIDs assign_binIDs Recursive function to assign binary id to stream segments
calcCatchmArea_assignNetID Calculate total catchment area of a stream segment and assign a network id.
calc_attributes_sites_approx Calculate attributes of the sites.
check_projection Show the projection of raster data and compare to the current GRASS location.
calc_edges Calculate edges for SSN object.
delete_lakes Delete lakes from stream network
correct_compl_confluences Correct confluences with three or more inflows. Update attribute table.
calc_sites Calculate sites for SSN object.
get_all_raster_values get_all_raster_values Returns all unique values in the raster
check_compl_confluences Check if there are more than two inflows to an outflow.
import_data Import data into 'GRASS.'
get_cats_edges_in_catchment get_cats_edges_in_catchment Returns the cats of this and all upstream edges
export_ssn Export 'SSN' object
derive_streams Derive stream network from DEM.
calc_offset Calculate offset
check_ssn Checking 'SSN' object.
get_streams_edges_in_catchment get_streams_edges_in_catchment Returns the stream values of this and all upstream edges
prepare_sites Snap sites to streams and calculate attributes
openSTARS openSTARS: An Open Source Implementation of the 'ArcGIS' Toolbox 'STARS'.
calc_prediction_sites Calculate prediction sites for 'SSN' object.
get_n_val_raster get_n_val_raster Returns the number of different values in the raster.
calc_outdist Update flow length from the upstream node of each stream segment to the outlet of the network .
restrict_network Restrict edges to certain stream networks
setup_grass_environment Setup 'GRASS' environment.
merge_sites_measurements Merge a table with measurements to the sites.
import_vector_data Import vector data into GRASS.
watershed_memory Calculate RAM needed for deriving the stream network from DEM
No Results!

Vignettes of openSTARS

No Results!

Last month downloads


Type Package
License MIT + file LICENSE
Encoding UTF-8
LazyLoad true
LazyData true
RoxygenNote 7.1.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2020-10-17 19:33:13 UTC; Mira_2
Repository CRAN
Date/Publication 2020-10-17 20:00:02 UTC

Include our badge in your README