The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Use a storage


library(barrks)

A typical application of barrks is to repeatedly calculate a phenology with data on a daily basis. Depending on the model and the number of raster cells, these calculations can be quite time-consuming. As most of the calculations are redundant to earlier versions, the use of a storage can greatly reduce the computation time. A storage can be used by passing a directory as .storage parameter to phenology(). A phenology can be recovered from a storage by calling phenology with .storage parameter and without model inputs.

Note that the use of a storage is neither available for station data nor for the onset and the development submodels of BSO. As saving and loading from the storage takes time as well, the calculation of a phenology might occasionally be slower, especially for small rasters.


# call phenology with a storage path
pheno <- phenology('phenips-clim',
                   barrks_data(),
                   .storage = 'path/to/storage')

# recover phenology from a storage path
pheno_recovered <- phenology('phenips-clim', .storage = 'path/to/storage')

The functions save_phenology() and load_phenology() provide a faster way for saving and loading phenology objects, but they do not allow successive calculations.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.