Re: [R-sig-Geo] Species distribution models based on areal data instead of point pattern

2024-09-27 Thread Manuel Spínola
e information at > https://modtools.wordpress.com/packages/fuzzysim/ > > Regards, > > El vie, 27 sept 2024 a las 12:29, Manuel Spínola () > escribió: > >> Thank you very much Marcelino and MIke. >> >> spmodel should be a good option. I also learned that CARBayes also works &g

Re: [R-sig-Geo] Species distribution models based on areal data instead of point pattern

2024-09-27 Thread Manuel Spínola
pmodel/index.html > Mike > > On Thursday, September 26, 2024, Marcelino de la Cruz Rot < > marcelino.delac...@urjc.es> wrote: > > > > https://cran.r-project.org/package=dismo > > > > https://rspatial.org/sdm/index.html > > > > > > El 26/09/2024

[R-sig-Geo] Species distribution models based on areal data instead of point pattern

2024-09-26 Thread Manuel Spínola
Dear list members, Are there any R packages focused on species distribution models based on areal data (specifically grids) instead of point pattern? Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000

Re: [R-sig-Geo] How to randomly select polygons

2024-09-25 Thread Manuel Spínola
e > > On Monday, September 23, 2024, Manuel Spínola > wrote: > > Thank you very much Dexter. > > > > Manuel > > > > El lun, 23 sept 2024 a las 16:29, Dexter Locke ( >) > > escribió: > > > >> or in a tidy way > >> > >>

Re: [R-sig-Geo] How to randomly select polygons

2024-09-23 Thread Manuel Spínola
On Sep 23, 2024, at 5:55 PM, Josiah Parry wrote: > > nc <- sf::st_read(system.file("shape/nc.shp", package = "sf")) > > -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Her

Re: [R-sig-Geo] How to randomly select polygons

2024-09-23 Thread Manuel Spínola
4. Use those as an index to subset from > > nc <- sf::st_read(system.file("shape/nc.shp", package = "sf")) > > n <- 10 > idx <- sample(1:nrow(nc), n) > nc[idx, ] > > On Mon, Sep 23, 2024 at 2:45 PM Manuel Spínola > wrote: > >> Dear

[R-sig-Geo] How to randomly select polygons

2024-09-23 Thread Manuel Spínola
Dear list members, How can I select polygons at random from an sf or terra vector (polygon or multipolygon geometry). For example for the nc file: nc = st_read(system.file("shape/nc.shp", package="sf")) Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Cons

Re: [R-sig-Geo] Night lights in R

2024-08-09 Thread Manuel Spínola
Thank you very much! *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706 - 4662 Sitio web institucional: ICOMVIS <h

[R-sig-Geo] Night lights in R

2024-08-09 Thread Manuel Spínola
Dear list members, Is there an R package or a way to obtain with R night lights for a specific region or country? I found 2 packages but they are outdated, rnighlights and nightlights. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre

[R-sig-Geo] Modelling land use/land cover under climate change scenarios

2024-05-11 Thread Manuel Spínola
Dear list members, Is there a way in R or an R example code to model land use/land cover under climate change scenario. *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol

Re: [R-sig-Geo] R packages for multivariate spatial models

