Links daily, 0.3 degrees gridded (~ 32 sq km) meteorological monolevel data based on the location of each s2_cell and dates.
Usage
get_narr_data(
x,
narr_var = c("air.2m", "hpbl", "acpcp", "rhum.2m", "vis", "pres.sfc", "uwnd.10m",
"vwnd.10m"),
...
)Arguments
- x
a s2_cell_dates vector (see
?s2cd)- narr_var
character; name of NARR variable
- ...
passed to
stow::stow(). Thepackageandsubdirarguments are fixed by geomarker.
Value
a list of numeric vectors of NARR values. Locations outside the
raster extent return NA_real_ for each requested date.
Details
Data is downloaded from the NCEP North American Regional Reanalysis project page and is available for the entire US from 1979 - near present. Data is updated monthly. Files are retrieved through NOAA PSL's anonymous FTP server.
Examples
local({
withr::local_envvar(
R_USER_DATA_DIR = fs::path_package("geomarker", "gmrkr--8841"),
R_GEOMARKER_NO_DOWNLOAD = "true"
)
print(get_narr_data(s2cd_example_cincy(2L), "air.2m"))
})
#> Using managed local copy: /home/runner/work/_temp/Library/geomarker/gmrkr--8841/R/geomarker/stow/get_narr_data/1853e458d8e153a1--air.2m.2024.nc
#> $`8841af383fffffff`
#> [1] 295.5019 275.8381 280.3210
#>
#> $`8840823bc0000001`
#> [1] 287.3017 291.9456 288.3137
#>