drop_NAs: Remove NA grid cells from processing in the emulator training...

Description Usage Arguments Details Value

View source: R/handle_NAs.R

Description

This function removes grid cells with missing data, NA values for all timesteps, from being processed by trainTP. This enables fldgen to work with output that has NAs in it.

Usage

1
drop_NAs(griddata)

Arguments

griddata

output from concatGrids.general

Details

The parts of the griddata structure that are affected are:

vardata

Missing grid cells are removed

globalop

Entries corresponding to missing grid cells are removed.

The following items are added, only if there were missing grid cells to drop.

ncol_full

Number of columns in the original matrix, before missing values were dropped.

gridid_full

Column ids in the original matrix, for the grid cells that were not dropped.

coord

Matrix of latitude and longitude for each grid cell. This is distinct from the lat and lon entries, which gives the latitude coordinate extracted from the original netCDF file.

#'

Value

A new griddata structure, with missing grid cells removed


JGCRI/fldgen documentation built on July 18, 2020, 1:42 p.m.