2024-04-08 Thread Manuel Spínola
__________ > From: R-sig-Geo on behalf of Manuel > Spínola > Sent: 08 April 2024 13:47 > To: Jin Li > Cc: r-sig-geo > Subject: Re: [R-sig-Geo] R packages for multivariate spatial models > > [You don't often get email from mspinol...@gmail.com. L

Re: [R-sig-Geo] R packages for multivariate spatial models

2024-04-08 Thread Manuel Spínola
information, please see "Spatial Predictive > Modeling with R" that provides many reproducible examples of these methods. > > Hope this helps, > > On Mon, Apr 8, 2024 at 7:14 AM Manuel Spínola > wrote: > >> Dear list members, >> >> I am lo

[R-sig-Geo] R packages for multivariate spatial models

2024-04-07 Thread Manuel Spínola
Dear list members, I am looking for suggestions of R packages to fit multivariate spatial models. -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com

Re: [R-sig-Geo] Recommendations for wildfire risk analysis (spatially explicit)

2024-01-30 Thread Manuel Spínola
t 9:36 PM Ben Tupper wrote: > >> Hi, >> >> Perhaps this might be a good place to start? >> >> https://esajournals.onlinelibrary.wiley.com/doi/10.1002/eap.1898 The >> authors state that the work was done primarily in R. >> >> Cheers, >> Ben &

[R-sig-Geo] Recommendations for wildfire risk analysis (spatially explicit)

2024-01-20 Thread Manuel Spínola
Dear list members, I am looking for suggestions for R packages or an approach using R for wildfire risk analysis. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr

Re: [R-sig-Geo] maptools, rgdal, rgeos and rgrass7 retiring Monday, October 16

2023-10-03 Thread Manuel Spínola
I also echo all this comments. Very grateful for Roger Bivand effort. Manuel On Tue, 3 Oct 2023 at 07:41 Sean Trende via R-sig-Geo < r-sig-geo@r-project.org> wrote: > Agreed 100%. I'm blown away by the amount of work and care that you put > into helping people use these packages. I never would

Re: [R-sig-Geo] Spatial nested grid in R

2023-02-10 Thread Manuel Spínola
verlap for a given size. You'd probably also want tiling enabled and > choose a particular tile size (perhaps to match the next resolution down). > And I'd definitely want to make sure my extent was clean whole numbers and > choose sensible sized zoom and tile levels. > > Che

Re: [R-sig-Geo] st_intersection produce Geometry type: GEOMETRY instead of Geometry type: POLYGON

2023-02-10 Thread Manuel Spínola
t;) escribió: > > g_25000_c_polygons_only <- g_25000_c[st_is(x = g_25000_c, type = > "POLYGON"),] # with a comma > > > El 10/02/2023 a las 21:33, Manuel Spínola escribió: > > Thnak you very much Bede-Fazekas. > > > > I got the following error: > > > > g_

Re: [R-sig-Geo] Spatial nested grid in R

2023-02-10 Thread Manuel Spínola
elino > > > > > > > > > > >> library(maptools) > >> R <- as(affine(letterR, mat=diag(c(20,20))), "SpatialPolygons") > >> plot(R, border="blue") > >> > >> # "overimpose" grids A to C on R: > &

Re: [R-sig-Geo] st_intersection produce Geometry type: GEOMETRY instead of Geometry type: POLYGON

2023-02-10 Thread Manuel Spínola
gt; result is GEOMETRY if the type of the different features is not the same > > (e.g. POLYGON+POINT). > > You can subset the result in this way: > > g_25000_c_polygons_only <- g_25000_c[st_is(x = g_25000_c, type = > > "POLYGON")] > > > > HTH, > > Ákos > > ___

Re: [R-sig-Geo] st_intersection produce Geometry type: GEOMETRY instead of Geometry type: POLYGON

2023-02-10 Thread Manuel Spínola
his way: > g_25000_c_polygons_only <- g_25000_c[st_is(x = g_25000_c, type = > "POLYGON")] > > HTH, > Ákos > ___ > Ákos Bede-Fazekas > Centre for Ecological Research, Hungary > > 2023.02.10. 18:32 keltezéssel, Manuel Spínola írta: > > Dear l

[R-sig-Geo] st_intersection produce Geometry type: GEOMETRY instead of Geometry type: POLYGON

2023-02-10 Thread Manuel Spínola
;- st_intersection(g_25000, g_5_d) g_25000_c # Geometry type: GEOMETRY -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (50

Re: [R-sig-Geo] Spatial nested grid in R

2023-02-10 Thread Manuel Spínola
0))), "SpatialPolygons") > > plot(R, border="blue") > > > > # "overimpose" grids A to C on R: > > plot(C, border="green", add=T) > > plot(B, border="red", add=T) > > plot(A, add=T) > > > > Cheers, >

Re: [R-sig-Geo] Spatial nested grid in R

2023-02-10 Thread Manuel Spínola
lt;- as(affine(letterR, mat=diag(c(20,20))), "SpatialPolygons") > plot(R, border="blue") > > # "overimpose" grids A to C on R: > plot(C, border="green", add=T) > plot(B, border="red", add=T) > plot(A, add=T) > > Cheers, > Mar

Re: [R-sig-Geo] Spatial nested grid in R

2023-02-10 Thread Manuel Spínola
Física y Química Inorgánica > Universidad Rey Juan Carlos > Móstoles España > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- *Manuel Spínola, Ph.D.* Instit

[R-sig-Geo] Spatial nested grid in R

2023-02-09 Thread Manuel Spínola
Dear list members, Is it possible to generate a spatial nested grid in R? For example, a grid of several 8km x 8km tiles, and within that grid, I want 4 tiles of 4km x 4km, and in each of those I want 4 tiles of 2km x 2km, and in each of those I want 4 tiles of 1km x 1km. Manuel -- *Manuel

