read_forecast: read a forecast file (csv or netcdf)

View source: R/read_forecast.R

read_forecastR Documentation

read a forecast file (csv or netcdf)

Description

read a forecast file (csv or netcdf)

Usage

read_forecast(
  file_in,
  target_variables = c("oxygen", "temperature", "chla", "richness", "abundance", "nee",
    "le", "vswc", "gcc_90", "ixodes_scapularis", "amblyomma_americanum"),
  reps_col = "ensemble",
  quiet = TRUE,
  s3 = NULL,
  ...
)

Arguments

file_in

path or URL to forecast to be read in

target_variables

vector of valid variables being predicted

reps_col

name of the replicates column (for ensemble forecasts)

quiet

logical, default TRUE (show download progress?)

s3

Optionally, provide an S3 bucket (from arrow::s3_bucket). In this case, file_in is interpreted as the object key on the bucket.

...

additional options (currently ignored) Reads in a valid forecast as a data.frame() in EFI format. csv files are simply read in using readr::read_csv. This utility exists mostly to provide a single function that can handle both csv and netcdf formats, as both are valid choices in EFI standard.


eco4cast/read4cast documentation built on Nov. 7, 2023, 5:12 a.m.