dbpf_export_nc_chain_ortho: Download ground temperature time series to netCDF

View source: R/dbpf_export_nc_chain_ortho.R

dbpf_export_nc_chain_orthoR Documentation

Download ground temperature time series to netCDF

Description

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.

Usage

dbpf_export_nc_chain_ortho(con, location_name, file_name, freq = "daily")

Arguments

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.

Details

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.

Author(s)

Nick Brown <nick.brown@carleton.ca>


geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.