fillGrid: Fill missing dates and extend the latitude-longitude domain...

View source: R/fillGrid.R

fillGridR Documentation

Fill missing dates and extend the latitude-longitude domain of a given grid.

Description

fill with NA missing dates in grids and station datasets

Usage

fillGrid(grid, tz = "", lonLim = c(-180, 180), latLim = c(-90, 90))

Arguments

grid

grid or station data. The lonLim and latLim arguments are only valid for gridded data.

tz

Optional. Time zone. See Details in fillGridDates.

lonLim

Optional. A vector with the minimum and maximum longitude boundaries to be filled with NAs. Default to lonLim = c(-180,180).

latLim

Optional. A vector with the minimum and maximum latitude boundaries to be filled with NAs. Default to latLim = c(-90,90).

Value

A grid filled with NAs in the previously missing date positions and/or in the latitude-longitude domain indicated.

Author(s)

J. BaƱo-Medina

Examples


require(climate4R.datasets) 
require(visualizeR)
grid <- get(data("NCEP_Iberia_psl"))
spatialPlot(climatology(grid), backdrop.theme = "coastline")
grid <- fillGrid(grid, tz = NULL, lonLim = c(-180,180), latLim = c(-90,90))
spatialPlot(climatology(grid), backdrop.theme = "coastline")


SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.