inlabru-org / inlabru

inlabru
https://inlabru-org.github.io/inlabru/
77 stars 21 forks source link

netcdf and plotting problems for io_sst.load() #10

Closed finnlindgren closed 7 years ago

finnlindgren commented 7 years ago

io_sst.load() as used by the example for sst() fails at plot(sst) with error > sst = io_sst.load(year=c(2006,2007)) > plot(sst) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y' due to sst in plot(sst) being a list. Unclear what it expected it to be.

Also, is_sst.load require RNetCDF which should therefore be listed in Imports: in DESCRIPTION, and requireNamespace() used instead of require() (a couple of versions back R changed the depends/imports/namespace system, so old code and recommendations are now incorrect even if they sometimes work). Even better would be to also replace it with the ncdf4 package, which doesn't require the user to install a libudunits2-dev package (or equivalent), but only the netcdf development files.

fbachl commented 7 years ago

All ETP related code has been removed from inlabru, including the SST code.