[R-sig-Geo] Announcig 2 R data packages with geospatial data for Costa Rica and Central America

2023-01-25 Thread Manuel Spínola
Dear list members, I would like to announce 2 R packages with geospatial data: cageo, an R package with geospatial data of Central America. https://github.com/ManuelSpinola/cageo crgeo, an R package with geospatial data of Costa Rica https://github.com/ManuelSpinola/crgeo -- *Manuel Spínola

Re: [R-sig-Geo] geodata package: CMIP6 climate model data downloading error

2023-01-25 Thread Manuel Spínola
scientific paper about this: > https://www.sciencedirect.com/science/article/pii/S1364815223000130?dgcid=rss_sd_all > Please note that it is about daily climate instead of long-term averages. > > HTH, > Ákos > _ > Ákos Bede-Fazekas > Centre for Ecological Research, H

Re: [R-sig-Geo] geodata package: CMIP6 climate model data downloading error

2023-01-25 Thread Manuel Spínola
Thank you very much Edzer. El mié, 25 ene 2023 a las 9:00, Edzer Pebesma (< edzer.pebe...@uni-muenster.de>) escribió: > > > On 25/01/2023 15:48, Manuel Spínola wrote: > > Thank you very much Ákos. > > > > It didn't work either. > > > > Is ther

Re: [R-sig-Geo] geodata package: CMIP6 climate model data downloading error

2023-01-25 Thread Manuel Spínola
p126_2021-2040.tif > > Have a nice week, > Ákos > > _ > Ákos Bede-Fazekas > Centre for Ecological Research, Hungary > > 2023.01.24. 23:29 keltezéssel, Manuel Spínola írta: > > Dear list members, > > > > I am trying to download CMIP6 climate model data

[R-sig-Geo] geodata package: CMIP6 climate model data downloading error

2023-01-24 Thread Manuel Spínola
0s_bioc_ACCESS-CM2_ssp126_2021-2040_tile-28.tif ' download failed I cannot even download the data using the worldclim website. -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin.

[R-sig-Geo] How to use st_rasterize (stars) for a categorical field like terra does?

2022-09-30 Thread Manuel Spínola
Dear list members, When using the terra package: f <- system.file("ex/lux.shp", package="terra") v <- vect(f) r <- rast(v, ncols=75, nrows=100) z <- rasterize(v, r, "NAME_2") plot(z) lines(v) How can I obtain the same result using st_rasterize from

Re: [R-sig-Geo] How to filter a spatial object in sf

2021-06-30 Thread Manuel Spínola
which touch too. To avoid this behaviour you can specify > the .predicate argument to another option like st_within as in: > > nc_filter <- st_filter(nc, nc_smaller, .predicate = st_within) > > Hope this helps. > > All the best, > > Matt > > On 2021-06-30 16:52, M

[R-sig-Geo] How to filter a spatial object in sf

2021-06-30 Thread Manuel Spínola
ID %in% c(1825, 1827, 1828)) nc_filter <- st_filter(nc, nc_smaller) The nc_smaller has 3 features, but the nc_filter ended with 8 features. I was expecting to have on 3 features in the nc_filter. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo

[R-sig-Geo] How to avoid that st_intersection drop the empty polygons that do not intersect the other layer?

2021-06-23 Thread Manuel Spínola
columns from your shapes dplyr::summarize(len_m = sum(len_m)) but the grid has 613 features and the final object has 556 because some of the hexagons do not have roads inside. How can I keep the 615 hexagons in the final object even those one having a value of 0 road? -- *Manuel Spínola, Ph.D

Re: [R-sig-Geo] stars st_transform gives NA to the offset and delta parameters

2021-06-07 Thread Manuel Spínola
1 a las 1:02, Edzer Pebesma () escribió: > > > On 07/06/2021 01:16, Manuel Spínola wrote: > > Dear list members, > > > > When using st_transform in a stars object the offset and delta parameters > > become NA, is this an expected behavior? > > Yes, it also

[R-sig-Geo] stars st_transform gives NA to the offset and delta parameters

2021-06-06 Thread Manuel Spínola
Dear list members, When using st_transform in a stars object the offset and delta parameters become NA, is this an expected behavior? geomatrix = system.file("tif/geomatrix.tif", package = "stars") x = read_stars(geomatrix) new = st_crs(4326) y = st_transform(x, new) y

[R-sig-Geo] landmap package, cannot get the model error following the binomial variable example

