Skip to contents

Packages temporal_synth_soc_cube()'s output into the (batch, T, C, H, W) array shape expected by temporal_convlstm_fit(), with two channels:

  1. static elevation (broadcast along time);

  2. dynamic precipitation.

Also returns the target SOC array in (batch, T, H, W) form.

Usage

temporal_cube_to_tensor(cube, t_slice = NULL)

Arguments

cube

List returned by temporal_synth_soc_cube().

t_slice

Optional integer vector with time indices to include (default = all months). Useful to split train / forecast windows.

Value

A list with sequence (1, T', 2, H, W) and target (1, T', H, W).