initialize_NetCDF {climates}R Documentation

A function to initialize a NetCDF file for daily indices.

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

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

## Not run: 
Soon!

## End(Not run)

[Package climates version 0.1-1.6 Index]