ARL_read: Read an ARL file

Description Usage Arguments Value Examples

Description

Read an ARL file

Read an ARL file

Usage

1
2
3
ARL_read(file_to_read, var_i_want, ll, ur, latlon = TRUE, verbose = FALSE)

ARL_read(file_to_read, var_i_want, ll, ur, latlon = TRUE, verbose = FALSE)

Arguments

file_to_read

the name of the file to read in

var_i_want

the name of the variable to extract

ll

the lat and lon of the lower-left corner of the area to extract

ur

the lat and lon of the upper-right corner of the area to extract

latlon

whether to convert the raster to lat-lon grid. Otherwise it stays in the native projection

verbose

whether to output additional messages during extraction'

file_to_read

the name of the file to read in

var_i_want

the name of the variable to extract

ll

the lat and lon of the lower-left corner of the area to extract

ur

the lat and lon of the upper-right corner of the area to extract

latlon

whether to convert the raster to lat-lon grid. Otherwise it stays in the native projection

verbose

whether to output additional messages during extraction'

Value

for 2d variables, a raster time series object is returned. For 3d variables, a list of RTS objects is returned, one for each altitude.

for 2d variables, a raster time series object is returned. For 3d variables, a list of RTS objects is returned, one for each altitude.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
file_to_read <- 'hysplit.20161020.00z.hrrra'
lower_left <- c(-73,40)
upper_left <- c(-70,43)
pbl <- ARL_read(file_to_read,"PBLH",ll=lower_left,ur=upper_right)
plot(pbl)
file_to_read <- 'hysplit.20161020.00z.hrrra'
lower_left <- c(-73,40)
upper_left <- c(-70,43)
pbl <- ARL_read(file_to_read,"PBLH",ll=lower_left,ur=upper_right)
plot(pbl)

taylorsjones/ARLtoolkit documentation built on May 13, 2019, 4:08 a.m.