get_forecast_data: Load ensemble forecast data

Description Usage Arguments Details Value

View source: R/utility.R

Description

Loads in ensemble forecast data into the form: [issue x step x member] Also generates a list of validtime timestamps

Usage

1
get_forecast_data(fname, members, site, metadata, date_start, ...)

Arguments

fname

file name

members

A vector of member indices

site

Site index

metadata

Metadata list including date end, temporal parameters, time-steps per day, rolling or not, etc.

date_start

Timestamp

...

Additional parameters to load-in subfunctions

Details

If input file is in Maxar form, assumes a NETCDF file of the dimensions: [Day x Hour x Site x Lead time x member] Maxar data can be loaded to either match the form above or in a "rolling" format over the course of the year in the form [1 x all steps x member] to make annual average metrics easier

If input file in in ECMWF format (via reV), assumes an h5 file of the dimensions: [issue x step x member]

Value

A list of data=[issue x step x member] matrix and issuetime=a vector of POSIXct timestamps


kdayday/ppnwp documentation built on Oct. 8, 2020, 8:47 a.m.