error with SOS4R

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error with SOS4R

G.Laty
Hi all,

My name is Guillaume and I'm working for the unep GRID. I'm trying SOS4R to get some data from itsos.

Here is what I do and what's happening as an error

 
> mySOS <- SOS(url = "http://ig3is.grid.unep.ch/istsos/ghg")

  off.temp <- sosOfferings(mySOS)[[1]]



>> obs.temp.procedure.1 <- getObservation(sos = mySOS, offering = off.temp, procedure = sosProcedures(off.temp))
> [sos4R] Received response (size: 848 bytes), parsing ...
> Error in if (.subtypeIdx > 0) { : argument is of length zero


Here is the sessionInfo()

  > sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 14.04.5 LTS

and I use this version of SOS4R
  sos4R_0.2-11

Does anyone have any idea how can I get unstucked?

Thanks,

Guillaume


_______________________________________________
Geostatistics mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geostatistics
http://geostatistics.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error with SOS4R

Daniel Nüst
Hi Guillaume,

thanks for your interest in sos4R :-)

On 12/04/17 11:14, Guillaume Laty wrote:

> My name is Guillaume and I'm working for the unep GRID. I'm trying SOS4R
> to get some data from itsos.
>
> Here is what I do and what's happening as an error
>
>  
>> mySOS <- SOS(url = "http://ig3is.grid.unep.ch/istsos/ghg")
>
>  off.temp <- sosOfferings(mySOS)[[1]]
>
>>> obs.temp.procedure.1 <- getObservation(sos = mySOS, offering =
>>> off.temp, procedure = sosProcedures(off.temp))
>> [sos4R] Received response (size: 848 bytes), parsing ...
>> Error in if (.subtypeIdx > 0) { : argument is of length zero
>
>
> Here is the sessionInfo()
>
>  > sessionInfo()
> R version 3.3.3 (2017-03-06)
> Platform: i686-pc-linux-gnu (32-bit)
> Running under: Ubuntu 14.04.5 LTS
>
> and I use this version of SOS4R
>  sos4R_0.2-11
>
> Does anyone have any idea how can I get unstucked?
I can reproduce the error, which is good!

By using "GET" as the communication protocol instead of the default
"POST", I get a bit further.

> mySOS <- SOS(url = "http://ig3is.grid.unep.ch/istsos/ghg", method =
SosSupportedConnectionMethods()[["GET"]])

> getObservation(sos = mySOS, offering = off.temp)
[sos4R] Received response (size: 9256 bytes), parsing ...
Error in sum(.resultLength) : invalid 'type' (list) of argument
In addition: Warning messages:
1: In .valParser(values = obj[[sweValuesName]], fields = .fields,
encoding = .encoding,  :
  No converter found for the given field Time,
urn:ogc:def:parameter:x-istsos:1.0:time:iso8601
2: In .valParser(values = obj[[sweValuesName]], fields = .fields,
encoding = .encoding,  :
  No converter found! Skipping field Time
No converter found! Skipping field
urn:ogc:def:parameter:x-istsos:1.0:time:iso8601

In the vignette [1] section 6.4 you find instructions on how to define
the missing converters.

If you switch on the verbose option, you will also see the raw requests,
which might help:

> getObservation(sos = mySOS, offering = off.temp, verbose = TRUE)

This shows me that data is indeed returned.


Hope this helps for now, please keep us posted on your progress.

/Daniel

[1] https://cran.r-project.org/web/packages/sos4R/vignettes/sos4R.pdf


--
Daniel Nüst
Institute for Geoinformatics (ifgi),   University of Münster
Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 31962
http://ifgi.uni-muenster.de/~d_nues01        http://o2r.info


_______________________________________________
Geostatistics mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geostatistics
http://geostatistics.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines

smime.p7s (7K) Download Attachment
Loading...