2021-06-05 Thread Manuel Spínola
;,"TIRAST6")] mB <- train.spLearner(eberg["Parabraunerde"], covariates=X, family=binomial(), cov.model = "nugget", parallel=FALSE) eberg.Parabraunerde <- predict(mB) eberg.Parabraunerde$pred -- *Manuel Spínola, Ph.D.* Instituto Internacional en Con

Re: [R-sig-Geo] Using facet_wrap with geom_stars for a stacked raster

2021-06-01 Thread Manuel Spínola
Thank you very much Edzer. El mar, 1 jun 2021 a las 11:59, Edzer Pebesma (< edzer.pebe...@uni-muenster.de>) escribió: > > > > On 01/06/2021 19:15, Manuel Spínola wrote: > > Thank you very much Edzer. > > > > What about the labels of the stripes? > > &g

Re: [R-sig-Geo] Using facet_wrap with geom_stars for a stacked raster

2021-06-01 Thread Manuel Spínola
raster 02") ggplot() + geom_stars(data = s2) + facet_wrap(~attributes, labeller = labeller(attributes = n)) + coord_equal() El mar, 1 jun 2021 a las 10:54, Edzer Pebesma (< edzer.pebe...@uni-muenster.de>) escribió: > > > On 01/06/2021 18:43, Manuel Spínola wrote: > >

[R-sig-Geo] Using facet_wrap with geom_stars for a stacked raster

2021-06-01 Thread Manuel Spínola
uot;, package="raster")) s1 <- c(r, r*2) ggplot() + geom_stars(data = s1) + coord_equal() + facet_wrap(~ band) -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@un

Re: [R-sig-Geo] R crashes when reading geopackage files with st_read (sf package) in macOS

2021-03-31 Thread Manuel Spínola
, Manuel El mié, 31 mar 2021 a las 13:07, Roger Bivand () escribió: > On Wed, 31 Mar 2021, Manuel Spínola wrote: > > > Thank you very much Roger. > > > > I reinstalled the sf and rgdal packages from binaries and the problem > > persisted. > > This must be eith

Re: [R-sig-Geo] R crashes when reading geopackage files with st_read (sf package) in macOS

2021-03-31 Thread Manuel Spínola
045 Bergen, Norway > roger.biv...@nhh.no > > > ________ > Fra: R-sig-Geo på vegne av Manuel > Spínola > Sendt: onsdag 31. mars 2021 17.55 > Til: r-sig-geo > Emne: [R-sig-Geo] R crashes when reading geopackage files with st_read (sf &g

[R-sig-Geo] R crashes when reading geopackage files with st_read (sf package) in macOS

2021-03-31 Thread Manuel Spínola
) world = st_read(system.file("shapes/world.gpkg", package = "spData")) -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfon

Re: [R-sig-Geo] Not perfect match between the bounding box for a EPSG when projected (st_bbox from sf)

2021-03-26 Thread Manuel Spínola
Thank you very much Roger. Manuel El vie, 26 mar 2021 a las 8:47, Roger Bivand () escribió: > On Thu, 25 Mar 2021, Manuel Spínola wrote: > > > Dear list members, > > > > I am working with the epsg 5367. > > > > The information for this epsg according to thi

[R-sig-Geo] Not perfect match between the bounding box for a EPSG when projected (st_bbox from sf)

