Cloud-native access and downloading of NOAA’s GEFS data. Caution package is highly experimental and not yet suitable for general use. Direct access to EFI-processed GEFS forecasts for NEON sites may be available through the neon4cast
package.
Example scripts can be seen in the inst/examples
directory.
For variable definitions, see the NOAA tables (If selecting band numbers from the grib files, note band numbers differ between the 000 hour and > 003 forecast)
Accessing the data
R
library(arrow)
library(dplyr)
Sys.unsetenv("AWS_DEFAULT_REGION")
s3 <- s3_bucket("neon4cast-drivers/noaa/gefs-v12/stage1",
endpoint_override = "data.ecoforecast.org",
anonymous = TRUE)
df <- open_dataset(s3, partitioning=c("start_date", "cycle"))
df |> filter(start_date == "2022-04-02", cycle == "00", ensemble==1)
Python
import pyarrow.dataset as ds
from pyarrow import fs
= fs.S3FileSystem(endpoint_override = "data.ecoforecast.org", anonymous = True)
s3 = ds.dataset(
dataset "neon4cast-drivers/noaa/gefs-v12/stage1",
format="parquet",
=s3,
filesystem=["start_date", "cycle"]
partitioning
)= (
expression "start_date") == "2022-04-01") &
(ds.field("cycle") == 00) &
(ds.field("ensemble") == 1)
(ds.field(
)= dataset.to_table(filter=expression) ex