Re: [R-sig-Geo] [DKIM] Re: [DKIM] Re: Interpolating snowfall values on a Digital Elevation Model [SEC=UNCLASSIFIED]

2018-02-22 Thread Li Jin
Agreed, Michael. Please the refs provided for some demonstrations at a 
latitudinal gradient.

From: Michael Sumner [mailto:mdsum...@gmail.com]
Sent: Thursday, 22 February 2018 11:26 PM
To: Li Jin
Cc: Dominik Schneider; r-sig-geo@r-project.org
Subject: [DKIM] Re: [R-sig-Geo] [DKIM] Re: Interpolating snowfall values on a 
Digital Elevation Model [SEC=UNCLASSIFIED]

Some thoughts.


On Wed, 21 Feb 2018 at 09:09 Li Jin > 
wrote:
The statement ‘the kriging functions in R still don't accept lat/long’ is 
incorrect. Please check the gstat and spm packages for details. When your data 
is collected from one utm, it is a good idea to project the data using utm. If 
the data is from two or more utms, you need to use different projection 
systems. The references provided demonstrated that the commonly used WGS84 is 
as good as relevant projection systems.

From: Dominik Schneider 
[mailto:dominik.schnei...@colorado.edu]
Sent: Wednesday, 21 February 2018 5:02 AM
To: Li Jin
Cc: Stefano Sofia; r-sig-geo@r-project.org
Subject: Re: [DKIM] Re: [R-sig-Geo] Interpolating snowfall values on a Digital 
Elevation Model [SEC=UNCLASSIFIED]

The effects of spatial reference systems on interpolations and accuracy are 
minimal, and lat and long can be used.
Fair enough, thanks for sending the references. But, as far as I know, the 
kriging functions in R still don't accept lat/long.



Any such advice is completely dependent on the study area, and the goals of the 
study. UTM is really bad advice generally, it's just a simplistic system we've 
inherited and is used way too much, a self-fulfilling prophecy. Whether 
standard tools should or shouldn't accept data as given is a crux philosophical 
point, no tool in R is smart enough to know whether it's "correct enough" to 
assume one way or another. You can't assume any measurement represents reality 
in any projection, it depends how far, how much, how large - you can't traverse 
from local neighbourhood scales to continental, for example - you'd make 
different choices regarding compromises at *some such point*.

Please don't ever advise use of UTM without specific caveats about the scope 
and extent of the research - which is impossible in general - learn to use map 
projections with the compromises they entail, there's nothing stopping creating 
a local new one, from any of the main families with PROJ.4, and with many 
variants of compromises on area, length, shape and scale.

I tend not to say anything about this topic in this environment, but this time 
the back and forth is particularly misleading IMO.

We actually have the worst of worlds at the moment, with many softwares 
opinionatedly preventing one from making educational mistakes. There's no real 
authority, lots of opinion and habit. lots of exploration but not enough 
pushing and argument - I advise keeping an open mind and exploring deeply.

Cheers, Mike.

On Mon, Feb 19, 2018 at 8:54 PM, Li Jin 
>>
 wrote:
The effects of spatial reference systems on interpolations and accuracy are 
minimal, and lat and long can be used. Please see the following studies for 
details.

Jiang, W., Li, J., 2013. Are Spatial Modelling Methods Sensitive to Spatial 
Reference Systems for Predicting Marine Environmental Variables, 20th 
International Congress on Modelling and Simulation: Adelaide, Australia, pp. 
387-393.
Jiang, W., Li, J., 2014. The effects of spatial reference systems on the 
predictive accuracy of spatial interpolation methods. Record 2014/01. 
Geoscience Australia: Canberra, pp 33. 
http://dx.doi.org/10.11636/Record.2014.001.
Turner, A.J., Li, J., Jiang, W., 2017. Effects of Spatial Reference Systems on 
the Accuracy of Spatial Predictive Modelling along a Latitudinal Gradient, 22nd 
International Congress on Modelling and Simulation: Hobart, Tasmania, 
Australia, pp. 106-112.


-Original Message-
From: R-sig-Geo 
[mailto:r-sig-geo-boun...@r-project.org>]
 On Behalf Of Dominik Schneider
