View source: R/read_flake_out.R
read_flake_out | R Documentation |
Read in FLake results, interpolate to a gridded struture and return a dataframe in long or wide format for vars = "temp"
read_flake_out(
output,
vars,
depths,
folder = ".",
nml_file,
long = FALSE,
out_time,
out_hour = 0
)
output |
filepath; to FLake output file |
vars |
vector; variables to extract from FLake output. Currently just temp and ice |
depths |
vector; of numeric values to extract the depths at. Only used if extracting water temp |
folder |
filepath; to folder which contains the model folders generated by export_config() |
nml_file |
filepath; to FLake namelist file |
long |
Boolean; return data in long form |
out_time |
vector; of output time values to subset data by. |
out_hour |
numeric; hour of output time values to subset data. Only used for FLake if model time step is 86400s. |
Dataframe if only one variable otherwise a list
## Not run:
df <- read_flake_out(output = "FLake/output/output.dat", folder = "FLake", nml_file = "FLake/feeagh.nml")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.