read_CAMELS | R Documentation |
Reads simulated and observed values from CAMELS netcdf file for a single location
read_CAMELS(nc_file, site, obsName = "obs", simName = "kge")
nc_file |
Required. netCDF file to read CAMELS data from. |
site |
Required. Site number to extract data. |
obsName |
Required. Name for variable containing observations. Default is "obs". |
simName |
Required. Name for variable containing simulations. Default is "kge". |
Returns a data frame containing the date, observed and simulated flows. The name of the
observed flow variable is obs
, the name of the simulated flow variable is sim
.
Martyn Clark and Kevin Shook
CAMELS_bootjack
## Not run:
flows <- read_CAMELS(nc_file = "CAMELS_flow.nc", site = 1030500)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.