scrim-network / loadWxObs

A R package containing a set of utility functions for loading and writing weather station observations.
GNU General Public License v3.0
0 stars 0 forks source link

Update spatial libraries #7

Open klr324 opened 7 months ago

klr324 commented 7 months ago

Many spatial libraries are being archived in cran. The library sp has not been archived, but it is recommended to migrate from using this library to terra, stars, or sf.

Most of the in house functions can be tranferred to terra, however, the functions using the spacetime library cannot. The library spacetime depends on sp.

klr324 commented 7 months ago

The maintainer of spacetime has suggested a more modern take on can be found in https://r-spatial.org/book/13-Geostatistics.html (see discussion: https://github.com/edzer/spacetime/issues/44)

This update uses gstat, sf, and stars. sf and stars are among the recommended spatial libraries to migrate to.