read_CAMELS function

Reads simulated and observed values from CAMELS netcdf file for a single location

Reads simulated and observed values from CAMELS netcdf file for a single location

read_CAMELS(nc_file, site, obsName = "obs", simName = "kge")

Arguments

  • 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

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.

Examples

## Not run: flows <- read_CAMELS(nc_file = "CAMELS_flow.nc", site = 1030500) ## End(Not run)

See Also

CAMELS_bootjack

Author(s)

Martyn Clark and Kevin Shook

  • Maintainer: Kevin Shook
  • License: GPL-3
  • Last published: 2023-10-18

Useful links