daily2monthly {climates}R Documentation

Convenience utility to convert daily to monthly data.

Description

Given data, an accompanying NetCDF coordinate variable, and the origin (units) for the coordinate variable, this function will return monthly resolution data.

Usage

daily2monthly(daily_data, time, origin_in, cells = NULL)

Arguments

daily_data

A matrix of daily data values.

time

The time indices that coorespond to the matrix of daily data.

cells

The number of cells in the daily_data matrix. Optional.

origin

The origin of the time coordinate variable.

Details

This is a convenience function to help use daily data with theBioClim utility.

Value

The data converted to monthly resolution.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

## Not run: 
data(daily2monthly_example, package='climates')
tmax_data<-daily2monthly(tmax_data, time_indices, origin, cells)

## End(Not run)

[Package climates version 0.1-1.6 Index]