downscaling_component_api: Wrapper function for running downscaling from cassandra...

Description Usage Arguments Details Value

View source: R/monthly_downscaling.R

Description

Convert inputs received from the cassandra component to the format expected by monthly_downscaling and pass the converted arguments.

Usage

1
downscaling_component_api(alpha, fld_data, coords, time, var, ncore = 4)

Arguments

alpha

Name of monthly fraction dataset to use.

fld_data

List of matrices of annual field data to downscale to monthly.

coords

Coordinate matrix for the field data, such as the one produced by coord_array.

time

Vector of years for the input field matrices.

var

String indicating the variable being downscaled. Either 'tas' or 'pr'.

ncore

Number of cores to use for parallel processing of grid cell data.

Details

The conversions performed are

alpha

Dataset is looked up by name.

fld_data

The downscaling function wants a single matrix. This function accepts a list of matrices and calls the downscaling function on each one sequentially.

coords

The matrix of coordinate data is converted to a data frame, and the index column is added.

time

No conversion.

var

No conversion.

Value

List of matrices of downscaled data. Grid cells are in columns, months in rows.


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