regrid: Project the values of a 'cmip5data' object onto a new grid

Description Usage Arguments Details Value See Also

View source: R/regrid.R

Description

Project the values of a cmip5data object onto a new grid

Usage

1
2
regrid(orgVar, projLat, projLon, orgArea = NULL, projArea = NULL,
  projectionMatrix = NULL, verbose = FALSE)

Arguments

orgVar

A cmip5data object to be regridded

projLat

TODO

projLon

TODO

orgArea

TODO

projArea

A cmip5data object or list with lat (latitude) and log (longitude) matricies of the projection grid

projectionMatrix

TODO

verbose

logical. Print info as we go?

Details

This function calculates the projection matrix to shift one global grid to a second. The relative contribution of an old grid to the new grid is calculated via an area weighting scheme where the area of a grid cell is assumed to be proportional to the degree area of that cell and neighboring cells are assumed to have the same area to degree ratios. This will NOT hold in large grids. Nor is the area weighting scheme appropreate for all variable types and grid shifts. Use with caution.

Value

A cmip5data object, whose val is the area-weighted regrided variable passed in orgVar parameter. A projectionMatrix field is also added recording projection matrix used in regridding; this can be reused for later variables with the same regridding.

See Also

getProjectionMatrix


RCMIP5 documentation built on May 1, 2019, 6:28 p.m.