Sent: Wednesday, 14 February 2018 3:21 AM
To: Stefano Sofia
Cc: 
r-sig-geo@r-project.org>
Subject: [DKIM] Re: [R-sig-Geo] Interpolating snowfall values on a Digital 
Elevation Model

You can't use a lat/long coordinate system when kriging because the concept of 
distance is ambiguous. Convert all your data a UTM grid like you had in your 
first post and it should work.

Another note, It looks like you are working at 0.01 deg which is on the order 
of 1km resolution so you may find  other covariates such as aspect, slope, and 
wind sheltering/exposure, terrain roughness for estimating snow on the ground 
useful. see some 

Re: [R-sig-Geo] [DKIM] Re: Interpolating snowfall values on a Digital Elevation Model [SEC=UNCLASSIFIED]

2018-02-22 Thread Michael Sumner
Some thoughts.


On Wed, 21 Feb 2018 at 09:09 Li Jin  wrote:

> The statement ‘the kriging functions in R still don't accept lat/long’ is
> incorrect. Please check the gstat and spm packages for details. When your
> data is collected from one utm, it is a good idea to project the data using
> utm. If the data is from two or more utms, you need to use different
> projection systems. The references provided demonstrated that the commonly
> used WGS84 is as good as relevant projection systems.
>
> From: Dominik Schneider [mailto:dominik.schnei...@colorado.edu]
> Sent: Wednesday, 21 February 2018 5:02 AM
> To: Li Jin
> Cc: Stefano Sofia; r-sig-geo@r-project.org
> Subject: Re: [DKIM] Re: [R-sig-Geo] Interpolating snowfall values on a
> Digital Elevation Model [SEC=UNCLASSIFIED]
>
> The effects of spatial reference systems on interpolations and accuracy
> are minimal, and lat and long can be used.
> Fair enough, thanks for sending the references. But, as far as I know, the
> kriging functions in R still don't accept lat/long.
>
>
>

Any such advice is completely dependent on the study area, and the goals of
the study. UTM is really bad advice generally, it's just a simplistic
system we've inherited and is used way too much, a self-fulfilling
prophecy. Whether standard tools should or shouldn't accept data as given
is a crux philosophical point, no tool in R is smart enough to know whether
it's "correct enough" to assume one way or another. You can't assume any
measurement represents reality in any projection, it depends how far, how
much, how large - you can't traverse from local neighbourhood scales to
continental, for example - you'd make different choices regarding
compromises at *some such point*.

Please don't ever advise use of UTM without specific caveats about the
scope and extent of the research - which is impossible in general - learn
to use map projections with the compromises they entail, there's nothing
stopping creating a local new one, from any of the main families with
PROJ.4, and with many variants of compromises on area, length, shape and
scale.

I tend not to say anything about this topic in this environment, but this
time the back and forth is particularly misleading IMO.

We actually have the worst of worlds at the moment, with many softwares
opinionatedly preventing one from making educational mistakes. There's no
real authority, lots of opinion and habit. lots of exploration but not
enough pushing and argument - I advise keeping an open mind and exploring
deeply.

Cheers, Mike.

