[R-sig-Geo] rgdal segmentation fault during installation
Dear list, I got the following segmentation fault error when I try to install rgdal on my local Ubuntu 16.04 LTS machine. Did anyone encounter something similar? Please below the error message with traceback and R session info. Similar problems appears on https://stackoverflow.com/questions/50064673/cannot-install-rgdal-package-in-local-server-an-irrecoverable-exception-occurre which remains unsolved . In my case (see below) all checks, PROJ4 included, were OK! Thank you for any kind of feedback Best Emanuele Cordano user@machine:~$ R R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > install.packages("rgdal") Installing package into ‘/home/ecor/R/x86_64-pc-linux-gnu-library/3.5’ (as ‘lib’ is unspecified) trying URL 'http://cran.r-project.org/src/contrib/rgdal_1.3-6.tar.gz' Content type 'application/x-gzip' length 1666975 bytes (1.6 MB) == downloaded 1.6 MB * installing *source* package ‘rgdal’ ... ** package ‘rgdal’ successfully unpacked and MD5 sums checked configure: R_HOME: /usr/lib/R configure: CC: gcc -std=gnu99 configure: CXX: g++ configure: C++11 support available configure: rgdal: 1.3-6 checking for /usr/bin/svnversion... yes configure: svn revision: 773 checking for gdal-config... /usr/bin/gdal-config checking gdal-config usability... yes configure: GDAL: 2.1.3 checking GDAL version >= 1.11.4... yes checking gdal: linking with --libs only... yes checking GDAL: /usr/share/gdal/2.1/pcs.csv readable... yes configure: pkg-config proj exists, will use it configure: PROJ version: 4.9.2 checking proj_api.h presence and usability... yes checking PROJ version >= 4.8.0... yes checking projects.h presence and usability... yes checking PROJ.4: epsg found and readable... yes checking PROJ.4: conus found and readable... yes configure: Package CPP flags: -I/usr/include/gdal configure: Package LIBS: -L/usr/lib -lgdal -lproj configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c OGR_write.cpp -o OGR_write.o g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c gdal-bindings.cpp -o gdal-bindings.o gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c init.c -o init.o gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c inverser.c -o inverser.o gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c local_stubs.c -o local_stubs.o g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c ogr_geom.cpp -o ogr_geom.o gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c ogr_polygons.c -o ogr_polygons.o g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I"/home/ecor/R/x86_64-pc-linux-gnu-library/3.5/sp/include"-fp
[R-sig-Geo] how to crete a *.prj file from a Raster object
Dear list, I have a RasterLayer object with CRS. I would like to write it in a *.asc ESRI ASCII file with writeRaster. I did it , I got the *.asc file but no related *.prj file was written. Is there a quick method to create directly the *.prj file from a RasterLayer object? Thank you very much kind regards Emanuele Cordano -- Emanuele Cordano Environmental Engineer / Ingegnere per l' Ambiente e il territorio nr. 3587 (Albo A - Provincia di Trento) Fondazione Edmund Mach CRI - Reasearch and Innovation Center Agro-Eco-System Dynamic Platform Via Mach 1 38017 San Michele All'Adige (Italy) phone +39 0461 615397 email: emanuele.cord...@iasma.it ,emanuele.cord...@gmail.com [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[R-sig-Geo] list of SpatialPolygons to SpatialPolygonsDataFrame
Dear all, I have a list of SpatialPolygons-class objects containing only one polygon for each list element. How can we gather each SpatialPolygons-class objects list element in only one SpatialPolygons-class object without using a 'for' loop? Our final target is to have this information in only one SpatialPolygonsDataFrame-class which can easily created from one SpatialPolygons-class object. Regards Thank you Emanuele Cordano ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Re: [R-sig-Geo] categorical AR or ARMA time series processes
Thanks Rolf, I found the package hmm.discnp on CRAN. I stated to play with some functions, just to see. But I found this error when I run the example of sim.hmm Thank you Emanuele Cordano > P <- matrix(c(0.7,0.3,0.1,0.9),2,2,byrow=TRUE) > R <- matrix(c(0.5,0,0.1,0.1,0.3, + 0.1,0.1,0,0.3,0.5),5,2) > set.seed(42) > y.sim <- sim.hmm(300,P,R,20) Error in sample(1:K, 1, prob = ispd) : incorrect number of probabilities 2011/6/24 Rolf Turner > On 24/06/11 21:57, Emanuele Cordano wrote: > >> Dear all, >> >> I'm working on daily precipitation generation time series, in particular I >> want to model a binary time serries (wet/dry day) for several years. I >> read >> about Discrete-Value or Catagorical-value AR or ARMA techniques. They >> refer >> to Pegrams [Pegram, G.G.S., 1980. An autoregressive model for multilag >> markov chains. J. Appl. Probab. 17, 350362] mixing operator and >> subsequent >> more recent works like >> http://www.sciencedirect.com/**science/article/pii/**S0167715209001977<http://www.sciencedirect.com/science/article/pii/S0167715209001977>or >> http://www.sciencedirect.com/**science/article/pii/**S0378375809000330<http://www.sciencedirect.com/science/article/pii/S0378375809000330> >> . >> Are these methods and Pegram's operetor already implemented in some CRAN >> package or something similar? I'm looking if there is something already >> implemented on which I can work? >> > > The CRAN package hmm.discnp might be of some use to you. > > cheers, > > Rolf Turner > [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[R-sig-Geo] categorical AR or ARMA time series processes
Dear all, I'm working on daily precipitation generation time series, in particular I want to model a binary time serries (wet/dry day) for several years. I read about Discrete-Value or Catagorical-value AR or ARMA techniques. They refer to Pegrams [Pegram, G.G.S., 1980. An autoregressive model for multilag markov chains. J. Appl. Probab. 17, 350362] mixing operator and subsequent more recent works like http://www.sciencedirect.com/science/article/pii/S0167715209001977 or http://www.sciencedirect.com/science/article/pii/S0378375809000330. Are these methods and Pegram's operetor already implemented in some CRAN package or something similar? I'm looking if there is something already implemented on which I can work Thanks a lot in advance Regards Emanuele Cordano [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo