Skip to contents

Extract netCDF file by site.id, time window, and variable name.

Usage

extract_nc_sda(site.id, start.date, end.date, var.name, nc.path)

Arguments

site.id

numeric or character: identification of the site.

start.date

date in YYYY-MM-DD format: start date of the requested time window.

end.date

date in YYYY-MM-DD format: end date of the requested time window.

var.name

character: variable name.

nc.path

character: physical path to the target netCDF file.

Value

list: a list contains requested array, time steps, site id, variable name, and ensemble size.

Details

The function is only tested for netCDF files generated by the nc_merge_all_sites_by_year function.

Author

Dongchen Zhang