>
> On Mon, Feb 19, 2018 at 8:54 PM, Li Jin > wrote:
> The effects of spatial reference systems on interpolations and accuracy
> are minimal, and lat and long can be used. Please see the following studies
> for details.
>
> Jiang, W., Li, J., 2013. Are Spatial Modelling Methods Sensitive to
> Spatial Reference Systems for Predicting Marine Environmental Variables,
> 20th International Congress on Modelling and Simulation: Adelaide,
> Australia, pp. 387-393.
> Jiang, W., Li, J., 2014. The effects of spatial reference systems on the
> predictive accuracy of spatial interpolation methods. Record 2014/01.
> Geoscience Australia: Canberra, pp 33.
> http://dx.doi.org/10.11636/Record.2014.001.
> Turner, A.J., Li, J., Jiang, W., 2017. Effects of Spatial Reference
> Systems on the Accuracy of Spatial Predictive Modelling along a Latitudinal
> Gradient, 22nd International Congress on Modelling and Simulation: Hobart,
> Tasmania, Australia, pp. 106-112.
>
>
> -Original Message-
> From: R-sig-Geo [mailto:r-sig-geo-boun...@r-project.org r-sig-geo-boun...@r-project.org>] On Behalf Of Dominik Schneider
> Sent: Wednesday, 14 February 2018 3:21 AM
> To: Stefano Sofia
> Cc: r-sig-geo@r-project.org
> Subject: [DKIM] Re: [R-sig-Geo] Interpolating snowfall values on a Digital
> Elevation Model
>
> You can't use a lat/long coordinate system when kriging because the
> concept of distance is ambiguous. Convert all your data a UTM grid like you
> had in your first post and it should work.
>
> Another note, It looks like you are working at 0.01 deg which is on the
> order of 1km resolution so you may find  other covariates such as aspect,
> slope, and wind sheltering/exposure, terrain roughness for estimating snow
> on the ground useful. see some of the earliest papers by Carroll, Cressie,
> and Elder.
>
> Carroll, S. S., and N. Cressie (1996), A comparison of geostatistical
> methodologies used to estimate snow water equivalent, *JAWRA Journal of the
> American Water Resources Association*, *32*(2), 267–278,
> doi:10./j.1752-1688.1996.tb03450.x.
>
> Carroll, S. S., and N. Cressie (1997), Spatial modeling of snow water
> equivalent using covariances estimated from spatial and geomorphic
> attributes, *Journal of Hydrology*, *190*(1-2), 42–59.
>
> Balk, B., and K. Elder (2000), Combining binary decision tree and
> geostatistical methods to 

Re: [R-sig-Geo] WPS client implementation in R

2018-02-22 Thread Javier Martínez-López
Thank you for the explanation! Best, Javier

On Wed, Feb 21, 2018 at 10:08 AM, Dr. Benedikt Gräler  wrote:

> WPS is the acronym of the Web Processing Service - an OGC standard [1]
> that specifies how some spatial process (adding two layers, buffering, ...,
> run-off models, ..., complex atmospheric models, ..., processes running on
> large data sets, ...) can be wrapped in a server-side service. The standard
> basically specifies how in- and output values are submitted and received -
> pretty much like a function definition. A well designed WPS can then be
> used with WPS clients (e.g. QGIS, ArcGIS, ...), but also via a web browser
> [2,3], to perform the pre-defined process on your data.
>
> Hope that clarifies the previous discussions,
>
>  Ben
>
> [1] http://www.opengeospatial.org/standards/wps
> [2] http://geoprocessing.demo.52north.org:8080/wps-js-client/
> [3] HowTo for [2]:
> https://wiki.52north.org/Projects/SimpleQuakeMapAlgorithm
>
>
> On 21/02/2018 00:55, Vijay Lulla wrote:
>
>> Is WPS like Open Sound Control (OSC)?
>>
>> On Tue, Feb 20, 2018 at 11:30 AM, Barry Rowlingson <
>> b.rowling...@lancaster.ac.uk> wrote:
>>
>> On Tue, Feb 20, 2018 at 3:51 PM, Javier Martínez-López <
>>> javi.martinez.lo...@gmail.com> wrote:
>>>
>>> You can try OpenCPU (https://www.opencpu.org/). It works great!


>>> I don't see anything WPS there. The advantage of implementing a WPS is
>>> that
>>> it is then available to anything supporting the WPS standard, so you
>>> could
>>> access your analysis from QGIS, for example.
>>>
>>>   If you implemented an analysis via some generic REST API you'd still
>>> have
>>> to write some client code to interpret the outputs.
>>>
>>> Barry
>>>
>>>  [[alternative HTML version deleted]]
>>>
>>> ___
>>> R-sig-Geo mailing list
>>> R-sig-Geo@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>>
>>
>>
>>
> --
> Dr. Benedikt Gräler
> 52°North Initiative for Geospatial Open Source Software GmbH
> Martin-Luther-King-Weg 24
> 48155 Muenster, Germany
>
> E-Mail: b.grae...@52north.org
> Fon: +49-(0)-251/396371-39
> Fax: +49-(0)-251/396371-11
>
> http://52north.org/
> Twitter: @FiveTwoN
>
> General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
> Local Court Muenster HRB 10849
>
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo