This function converts a projected MET Nordic file (from
metnordic_reproject()) to be compatible with CWatm. This function mainly
just changes the dimension names from easting and northing to x and y and
swaps variable order but has a crap load of boiler plate because... well..
ncdf4. Supported variables are: tmax, tmin, prec, RH, shortwave downwelling, air pressure, wind speed
Arguments
- infile
String: path to projected MET Nordic .nc file as created by
metnordic_reproject()- outfile
String: path and file name to desired output file
- altitude
Only needed for converting to surface pressure. Path to file which contains altitude for the grid (.nc, ie as downloaded by
metnordic_download())- temperature
Only needed for converting to surface pressure. Path to file which contains temperature data for a data cube of the same dimension.
- verbose
Logical: print to console?
Details
Code largely adapted from this handy guide: (link) from Pat Bartlein, bartlein@uoregon.edu