2021-03-25 Thread Manuel Spínola
ature Geometry type: POLYGON Dimension: XY Bounding box: xmin: -218962 ymin: 237951.9 xmax: 785959.7 ymax: 1309622 Projected CRS: CR05 / CRTM05POLYGON ((-218962 239233.5, 785959.7 237951.9, ... -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvest

Re: [R-sig-Geo] How to identify the different discrete classes from a raster of land cover data (tif).

2021-03-02 Thread Manuel Spínola
class labels are not literally 1-23 but are 23 labels selected from the > range of 0-255. You could do a brief check with ... > > table(r[]) > > Cheers, > Ben > > > > On Tue, Mar 2, 2021 at 12:15 PM Manuel Spínola > wrote: > >> Dear list members, >&

[R-sig-Geo] How to identify the different discrete classes from a raster of land cover data (tif).

2021-03-02 Thread Manuel Spínola
different discrete classes included in the raster representing each land cover type. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706

Re: [R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-11 Thread Manuel Spínola
;kppm'. > > It is also extensively documented in Chapter 12 of the spatstat book ( > book.spatstat.org) > > Adrian Baddeley > -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA m

Re: [R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-11 Thread Manuel Spínola
> wrote: > >> A way out of this may be to make a local copy of the lgcp sources, >> remove the rpanel dependency from DESCRIPTION, and install it from >> there. You won't get the functions that need rpanel, but those might not >> be essential. >> >> O

Re: [R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-11 Thread Manuel Spínola
u won't get the functions that need rpanel, but those might not > be essential. > > On 09/02/2021 20:09, Manuel Spínola wrote: > > Thank you very much Edzer. > > > > I tried to install lgcp, but I got an error message regarding BWidget. > > I think that Bw

Re: [R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-09 Thread Manuel Spínola
9 feb 2021 a las 12:51, Edzer Pebesma (< edzer.pebe...@uni-muenster.de>) escribió: > Have you tried package lgcp? > > On 09/02/2021 17:26, Manuel Spínola wrote: > > Dear list members, > > > > I would like to know of any R package that can be used for mod

[R-sig-Geo] Species distribution modeling with presence-only data using log-Gaussian Cox process

2021-02-09 Thread Manuel Spínola
Dear list members, I would like to know of any R package that can be used for modeling species distribution with presence-only data using log-Gaussian Cox process. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado

Re: [R-sig-Geo] Accurate spatial database for country administrative boundaries

2020-12-02 Thread Manuel Spínola
est official country > boundaries: > https://data.humdata.org/ > > --Mel. > > > On 12/1/20 5:34 PM, Manuel Spínola wrote: > > Thank you very much Diego. Don´t worry. > > El mar, 1 dic 2020 a las 10:32, Diego Hernangómez Herrero > () escribió: > > > My mis

Re: [R-sig-Geo] Accurate spatial database for country administrative boundaries

2020-12-01 Thread Manuel Spínola
t;> >> > My two cent: 'giscoR’ package can also be an option. The source of the >> > file is Eurostat and you can get the data on 5 different resolution >> levels: >> > >> > >> > >> https://ec.europa.eu/eurostat/web/gisco/geodata/refe

Re: [R-sig-Geo] Accurate spatial database for country administrative boundaries

2020-12-01 Thread Manuel Spínola
t; >> >> https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/countries >> >> >> El El mar, 1 dic 2020 a las 17:19, Manuel Spínola >> escribió: >> >>> Thank you very much Edzer. >>> >>> I

Re: [R-sig-Geo] Accurate spatial database for country administrative boundaries

2020-12-01 Thread Manuel Spínola
a.com/ - it looks like > there's more information about its origins and processing that went on > than behind GADM. > > On 12/1/20 4:26 PM, Manuel Spínola wrote: > > Dear list members, > > > > I am looking for a global accurate spatial database for countries'

[R-sig-Geo] Accurate spatial database for country administrative boundaries

2020-12-01 Thread Manuel Spínola
other spatial database for administrative boundaries accessible from R, so I can compare and decide which one is the most accurate of the open access spatial database for the countries I am interested? Thank you very much in advance. Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacion

Re: [R-sig-Geo] rgdal release candidate 1.5-9 rev. 1000 ready for testing

2020-06-05 Thread Manuel Spínola
Thank you very much Ista. Manuel El vie., 5 jun. 2020 a las 18:44, Ista Zahn () escribió: > On Fri, Jun 5, 2020 at 7:47 PM Manuel Spínola > wrote: > > > > Dear list members, > > > > Sorry for the confusion, but with all these suggestions, what is the way > to

Re: [R-sig-Geo] rgdal release candidate 1.5-9 rev. 1000 ready for testing

2020-06-05 Thread Manuel Spínola
e-mail: roger.biv...@nhh.no > > https://orcid.org/-0003-2392-6140 > > https://scholar.google.no/citations?user=AWeghB0J&hl=en > > > > _______ > > R-sig-Geo mailing list > > R-sig-Geo@r-project.org > > https

Re: [R-sig-Geo] rgdal release candidate 1.5-9 rev. 1000 ready for testing

2020-06-05 Thread Manuel Spínola
edictably for > years without significant modification (unfortunately it seems that > notarization has defeated Kyngchaos, which had worked well for years but > no longer). > > Roger > > On Fri, 5 Jun 2020, Manuel Spínola wrote: > > > Thank you very much Thiago. > >

Re: [R-sig-Geo] rgdal release candidate 1.5-9 rev. 1000 ready for testing

2020-06-05 Thread Manuel Spínola
0 > Phone: (831)-420-3666 > Fax: (831) 420-3980 > e-mail: roy.mendelss...@noaa.gov www: https://www.pfeg.noaa.gov/ > > "Old age and treachery will overcome youth and skill." > "From those who have been given much, much will be expected" > "the arc of th

Re: [R-sig-Geo] How can I update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0

2020-05-24 Thread Manuel Spínola
t; You can solve any doubt through the Github issue page too. I hope you find > it useful. > > Best regards, > > Alberto Lázaro López > about.me/alazarolop > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https

Re: [R-sig-Geo] How can I update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0

2020-05-21 Thread Manuel Spínola
ew community to sort this out. > > Best, > Ista > > [1] https://formulae.brew.sh/formula/gdal > [2] https://github.com/Homebrew/homebrew-core/pull/46817 > > On Thu, May 21, 2020 at 4:50 PM Manuel Spínola > wrote: > > > > Thank you very much Ista. > > &

Re: [R-sig-Geo] How can I update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0

2020-05-21 Thread Manuel Spínola
:~ manuelspinola$ El jue., 21 may. 2020 a las 13:51, Ista Zahn () escribió: > I don't have a Mac myself, but both https://r-spatial.github.io/sf/ > and https://github.com/rspatial/terra recommend installing gdal etc. > via homebrew. > > Best, > Ista > > On Thu, May 21, 2

Re: [R-sig-Geo] How can I update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0

2020-05-21 Thread Manuel Spínola
Thank you very much Rich. Manuel El jue., 21 may. 2020 a las 7:22, Rich Shepard () escribió: > On Thu, 21 May 2020, Manuel Spínola wrote: > > > I am working with R 4.0.0 on MacOS Catalina 10.15.4. > > When I load, for example, the library sf, I realized that I have older &g

[R-sig-Geo] How can I update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0

2020-05-21 Thread Manuel Spínola
DAL 3.0.4 and PROJ 7.0.0 Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706 - 4662 Personal website: Lobito de río <

Re: [R-sig-Geo] unable to remove spatial autocorrelation from a binomial gam

2020-04-12 Thread Manuel Spínola
tocorrelation > >> from a binomial gam? > >> > >> Thank you very much. > >> Kind regards, > >> Carlos > >> -- > >> Carlos Bautista > >> Institute of Nature Conservation > >> Polish Academy of Sciences > >>

[R-sig-Geo] Problem with function predict in package GSIF

2019-09-30 Thread Manuel Spínola
tried with same data set before and it works, but not now. I also tried with similar data sets and it works. Any idea what could be causing the problem? Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-

Re: [R-sig-Geo] landmap package, predict method gave an error of memory exhausted

2019-09-16 Thread Manuel Spínola
assification or regression type > problem? > > T. Hengl > > On 9/16/19 4:01 PM, Manuel Spínola wrote: > > Dear list members, > > > > I am fitting an Ensemble Machine Learning with the R package landmap, > using > > the function train.spLearner, the resultin

[R-sig-Geo] landmap package, predict method gave an error of memory exhausted

2019-09-16 Thread Manuel Spínola
. Using R 3.6.1 MacOS, 16GB of ram pred_co <- predict(m_co) Error: vector memory exhausted (limit reached?) Error during wrapup: vector memory exhausted (limit reached?) -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apart

Re: [R-sig-Geo] Problem of vector allocation in GSIF package

2019-09-13 Thread Manuel Spínola
uot;)Fitting a Quantile Regression Forest model...Shapiro-Wilk > normality test and Anderson-Darling normality test report probability of < > .05 indicating lack of normal distribution for residualsFitting a 2D > variogram...Saving an object of class 'gstatModel'...> rk_rf_a

Re: [R-sig-Geo] Problem of vector allocation in GSIF package

2019-09-13 Thread Manuel Spínola
of large objects > by default. > > > On 9/13/19 5:38 PM, Manuel Spínola wrote: > > Dear list members, > > > > I am fitting a model with the GSIF package, but I ran into a problem of > > vector allocation. Is there any way to solve this problem? See code and >

[R-sig-Geo] Problem of vector allocation in GSIF package

2019-09-13 Thread Manuel Spínola
on for residualsFitting a 2D > variogram...Saving an object of class 'gstatModel'...> rk_rf_ac_pred <- > GSIF::predict(rk_rf_ac, covar_finales_sp, predict.method = "KED")Error: > cannot allocate vector of size 19.4 Gb Thank you very much, Manuel -- *Man

[R-sig-Geo] Variance explained with the GSIF package

2018-06-25 Thread Manuel Spínola
ective bytes: 1215 Compression method : gzip -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706 - 4662 Personal website

Re: [R-sig-Geo] Compatibility between sf and raster

2017-08-29 Thread Manuel Spínola
r than redo raster or make raster and sf > compatible. Stars will consider compatibility with raster, but don't > hold your breath. > > stars development will start soon. > > [1] https://github.com/r-spatial/stars > > On 29/08/17 17:03, Manuel Spínola wrote: > > De

[R-sig-Geo] Compatibility between sf and raster

2017-08-29 Thread Manuel Spínola
onglat +datum=NAD27 +no_defs > raster(nc) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘raster’ for signature ‘"sf"’ -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional

[R-sig-Geo] Does ggmap work with sf objects through geom_sf?

2017-03-12 Thread Manuel Spínola
c) Error in eval(expr, envir, enclos) : object 'lon' not found -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706 - 4662

Re: [R-sig-Geo] Making an hexagonal grid using spsample

2017-03-06 Thread Manuel Spínola
Thank you very much Tim. Manuel 2017-03-06 14:20 GMT-06:00 Tim Keitt : > > On Mon, Mar 6, 2017 at 2:18 PM, Tim Keitt wrote: > >> You might search the list > > > https://stat.ethz.ch/pipermail/r-sig-geo/2007-March/001791.html > > http://www.keittlab.org/

Re: [R-sig-Geo] Making an hexagonal grid using spsample

2017-03-06 Thread Manuel Spínola
d = T)[1:10] > > > > > Since you asked me about getGridLayer via PM, this function of the > cartography package uses spsample with its cellsize argument, maybe I > should add a "targeted area" argument... > > ___ > R

Re: [R-sig-Geo] [FORGED] Re: Making an hexagonal grid using spsample

2017-03-04 Thread Manuel Spínola
do >> >> xxx <- hextess(W,s,trim=FALSE) >> unique(sapply(tiles(xxx),area.owin)) >> >> you get 0.42 --- i.e. 0.42 square kilometres, or 42 hectares. >> >> cheers, >> >> Rolf >> >> > > -- > Marcelino de la Cruz Rot > Depto

[R-sig-Geo] Making an hexagonal grid using spsample

2017-03-03 Thread Manuel Spínola
.19 Both results are wrong, because I was expecting close to 1. How can I make a spatial grid of 1 ha (or other size) in R? Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin..

Re: [R-sig-Geo] [FORGED] spsample: defining the size of the cell in an hexagonal grid

2017-03-02 Thread Manuel Spínola
Thank you very much Rolf. Manuel 2017-03-01 2:03 GMT-06:00 Rolf Turner : > On 01/03/17 17:33, Manuel Spínola wrote: > >> Dear list members, >> >> How can I define the size in hectares of the cell when doingan hexagonal >> grid with the function spsample. What i

[R-sig-Geo] spsample: defining the size of the cell in an hexagonal grid

2017-02-28 Thread Manuel Spínola
~x+y plot(meuse.grid) HexPts <-spsample(meuse.grid, type="hexagonal", cellsize=1000) HexPols <- HexPoints2SpatialPolygons(HexPts) plot(HexPols[meuse.grid,], add=TRUE) -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad N

Re: [R-sig-Geo] How to draw a legend when plotting sf (simple feature) objects

2017-02-26 Thread Manuel Spínola
Thank you very much Edzer, it works for me: > ggplot(nc) + geom_sf(aes(fill = SID79)) Warning message: st_crs<- : replacing crs does not reproject data; use st_transform for that 2017-02-26 11:46 GMT-06:00 Edzer Pebesma : > > > On 26/02/17 13:23, Manuel Spínola wrote: > &

[R-sig-Geo] How to draw a legend when plotting sf (simple feature) objects

2017-02-26 Thread Manuel Spínola
Dear list members, How can I draw a legend when plotting an sf (simple feature) object. nc = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE) plot(nc["SID79"]) Best, -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo

Re: [R-sig-Geo] Colors for factors in leaflet r

2017-02-12 Thread Manuel Spínola
e) <- CRS("+init=epsg:28992") >> WGS84 <- CRS("+proj=longlat +ellps=WGS84") >> meuse <- spTransform(meuse, WGS84) >> >> pal <- colorFactor(palette = c("red", "blue", "green"), levels = >> meuse$soil) >>

[R-sig-Geo] Colors for factors in leaflet r

2017-02-10 Thread Manuel Spínola
;, "Type 2", "Type 3"), title="Soil type") Duplicate levels detected Show Traceback Error in addLegend(., "topright", color = ~pal(soil), labels = c("Type 1", : 'colors' and 'labels' must be of the same length Best, Man

Re: [R-sig-Geo] [FORGED] Selecting spatial points within spatial line segments

2017-02-09 Thread Manuel Spínola
Thank you very much Rolf. Manuel 2017-02-08 17:06 GMT-06:00 Rolf Turner : > On 09/02/17 02:56, Manuel Spínola wrote: > >> Dear list members, >> >> I have a spatial line (a road) segmented in 500-meters segments. I also >> have spatial points (roadkills) and I wan

[R-sig-Geo] Selecting spatial points within spatial line segments

2017-02-08 Thread Manuel Spínola
, Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol...@gmail.com Teléfono: (506) 8706 - 4662 Personal website: Lobito de río <https://sites.google.com/site/lobitode

Re: [R-sig-Geo] Landscape connectivity in R

2016-12-13 Thread Manuel Spínola
en implemetation of a GRASS cost analysis to > estimate the movement patterns and connectivity corridors of running beetle > occurrences in high asia. > > cheers Chris > > > > > On 13.12.2016 21:00, Jérome Mathieu wrote: > >> Hi Manuel, >> >> Perhaps t

Re: [R-sig-Geo] Landscape connectivity in R

2016-12-13 Thread Manuel Spínola
Forrest Stevens : > Check out sdmtools if fragstats like patch/class metrics are what you're > looking for: https://cran.r-project.org/web/packages/SDMTools/index.html > > Sincerely, > Forrest > > On Tue, Dec 13, 2016 at 1:29 PM Manuel Spínola > wrote: > >> D

[R-sig-Geo] Landscape connectivity in R

2016-12-13 Thread Manuel Spínola
Dear list members, Is there any R package, besides grainscape, to assess landscape connectivity? Best, Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspin...@una.cr mspinol

Re: [R-sig-Geo] Plotting simple features sf with ggplot2

2016-12-07 Thread Manuel Spínola
Thank you very much Michael. It works. Manuel 2016-12-07 16:43 GMT-06:00 Michael Sumner : > On Thu, Dec 8, 2016, 04:21 Edzer Pebesma > wrote: > > > > On 07/12/16 17:49, Manuel Spínola wrote: > > Dear list members, > > > > Is there a way to plot a simple

Re: [R-sig-Geo] Plotting simple features sf with ggplot2

2016-12-07 Thread Manuel Spínola
Thank you very much Edzer. Manuel 2016-12-07 11:21 GMT-06:00 Edzer Pebesma : > > > On 07/12/16 17:49, Manuel Spínola wrote: > > Dear list members, > > > > Is there a way to plot a simple features (sf) multipolygon (imported > > shapefile) using ggplot2? > >

[R-sig-Geo] Plotting simple features sf with ggplot2

2016-12-07 Thread Manuel Spínola
Dear list members, Is there a way to plot a simple features (sf) multipolygon (imported shapefile) using ggplot2? Similar to plotting a SpatialPolygonDataFrame with ggplot2 using the function fortify first to convert the SPDF to a data frame. Best, Manuel -- *Manuel Spínola, Ph.D

Re: [R-sig-Geo] v.split.length (GRASS) in R

2016-11-24 Thread Manuel Spínola
Thank you very much Roger. 2016-11-24 8:09 GMT-06:00 Roger Bivand : > On Thu, 24 Nov 2016, Manuel Spínola wrote: > > Thank you very much Roger. >> >> Sorry about that, I took the name from the Processing toolbox in QGIS and >> I >> assumed (wrongly) that was t

Re: [R-sig-Geo] v.split.length (GRASS) in R

2016-11-24 Thread Manuel Spínola
; Regarding this issue, we have already notified the QGIS developers, and > they told us that they fixed the issue. Hence, with the release of the next > QGIS patch release, the manual adjustment of the Python code should no > longer be necessary. > > Best regards, > > Jannes > >

Re: [R-sig-Geo] v.split.length (GRASS) in R

2016-11-24 Thread Manuel Spínola
ensure that the output of R-only approaches > matches the desired output object. > > Roger > > > On Wed, 23 Nov 2016, Manuel Spínola wrote: > > Dear list members, >> >> Is it possible to run v.split.length from GRASS in R? Or is there anyway >> to >>

Re: [R-sig-Geo] v.split.length (GRASS) in R

2016-11-23 Thread Manuel Spínola
qgis_env = qgis_env) > length(Sl) # 2 line objects > length(out) # 9 line objects > # Have a look at the output > plot(out, col = rep(c("blue", "green", "black"), 3)) > > Cheers, > > Jannes > > _

  1   2   >