Learn R Programming

gumboot (version 1.0.2)

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

Description

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

Usage

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

Value

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.

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".

Author

Martyn Clark and Kevin Shook

See Also

CAMELS_bootjack

Examples

Run this code
if (FALSE) {
flows <- read_CAMELS(nc_file = "CAMELS_flow.nc", site = 1030500)
}

Run the code above in your browser using DataLab