Description Usage Arguments Value Note Examples
Return data.framee or list of raster and df from points. When is data.frame contains cell value, interpolation for lat long based on neighour cells,
Return data.framee or list of raster and df from points. When is data.frame contains cell value, interpolation for lat long based on neighour cells,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | xtractor(
atmos,
vars,
level = 1,
points,
fac_res = 1.2,
stations,
crs_points = 4326,
model = "WRF",
tz = "America/Sao_Paulo",
return_list = FALSE,
verbose = TRUE
)
xtractor(
atmos,
vars,
level = 1,
points,
fac_res = 1.2,
stations,
crs_points = 4326,
model = "WRF",
tz = "America/Sao_Paulo",
return_list = FALSE,
verbose = TRUE
)
|
atmos |
Character; path to output of model (wrfout) |
vars |
Character; Variable with has 3 or 4 dimensions. |
level |
Integer; Which level |
points |
data.frame, matrix, SpatialPointsDataFrame or sf 'POINTS', with coordinates East-weast (lat), north-south (long) and 'Station'. |
fac_res |
Numeric. Expansion factor for buffer distance. The buffer distane is calculated as the average of the resolution times fac_res |
stations |
Character; names of stations for each point. (DEPRECATED) |
crs_points |
Integer, crs points. |
model |
Character; Currently, only "WRF" |
tz |
Character; Time zone |
return_list |
Logical; If TRUE, return a list with raster and data.frames if FALSE, only data.frame. |
verbose |
logical |
Return data.framee or list of raster and df
Return data.framee or list of raster and df
Based on NCL scrip xtractor from DCA/IAG/USP
Based on NCL scrip xtractor from DCA/IAG/USP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
# do not run
data(cetesb)
cetesb <- cetesb[!is.na(cetesb$Station), "Station"]
#use your wrfout
#wrf <- "~/Documentos/wrfo/wrfoA.nc"
t2 = c("T2", "o3", "no")
df <- xtractor(atmos = wrf, vars = t2, points = cetesb,
stations = cetesb$Station[1:3])
r <- xtractor(atmos = wrf, vars = t2, points = cetesb return_list = T)
## End(Not run)
## Not run:
# do not run
data(cetesb)
cetesb <- cetesb[!is.na(cetesb$Station), "Station"]
#use your wrfout
#wrf <- "~/Documentos/wrfo/wrfoA.nc"
t2 = c("T2", "o3", "no")
df <- xtractor(atmos = wrf, vars = t2, points = cetesb,
stations = cetesb$Station[1:3])
r <- xtractor(atmos = wrf, vars = t2, points = cetesb return_list = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.