These are chat archives for thunder-project/thunder
Imagesobject directly with something like
Seriesfirst with something like
Series, does something simpler like calling
Series, you get back another
Series, let's call it
data, where every record is the time series from one region. If you want to just grab that whole thing as an array (i.e. the full set of time series), you'll want to use the
data.collectValuesAsArray()method. That will give you a local array with the time series, and is reasonable to do under the assumption that the number of time series isn't too terribly large.
k, v = data.collectAsArray()which will give you two local arrays, one with the centers of the regions and another with the time series.
exporton those arrays to save to
exportwill be exposed as a method on the
ThunderContext, so you'll call
tsc.exportinstead of importing a separate function. Among other things, this new version allows you to write data to S3 as well as to a local file system on the cluster, which might be useful for more permanent storage.