Learn R Programming

SplitR (version 0.4)

add_grid: Add lat/lon grid to a model

Description

Create and add a grid of latitude and longitude points to a model object

Usage

add_grid(model, lat = NULL, lon = NULL, range = c(5, 5),
  division = c(0.5, 0.5), start_day = NULL, start_hour = NULL,
  end_day = NULL, end_hour = NULL, duration = NULL, heights = NULL,
  samp_interval = 0, samp_type = 6, samp_rate = 0, name = NULL)

Arguments

model

a SplitR modeling object

lat

a latitude value in decimal degrees for the point of reference on the grid.

lon

a longitude value in decimal degrees for the point of reference on the grid.

range

the latitude and longitude range about the grid_ref.

division

the division distances across the latitude and longitude ranges.

start_day

the day that the grid will become active and measuring particle concentrations. This should take the form of a single-length vector for a day ("YYYY-MM-DD").

start_hour

the associated hour for the start_day variable, taking the form of a single integer hour (from 0 to 23).

end_day

the day that the grid will cease to be active and no longer measuring particle concentrations. This should take the form of a single-length vector for a day ("YYYY-MM-DD").

end_hour

the associated hour for the end_day variable, taking the form of a single integer hour (from 0 to 23).

duration

a length of time in hours that the grid will remain active from the start date-time.

heights

a vector of heights for which there will be horizontal sampling grids.

samp_interval

the sampling interval in units of hours.

samp_type

the type of sampling that will occur.

samp_rate

the sampling rate.

name

an identifier for this set of grid parameters.