View source: R/resample_to_field.R
resample_to_field | R Documentation |
Match GLM water temperatures with field observations
resample_to_field(
nc_file,
field_file,
method = "match",
precision = "hours",
var_name = "temp"
)
nc_file |
a string with the path to the netcdf output from GLM |
field_file |
a string with the path to the field observation file |
method |
'match' for exact match or 'interp' for temporal interpolation |
precision |
matching precision (must be 'secs', 'mins','hours', or 'days') |
var_name |
Name of variable to look for in field_obs file.
Should match a GLM simulation variable (see output from |
validation a data.frame with DateTime and temperature at depth
Jordan S. Read
resample_sim, get_temp
nc_file <- system.file("extdata", "output/output.nc", package = "glmtools")
field_file <- system.file("extdata", "LakeMendota_field_data_hours.csv", package = "glmtools")
temps <- resample_to_field(nc_file, field_file)
buoy_file <- system.file('extdata', 'LakeMendota_buoy_data.csv', package = 'glmtools')
temps <- resample_to_field(nc_file, buoy_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.