Page 1 of 1

[SOLVED] SPDE Simulation

PostPosted: Mon Sep 04, 2017 3:13 pm
by mharley
I tried to run an unconditional simulation via the SPDE Simulation methodology. I followed exactly the steps shown in the SPDE first-steps vignette. However as soon as the SPDE process initiates, the R-session crashes.

Re: SPDE Simulation

PostPosted: Tue Sep 05, 2017 8:19 am
by Fabien Ors
Please, could you provide us more information?
- The vignette step when the crash occurs
- The version or RGeostats
- Your operating system...
Please follow these instructions:
viewtopic.php?f=3&t=387

Re: SPDE Simulation

PostPosted: Wed Sep 13, 2017 8:42 pm
by mharley
Hello Fabien,
I am following the vignette by copying and pasting the results into my RStudio Console
The command that causes R to terminate is this:
result.nc = spde(,grid,model,seed=seed,gext=gext,nbsimu=nbsimu)

The output requested is:
> library(RGeostats)
Loading required package: Rcpp
Loading RGeostats - Version:11.1.0
Warning messages:
1: package ‘RGeostats’ was built under R version 3.3.2
2: package ‘Rcpp’ was built under R version 3.3.3
> getwd()
[1] "C:/Users/mharley"
> R.Version()$platform
[1] "x86_64-w64-mingw32"
> R.Version()$version.string
[1] "R version 3.3.1 (2016-06-21)"
> packageVersion("Rcpp")
[1] ‘0.12.11’
> packageVersion("RGeostats")
[1] ‘11.1.0’
> packageVersion("maps")
Error in packageVersion("maps") : package ‘maps’ not found
> packageVersion("mapproj")
Error in packageVersion("mapproj") : package ‘mapproj’ not found
> for (trgo_ in ls(all.names=T)) { print(trgo_); print(class(eval(parse(text=trgo_)))); cat("\n") }; rm(trgo_)
[1] ".Last.variety"
[1] "list"

[1] ".Random.seed"
[1] "integer"

[1] "eqt"
[1] "data.table" "data.frame"

[1] "lith"
[1] "data.table" "data.frame"

[1] "w"
[1] "data.table" "data.frame"

The machine OS is Windows 10

Re: SPDE Simulation

PostPosted: Tue Dec 12, 2017 10:02 am
by Fabien Ors
Sorry for my late answer,
Did you tried with the last version or RGeostats ?

Re: SPDE Simulation

PostPosted: Thu Feb 01, 2018 11:43 am
by dimitridor
Bonjour,

J'ai subi le même crash systématique. J'utilise la version 11.2.0 sous Windows 8.1.
Le crash se produit à la ligne 266 :
result.nc = spde(,grid,model,seed=seed,gext=gext,nbsimu=nbsimu)

Merci de proposer une solution,

Dimitri

Re: SPDE Simulation

PostPosted: Wed Feb 28, 2018 5:11 pm
by Fabien Ors
Dear,

Sorry for our late answer.
We have fixed the spde function in the last release of RGeostats under Windows (11.2.1).
Hope this helps !

Best regards,
Fabien

Re: SPDE Simulation

PostPosted: Wed Mar 28, 2018 2:44 pm
by dimitridor
Dear Fabian,

I tested again on version 11.2.1 under Windows 8.1 and I still have the same crash...
Any guess of what is happening?

Thank you,
Dimitri

Re: SPDE Simulation

PostPosted: Fri Apr 27, 2018 2:27 pm
by Fabien Ors
Dear,

We have really fixed the spde function in the last release of RGeostats under Windows (11.2.2).
Hope this helps !

Best regards,
Fabien

Re: SPDE Simulation

PostPosted: Mon Apr 30, 2018 12:58 pm
by dimitridor
Fabien,

Thank you for the new version. It solves the problem.

I just had a "unused parameters numparts=c(4,4),npiter=10" causing an error at line 530. I removed them and reached the end of the Rmd file.

I presume those parameters are obsolete, right?

Thank you,

Dimitri

Re: SPDE Simulation

PostPosted: Tue May 08, 2018 9:39 pm
by Didier Renard
Hi Dimitri
You are right, the parameters numparts was refering to the quilting option which has been abandoned.
I am even surprised that you could still see any reference to this parameter: I did not find any in the today's distribution.
But SPDE is constantly evolving ... so some obsolete parameters may remain ... by mistake.
Didier