Takes a list of stars objects (one per WRF variable), applies
unit conversions, renames to CF standard names, and writes a
CF-compliant NetCDF file.
Usage
cae_write_cf_netcdf(var_list, outfile, dt_seconds = 3600, overwrite = FALSE)
Arguments
- var_list
named list of stars objects. Names should be WRF
variable names (t2, prec, psfc, q2, swdnb, u10, v10).
- outfile
character; path for the output NetCDF file
- dt_seconds
numeric; timestep duration in seconds.
Default 3600 (hourly).
- overwrite
logical; overwrite existing file? Default FALSE.
Value
character; path to the written NetCDF file (invisibly)