Skip to content

Error creating GlobalSoilMap object (GSIF package)

7 messages · Ruth Gonzaga, Pascal Oettli, Tomislav Hengl +1 more

#
Hello,

According to the help file, TimeSpan is an "object of class "list";
contains begin and end of the sampling period of class "POSIXct"". You
need to provide a list of POSIXct dates, not a vector.

HTH
Pascal
On Wed, Jun 18, 2014 at 8:56 AM, Ruth Gonzaga <gonzagarg at yahoo.com.br> wrote:

  
    
#
I would recommend switching to using "SoilGrids" class:

http://gsif.r-forge.r-project.org/SoilGrids.html

Hence, to produce objects of SoilGrids class you need to use:

## save to a "SoilGrids" object:
SNDMHT.gsm <- SoilGrids(obj=sd.ll, varname="SNDPPT",
              TimeSpan=list(begin="1999-02-01", end="2001-07-01"))

In which case TimeSpan needs to be a list with names "begin", "end".

To install the most recent version of the GSIF package (v0.4-2), please use:

install.packages("GSIF", repos="http://R-Forge.R-project.org")

For technical issues and problems with SoilGrids classes please also 
consider writing to the GSIF mailing list at:

https://groups.google.com/forum/#!forum/global-soil-information

HTH

T. Hengl
On 18-6-2014 3:12, Pascal Oettli wrote:
2 days later
#
Sorry for that bug. You need to get GSIF v0.4-2 or higher and then the 
SoilGrids objects will compile 
(http://gsif.r-forge.r-project.org/SoilGrids.html).

Looks like R-forge is still building the package 
(http://r-forge.r-project.org/R/?group_id=1125). I will try to put the 
new version on CRAN next week. In the meanwhile you should be able to 
install it by running:

install.packages("GSIF", repos=c("http://R-Forge.R-project.org"), type = 
"source")
On 18-6-2014 16:55, Ruth Gonzaga wrote: