initialize_NetCDF: A function to initialize a NetCDF file for daily indices.

Description Usage Arguments Value Examples

View source: R/initialize_NetCDF.R

Description

This function initializes a set of NetCDF files for daily_indices. If start and end are given, it returns annual time steps. If period is given, it creates time steps that span the years given in period. It returns a set of file names and the x/y coordinates.

Usage

1
2
3
initialize_NetCDF(ncdf4_handle, thresholds, start = FALSE, end = FALSE,
  tmax_var = FALSE, prcp_var = FALSE, x_vals, y_vals, periods = list(),
  t_units = FALSE, p_units = FALSE)

Arguments

ncdf4_handle

an initialized ncdf4 object.

thresholds

a named list to be passed to daily_indices

start

a start year

end

an end year

tmax_var

a string of the tmax variable id

prcp_var

a string of the prcp variable id

periods

a vector of years to use as time steps. (optional)

Value

A named list of including fileNames, x_vals, and y_vals for the NetCDF files that have been initiated.

Examples

1
2
3
4
## Not run: 
Soon!

## End(Not run)

jjvanderwal/climates documentation built on May 19, 2019, 11:41 a.m.