reindex_grid: Re-index the grid so that coordinates match latitude and...

Description Usage Arguments Details Value

View source: R/monthly_downscaling.R

Description

reindex_grid returns the fraction matrix to use in monthly_downscaling during the monthly downscaling process.

Usage

1
reindex_grid(frac, frac_coordinates, fld_coordinates, var)

Arguments

frac

the downscaling fraction list, internal pacakge data

frac_coordinates

the data frame of the fraction grid cell coordinates should be available from frac

fld_coordinates

the data frame of the field grid cell coordinates

var

the name of the variable to process, a string of tas or pr

Details

This function ensures that that the monthly fractions used in the downscaling and the data being downscaled have the same latitude and longitude coordinate system. This is important when working with ISIMIP and CMIP5 files since ISMIP has NA values that may be removed during an earlier step which would change the grid cell indexing of the data.

Value

the fraction matrix to use in monthly downscaling arranged so that the fraction grid cells match the order of the field grid cells


JGCRI/an2month documentation built on July 31, 2020, 2:53 p.m.