Rafnuss / GeoPressureR

Global positioning by atmospheric pressure
https://raphaelnussbaumer.com/GeoPressureR
GNU General Public License v3.0
7 stars 1 forks source link

Transition from `raster` to `terra` #59

Closed Rafnuss closed 1 year ago

Rafnuss commented 1 year ago

terra is the new package replacing raster: https://github.com/rspatial/terra

terra:rast cannot be saved: https://github.com/rspatial/terra/issues/549, we we will convert it to matrix. Also, metadata has been removed in terra, so we use a new structure to store the data.

[
    {
        stap = 1,
        start = POSIXct(), 
        end = POSIXct(),
        likelihood = matrix(),
        extent = c(xmin, xmax, ymin, ymax)
    }, 
...
]