View source: R/dbpf_export_nc_chain_ortho.R
dbpf_export_nc_chain_ortho | R Documentation |
Downloads one or more time series from the carleton permafrost database and export as a netCDF file. The netCDF file is designed to accommodate many stations with the same measurement depths. It is possible to group stations with different measurement depths but this is at the cost of wasted space because any non-shared measurement depths will be filled with null values.
dbpf_export_nc_chain_ortho(con, location_name, file_name, freq = "daily")
con |
Database connection object, as returned by dbpf_con() |
location_name |
Character, one or more location names to convert. These should correspond to locations with thermistor strings |
file_name |
character, path to output netCDF file (*.nc) |
freq |
Character, one of ('daily', 'hourly'). Interval at which data is to be aggregated from the database. |
Requires that the PermafrostDB, reshape2 and ncdf4 packages be installed. The file structure is based on H.5.1. "Multidimensional array representations of time series profiles" with Example H.16 used as a template and a one-dimensional time coordinate variable.
Nick Brown <nick.brown@carleton.ca>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.