Re: [R-sig-Geo] ordering points into a line

2024-06-06 Thread Ben Tupper
Interesting - thanks for passing that along. On Thu, Jun 6, 2024 at 6:32 AM Adrian Baddeley wrote: > > Ben Tupper writes: > > > This dataset provides an interesting spatial puzzle because the points > > for a specific wall on a given date are not ordered. Assuming that

Re: [R-sig-Geo] ordering points into a line

2024-06-05 Thread Ben Tupper
this is helpful! > > Cheers, > > -dewey > > [1] https://gist.github.com/paleolimbot/0be47836de5008f308959923dac02c5b > > On 2024-06-05 13:20, Ben Tupper wrote: > > Hello, > > > > NOAA's Ocean Prediction Center (https://ocean.weather.gov/) serves the > >

[R-sig-Geo] ordering points into a line

2024-06-05 Thread Ben Tupper
uot;)), "POINT") plot(sf::st_geometry(x), type = "b", axes = TRUE, reset = FALSE) plot(dplyr::slice(p,1), col = "orange", add = TRUE, pch = 2, cex = 1.5) plot(dplyr::slice(p,nrow(x)), col = "orange", add = TRUE, pch = 6, cex = 1.5)

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

2024-01-21 Thread Ben Tupper
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 On Sat, Jan 20, 2024 at 9:43 AM Manuel Spínola wrote: > > Dear list members, > > I am looking for

Re: [R-sig-Geo] Counting points in cells and ploting only cells containing points

2023-11-28 Thread Ben Tupper
Oh, that's an interesting approach; I haven't seen `count()` used like that - nice!. Here's an alternative that uses stars as a raster container, and the `st_cells()` function to determine which cell each point belongs to. ### START suppressPackageStartupMessages({ library(stars) library(sf)

Re: [R-sig-Geo] Mapping census tracts with leaflet(): "sf layer has inconsistent datum" error

2023-05-31 Thread Ben Tupper
Hi, This is a great place to ask - and nice reproducible code! You have a two issues as far as I can see. First it seems you have dropped the "4" in "WGS84". And second you want to transform rw_pop, not the output of leaflet(). The following works for me. ## Start library(tidyverse)

Re: [R-sig-Geo] Combine two polygons

2023-04-28 Thread Ben Tupper
l", and > extract its slot. If this makes sense, sp could use terra (and > raster, needed for coercion) rather than sf where workflows did not > otherwise use sf. Very grateful for input here or > https://github.com/r-spatial/evolution/issues. > > Roger > > > > >

Re: [R-sig-Geo] Combine two polygons

2023-04-27 Thread Ben Tupper
Hi, You might try st_union() from the sf package https://r-spatial.github.io/sf/articles/sf3.html#geometrical-operations On Thu, Apr 27, 2023 at 5:37 PM Miluji Sb wrote: > Dear all, > > I am using the country-level shapefile from GADM. I would like to merge > Cyprus and North Cyprus into one

Re: [R-sig-Geo] r-sig-geo@r-project.org

2022-06-30 Thread Ben Tupper
ID > base_lines <- SpatialLinesDataFrame(SpatialLines(base_lines),base) > sflines<-st_as_sf(base_lines) > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org &g

Re: [R-sig-Geo] A leaflet question

2022-06-01 Thread Ben Tupper
click" from a regular plot. > > Erin Hodgess, PhD > mailto: erinm.hodg...@gmail.com > > > On Wed, Jun 1, 2022 at 2:16 PM Ben Tupper wrote: > >> Hi Erin, >> >> I think it has to do with the naming convention. If your map object is >> called "pl

Re: [R-sig-Geo] Migrating from proj strings to WKT/EPSG

2021-11-22 Thread Ben Tupper
",8806]], > #> PARAMETER["False northing",0, > #> LENGTHUNIT["metre",1], > #> ID["EPSG",8807]]], > #> CS[Cartesian,2], > #> AXIS["(E)",east, > #> ORDER[1], > #&

[R-sig-Geo] Migrating from proj strings to WKT/EPSG

2021-11-22 Thread Ben Tupper
natural origin",0.667, #> SCALEUNIT["unity",1], #> ID["EPSG",8805]], #> PARAMETER["False easting",90, #> LENGTHUNIT["metre",1], #> ID["EPSG",8806]], #> PA

Re: [R-sig-Geo] Binding columns of pixel values

2021-09-09 Thread Ben Tupper
mail.com * > > > *skype: enoch.ampadu* > *The highest evidence of nobility is self-control*. > > *A simple act of kindness creates an endless ripple*. > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list &g

Re: [R-sig-Geo] question on the use of Leaflet for plotting points and rater GeoTIFF

2021-08-13 Thread Ben Tupper
ddLegend(pal = pal, values = values(raster), title = "Temperature", > opacity = 9) # ,labFormat = labelFormat(transform = function(x) sort(x, > decreasing = TRUE))) > > Thanks a lot again for your help. > Kind regards, > Gabriel > > > On Thu, Aug 12, 2021 at 5:07

Re: [R-sig-Geo] question on the use of Leaflet for plotting points and rater GeoTIFF

2021-08-12 Thread Ben Tupper
olution that can enable this task? > > Thanks for your help. > > Kind regards > Gabriel > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo >

Re: [R-sig-Geo] Encoding of attributes in SpatVector (terra package)

2021-06-21 Thread Ben Tupper
ow how to change encoding for attributes in a SpatVector > > (terra package)? > > > > library(sf) library(terra) > > # importing a geojson file as sf object url <- > > > "https://data.montreal.ca/dataset/00bd85eb-23aa-4669-8f1b-ba9a000e3dd8/resource/e9b0f927-8f75-

Re: [R-sig-Geo] Encoding of attributes in SpatVector (terra package)

2021-06-15 Thread Ben Tupper
spv > <- vect(mtl) # while mtl.sf$NOM # displays French letters correctly, > mtl.spv$NOM # does not anymore Thanks, Tim > > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-pr

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

2021-03-02 Thread Ben Tupper
to de río < > https://sites.google.com/site/lobitoderio/> > Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/> > > [[alternative HTML version deleted]] > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org

Re: [R-sig-Geo] Crossing multiple raster to obtain a list of available values for each cell - LULCC package

2020-11-28 Thread Ben Tupper
normal. > > Best, > David > > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Ben Tupper Bigelow Laboratory for Ocean Science East Boothbay, Maine http://www.bigelo

Re: [R-sig-Geo] Restricting geographical space for SDM analyses in R

2020-11-16 Thread Ben Tupper
org/-0002-3911-0421 > http://www.mare-centre.pt/pt/user/8232 > > [[alternative HTML version deleted]] > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinf

Re: [R-sig-Geo] Create pixels neighborhood in a raster

2020-11-10 Thread Ben Tupper
and Spatial Statistics applied to Forest Entomology > Instituto Federal de Mato Grosso (IFMT) - Campus Caceres > Caixa Postal 244 (PO Box) > Avenida dos Ramires, s/n - Vila Real > Caceres - MT - CEP 78201-380 (ZIP code) > Phone: (+55) 65 99686-6970 / (+55) 65 3221-2674 > Lattes CV:

Re: [R-sig-Geo] Create pixels neighborhood in a raster

2020-11-09 Thread Ben Tupper
http://lattes.cnpq.br/1360403201088680 > OrcID: orcid.org/-0001-8232-6722 > ResearchGate: www.researchgate.net/profile/Alexandre_Santos10 > Publons: https://publons.com/researcher/3085587/alexandre-dos-santos/ > -- > > ___ > R-si

Re: [R-sig-Geo] "no applicable method" for focal() function in raster

2020-09-15 Thread Ben Tupper
Best, > > Jaime > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Ben Tupper Bigelow Laboratory for Ocean Science East

Re: [R-sig-Geo] Request for help about running a loop and reading .NC files

2020-03-23 Thread Ben Tupper
ot;NCFiles/",flist[i])) > mean1 <- ncvar_get(nc,attributes(nc$dim)$names[3]) > nc_close(nc) > > mean_chl_df <- melt(mean1) > trial.table.df <-as.data.frame(mean_chl_df) > > > write.csv(trial.table.df,paste0(Output,"/",tools::file_path_sans_ex

Re: [R-sig-Geo] R spatial follows GDAL and PROJ development

2020-03-18 Thread Ben Tupper
_ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Ben Tupper Bigelow Laboratory for Ocean Science West Boothbay Harbor, Maine http://www.bigelow.org/ https://eco.bigelow.org [[alternative HTML v

Re: [R-sig-Geo] How to find distance between grid cell and point that lies in specified radius?

2020-02-06 Thread Ben Tupper
e more familiar > please point out some functions in sf or even other packages that could be > helpful to solve my problem? > > Thanks in advance, > -- Thiago V. dos Santos > > Postdoctoral Research Fellow > Department of Climate and Space Science and Engineering > University

Re: [R-sig-Geo] indexing multi-layer rasters

2020-01-17 Thread Ben Tupper
the RasterStack. > > Have a nice weekend, > Ákos > > > 2020.01.17. 15:40 keltezéssel, Ben Tupper írta: > > Hi, > > > > Thanks for this. I think the root of my muddle is the mish-mash model > > of a raster that I have in my head. Depending upon what is most &g

[R-sig-Geo] indexing multi-layer rasters

2020-01-16 Thread Ben Tupper
s_3.5.1 yaml_2.2.0 Rcpp_1.0.3 codetools_0.2-15 # [7] grid_3.5.1 lattice_0.20-35 ### END -- Ben Tupper Bigelow Laboratory for Ocean Science West Boothbay Harbor, Maine http://www.bigelow.org/ https://eco.bigelow.org ___ R-sig-Geo m

Re: [R-sig-Geo] Help

2020-01-09 Thread Ben Tupper
lties to adapt it to my case. > I will be very happy when you will help my to adapt this R code (attached) > to my case. > You can find attached the you R code, my data file and my sahefile of > watershed. > > Best regards > > > Le jeu. 9 janv. 2020 à 17:47, Ben Tupper a écr

Re: [R-sig-Geo] Help

2020-01-09 Thread Ben Tupper
n_data_UTM at bbox[,]. > By the way, this is the pointfile I reconstructed. > You can find it attached to the mail. > > Thanks in advance > > Best regards > > > > Bakary > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.

Re: [R-sig-Geo] raster: stackApply problems..

2019-11-20 Thread Ben Tupper
ndex_2, index_3, index_1 > >> min values : 1.5, 3.5, 5.5 > >> max values : 1.5, 3.5, 5.5 > >> > >> There is no consistency with the names of the output and obscure > >> correspondence with the indices in the case of clusterR > >

Re: [R-sig-Geo] Selecting a range of longitude and latitudes

2019-04-18 Thread Ben Tupper
not understand why. > Thanks, and any help with this would be greatly appreciated! > ~Trav.~ > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinf

Re: [R-sig-Geo] [FORGED] Modifying the length of a matrix variable

2019-03-30 Thread Ben Tupper
out in respect of "the number of > cells". My mind-reading machine is in the repair shop. I strongly > suspect that your thoughts are confused. > > cheers, > > Rolf > > -- > Honorary Research Fellow > Department of Statistics > University of Auckla

Re: [R-sig-Geo] editing a correlogram

2019-03-16 Thread Ben Tupper
Diversidade > Universidade Federal do ABC - UFABC - Centro de Ciências Naturais e Humanas > > LED I - Laboratório de Evolução e Diversidade I - Bloco Delta, sala 202 > > Rua Arcturus, 3. Jardim Antares > 09606-070 São Bernardo do Campo - SP > > [[a

Re: [R-sig-Geo] Error in running Maxent within biomod2

2019-03-14 Thread Ben Tupper
gt; R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laborat

Re: [R-sig-Geo] converting raster to netcdf .nc with keeping CRS information

2019-02-12 Thread Ben Tupper
; > Thanks Ben for your suggestion. > > Adding *prj = TRUE *argument caused this error: > Error in ncdf4::ncvar_def(varname, varunit, list(xdim, ydim), > NAvalue(x), : > unused argument (prj = T) > > Ahmed > > On Tue, Feb 12, 2019 at 3:13 PM Ben Tupper

Re: [R-sig-Geo] converting raster to netcdf .nc with keeping CRS information

2019-02-12 Thread Ben Tupper
-file-with-keeping-crs-information>, > without a solution so far. > > Thanks > > ~ > Dr. Ahmed El-Gabbas, > Ocean Acoustics Lab, > Alfred-Wegener-Institut > Helmholtz-Zentrum für Polar und Meeresforschung > > My Website: ht

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Ben Tupper
> > Best, > Sohrab > > > On ‎Saturday‎, ‎February‎ ‎2‎, ‎2019‎ ‎03‎:‎38‎:‎25‎ ‎PM‎ ‎CET, Ben Tupper > wrote: > > > Hi, > > There is a whole world of options (sorry for the lame pun!), but I would > recommend checking out ROpenSci's rnaturaleart

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Ben Tupper
n deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://ww

Re: [R-sig-Geo] how to get an attribute from a raster layer

2018-12-28 Thread Ben Tupper
ta[[1]],main=substr(names(rst.data[[1]]),2,11)) > > Thanks a lot > > Antonio Olinto > Fisheries Institute > São Paulo, Brazil > > [[alternative HTML version deleted]] > > ___________ > R-sig-Geo mailing list > R-sig

Re: [R-sig-Geo] get data from nc file

2018-12-26 Thread Ben Tupper
uthBoundingCoordinate=-50; > EastBoundingCoordinate=180; > WestBoundingCoordinate=-180; > Origin=SOUTHWEST; > >history: 2018-12-26 17:57:56 GMT Hyrax-1.13.4 > https://disc2.gesdisc.eosdis.nasa.gov:443/opendap/TRMM_L3/TRMM_3B43.7/2008/3B43.20080101.7A.HDF.nc?precipi

Re: [R-sig-Geo] How to sum area of adjacent patches?

2018-11-23 Thread Ben Tupper
t; r3[r3>0]<-38 ; plot(r3, main="desired result") > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupp

Re: [R-sig-Geo] P-Tree

2018-09-03 Thread Ben Tupper
need know if exist any package that > contains p-tree algorithm. > > Thank’s you > > Enviado desde mi iPhone > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > Ben Tupper

Re: [R-sig-Geo] Adding great circle routes as polylines in Leaflet

2018-09-03 Thread Ben Tupper
he commencing, loading and discharging > regions respectively. I am quite clueless on how to go about achieving > this. This is what I have tried and failed: > > leaflet() %>% > addTiles() %>% > for(i in 1:6){ > >

Re: [R-sig-Geo] Transform hexagonal to raster - a wife's question

2018-07-30 Thread Ben Tupper
__ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org Ecological F

Re: [R-sig-Geo] Distance from not NA cells in a raster

2018-07-12 Thread Ben Tupper
Gregovich > Research Analyst > Alaska Department of Fish and Game > Division of Wildlife Conservation > 802 3rd Street > Douglas, AK 99824 > 907-465-4291 > ___ > > > [[alternative HTML version deleted]] > > ____

Re: [R-sig-Geo] What is the Coordinate Reference System?

2018-06-18 Thread Ben Tupper
netcdf files carry a grid (raster) with the x and y coordinates of >> grid cells (centers?) in another coordinate system, but the ones you >> mention below don't, as far as I can tell. I think what they mean by >> mentioning plate carree is just saying that this is a regular long/

Re: [R-sig-Geo] What is the Coordinate Reference System?

2018-06-15 Thread Ben Tupper
;> Skype: sergio_ibarra1 >> >> [[alternative HTML version deleted]] >> >> ___ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig

Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-11 Thread Ben Tupper
RUE > On Jun 11, 2018, at 3:54 PM, Roger Bivand wrote: > > On Mon, 11 Jun 2018, Ben Tupper wrote: > >> Hi, >> >> I used CRAN binary ala ... >> >>> install.packages("rgdal") >> >> I used that same for sp and rgeos.

Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-11 Thread Ben Tupper
Hi, I used CRAN binary ala ... > install.packages("rgdal") I used that same for sp and rgeos. Ben > On Jun 11, 2018, at 3:45 PM, Roger Bivand wrote: > > On Mon, 11 Jun 2018, Ben Tupper wrote: > >> Hi, >> >> I have been able to install a

Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-11 Thread Ben Tupper
93 55; e-mail: roger.biv...@nhh.no > <mailto:roger.biv...@nhh.no> > http://orcid.org/-0003-2392-6140 <http://orcid.org/-0003-2392-6140> > https://scholar.google.no/citations?user=AWeghB0J=en___

Re: [R-sig-Geo] Extract xy coordinates from raster of interesting neighborhood cells

2018-05-30 Thread Ben Tupper
6722 > Researchgate: www.researchgate.net/profile/Alexandre_Santos10 > LinkedIn: br.linkedin.com/in/alexandre-dos-santos-87961635 > Mendeley:www.mendeley.com/profiles/alexandre-dos-santos6/ > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-pr

Re: [R-sig-Geo] raster::clump not working?

2018-05-25 Thread Ben Tupper
glat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 > data source : in memory > names : clumps > values : 1, 1 (min, max) > > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo >

Re: [R-sig-Geo] Raster extract by polygon generating NAs

2018-05-16 Thread Ben Tupper
n IDs, which I know isn't true because that > doesn't happen in ArcGIS. > > Does anyone experienced the same issue? > > Thanks! > Joao > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.

Re: [R-sig-Geo] Substitute raster stack values based on matrix index

2018-04-10 Thread Ben Tupper
ized! > Greetings, -- Thiago V. dos Santos > Postdoctoral Research FellowDepartment of Climate and Space Science and > EngineeringUniversity of Michigan > > [[alternative HTML version deleted]] > > _______ > R-sig-Geo mailing list > R-sig-Geo@r-pr

Re: [R-sig-Geo] Change range of values of the legend

2018-02-09 Thread Ben Tupper
to the sender and delete it > completely from your computer system. > > -- > This message was scanned by Libra ESVA and is believed to be clean. > > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing l

Re: [R-sig-Geo] Reclassification of raster

2017-12-08 Thread Ben Tupper
ayer > dimensions : 6557, 4281, 28070517 (nrow, ncol, ncell) > resolution : 0.0002335903, 0.0001525088 (x, y) > extent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax) > coord. ref. : NA > data source : J:\LPD_data\gpp.tif > names : gpp > values : -0.893809, 5.8

Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Ben Tupper
gt;> >> Thanks >> >> -- >> Antônio Olinto Ávila da Silva >> Fisheries Institute >> São Paulo, Brasil >> >>[[alternative HTML version deleted]] >> >> ___________ >> R-sig-Geo mailing list

Re: [R-sig-Geo] Soil as predictor in SDM

2017-09-27 Thread Ben Tupper
zio Marchi > Skype ID: maurizioxyz > linux user 552742 > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow

Re: [R-sig-Geo] useR! spatial presentations

2017-08-22 Thread Ben Tupper
gt; On Aug 22, 2017, at 9:05 AM, Roger Bivand <roger.biv...@nhh.no> wrote: > > Edzer spotted: > > https://twitter.com/Geospex/status/899670406944231424 > > and I copied the link here - thanks to Geospex/anonymous ... > > On Tue, 22 Aug 2017, Ben Tupper wr

Re: [R-sig-Geo] useR! spatial presentations

2017-08-22 Thread Ben Tupper
92-6140 > https://scholar.google.no/citations?user=AWeghB0J=en > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences

Re: [R-sig-Geo] Error in basename(x) : path too long

2017-07-31 Thread Ben Tupper
> John > > > > > > On Sat, Jul 29, 2017 at 5:37 PM, Ben Tupper <btup...@bigelow.org> wrote: > Hi again, > > A late thought - I'm still on the first cups of coffee. > > It looks to me like you are iterating over a stack to select certain layers >

Re: [R-sig-Geo] Error in basename(x) : path too long

2017-07-29 Thread Ben Tupper
15/Annual/",substr(newlist[i],1,6),".tif",sep=''), > format="GTiff", overwrite=TRUE) > } > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > h

Re: [R-sig-Geo] Error in basename(x) : path too long

2017-07-29 Thread Ben Tupper
015/Annual/",substr(newlist[i],1,6),".tif",sep=''), > format="GTiff", overwrite=TRUE) > } > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://

Re: [R-sig-Geo] raster - unrotate?

2017-07-20 Thread Ben Tupper
t;mdsum...@gmail.com> wrote: > > > > > On Thu, 22 Jun 2017 at 21:28 Ben Tupper <btup...@bigelow.org> wrote: > Hi, > > Wow! A treasure from the past! > > Hmmm. I see what you mean; it might be best to snip-clip-and-smush from the > native presentation. We a

Re: [R-sig-Geo] raster - unrotate?

2017-06-26 Thread Ben Tupper
gt; > On Thu, 22 Jun 2017 at 21:28 Ben Tupper <btup...@bigelow.org > <mailto:btup...@bigelow.org>> wrote: > Hi, > > Wow! A treasure from the past! > > Hmmm. I see what you mean; it might be best to snip-clip-and-smush from the > native presentation. We

Re: [R-sig-Geo] Thresholds & reclassify raster

2017-06-22 Thread Ben Tupper
85, Inf, 3), ncol=3, byrow=TRUE) > gppnew_percentile <- reclassify(gppnew2, m) > > hist(as.matrix(gppnew_percentile)) > writeRaster(gppnew_percentile, > filename=paste("L:/NDVI_WGS84/gppnew_percentile",sep=''), > format="GTiff", overwrite=TRUE) > plot(gppnew_percent

[R-sig-Geo] raster - unrotate?

2017-06-22 Thread Ben Tupper
nverse or raster::rotate()? I could dig into the source of raster::rotate() to see how to code one up, but I hate like heck to reinvent the wheel. Thanks! Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigel

Re: [R-sig-Geo] Same mask for two rasters, but obtaining different extents in R

2017-03-16 Thread Ben Tupper
t;>> extent : 72.45833, 82.70833, 8.083333, 22.20833 (xmin, xmax, >>> ymin, ymax) >>> coord. ref. : +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs >>> +ellps=WGS84 +towgs84=0,0,0 >>> data source : in memory >>> names : ccl

Re: [R-sig-Geo] Same mask for two rasters, but obtaining different extents in R

2017-03-15 Thread Ben Tupper
t; names : cclgmbi5 > values : 187, 392 (min, max) > > > -- > Data Manager, > Barbara Han Lab, > Cary Institute of Ecosystem Studies, > 2801 Sharon Turnpike, Millbrook, NY 12545 > Lab Site : http://www.hanlab.science/ > Personal Site : http://ev

Re: [R-sig-Geo] Assign a unique ID number to each patch in a raster

2017-01-26 Thread Ben Tupper
here a way to assign a unique ID number to grouping cells that form a > patch for each class (i.e., values 1, 2, 3, 4, 5, 6, 7, 8, 9) ? > > Thanks a lot for your time > Nell > > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-projec

Re: [R-sig-Geo] Converting raster to a matrix

2017-01-24 Thread Ben Tupper
; > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelo

Re: [R-sig-Geo] Passing a custom function to raster::focal

2017-01-10 Thread Ben Tupper
r | Department of Environmental Science* > Radboud University | Heyendaalseweg 135 > 6525 AJ Nijmegen | The Netherlands > > +31 657020823 | +38761908392 > Skype: mirzacengic > <https://www.linkedin.com/in/mirzacengic> > > [[alternative HTML version de

Re: [R-sig-Geo] rasterVis::streamplot with colorkey

2016-12-23 Thread Ben Tupper
like it will get you to the results you want, though I haven't > worked it through your example. > HTH, > Chris > > > > On Wed, Dec 21, 2016 at 11:14 AM, Ben Tupper <btup...@bigelow.org > <mailto:btup...@bigelow.org>> wrote: > Hello, > > We ha

[R-sig-Geo] rasterVis::streamplot with colorkey

2016-12-21 Thread Ben Tupper
loaded via a namespace (and not attached): [1] zoo_1.7-13parallel_3.3.1hexbin_1.27.1 Rcpp_0.12.6 grid_3.3.1viridisLite_0.1.3 Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://ww

Re: [R-sig-Geo] GLOBE DEM in R?

2016-11-09 Thread Ben Tupper
ist >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> > -- > Dr. Michael Sumner > Software and Database Engineer > Australian Antarctic Division > 203 Channel Highway > Kingston Tasmania 7050 Australia > > [[alternative

Re: [R-sig-Geo] rasterVis, multiple plots and scalebar labels

2016-09-24 Thread Ben Tupper
y takes a list of arguments, including at and labels. This way it can > be differentiated from the at passed to levelplot itself. > > Tim > > On 24.09.2016 02:59, Ben Tupper wrote: >> Hi Melanie, >> >> Thanks for this. I tried that approach by adding layers

Re: [R-sig-Geo] rasterVis, multiple plots and scalebar labels

2016-09-23 Thread Ben Tupper
(): > > # Plot raster with no scalebar first > raster::plot(r, col=vector_of_colors, legend=FALSE, axes=FALSE) > > # Add a custom scalebar > raster::plot(r, legend.only=TRUE, > col=vector_of_colors, > axis.args=list(at=1:length(vector_of_labels), labels=vector_of_labels) &g

[R-sig-Geo] rasterVis, multiple plots and scalebar labels

2016-09-23 Thread Ben Tupper
Brewer_1.1-2 lattice_0.20-33 [5] raster_2.5-8sp_1.2-3 loaded via a namespace (and not attached): [1] zoo_1.7-13rgdal_1.1-10 parallel_3.3.1hexbin_1.27.1 [5] Rcpp_0.12.6 grid_3.3.1viridisLite_0.1.3 Ben Tupper Bigelow Laboratory for Ocean Sc

Re: [R-sig-Geo] modis download authentication

2016-09-08 Thread Ben Tupper
eo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org Report Gulf of Maine jellyfish sightings to jellyf...@bigelow.org

Re: [R-sig-Geo] Incorrect month order in zApply function

2016-07-29 Thread Ben Tupper
der? >> >> Greetings, -- Thiago V. dos Santos >> >> PhD student >> Land and Atmospheric Science >> University of Minnesota >> >> ___ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://urldefense.proofpoint.com/v2/url?u

Re: [R-sig-Geo] Incorrect month order in zApply function

2016-07-29 Thread Ben Tupper
ation in a different software and comparing >> the results, I came to realize that the order of months for the results by >> raster should, in fact, be Jan-Feb-Mar-Apr-May-Jun-Jul-Aug-Sep-Oct-Nov-Dec >> >> How can I control the way raster delivers the object names after using >> zApply, in order t

Re: [R-sig-Geo] Add +1 to current value of a cell in a raster in R

2016-07-11 Thread Ben Tupper
suggested as well, thanks a lot again ! > Best, > Giacomo > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive,

Re: [R-sig-Geo] Add +1 to current value of a cell in a raster in R

2016-07-10 Thread Ben Tupper
R> r[idx] <- r[idx] + 1 > R> image(r) > > From R's ?`[` : When indexing arrays by '[' a single argument 'i' can be a > matrix with as many columns as there are dimensions of 'x'; the result is > then a vector with elements corresponding to the sets of indices in each

Re: [R-sig-Geo] Add +1 to current value of a cell in a raster in R

2016-07-10 Thread Ben Tupper
ts the values of the cells stored in the vector to 1. > Does anybody know a faster way to do this ? Thanks in advance! > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tu

Re: [R-sig-Geo] Faster way to extract raster values using multiple polygons?

2016-04-06 Thread Ben Tupper
to extract the data for. > > I have the feeling that my code is not very optimized. > > Has anybody ever dealt with this amount of data in this kind of raster > operation? Is there any fastest way to achieve my expected result? > Thanks in advance, > -- Thiago V. dos Santos &g

Re: [R-sig-Geo] Calculate percent cover in a raster

2016-02-16 Thread Ben Tupper
V. dos Santos > > PhD student > Land and Atmospheric Science > University of Minnesota > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bige

Re: [R-sig-Geo] SST and chlorophyll data extraction in R

2015-09-18 Thread Ben Tupper
for you, you can also try https://github.com/btupper/obpgcrawler to simplify downloads from the Ocean Color resources using their THREDDS framework. Cheers, Ben > All the best, > > Antônio Olinto > > [[alternative HTML version deleted]] > > ______

Re: [R-sig-Geo] mapview 0.5.0

2015-09-14 Thread Ben Tupper
Best > Tim > > -- > # > Tim Appelhans > Department of Geography > Environmental Informatics > Philipps Universität Marburg > Deutschhausstraße 12 > 35032 Marburg (Paketpost: 35037 Marburg) > Germany > > Tel +49 (0) 6421 28-

Re: [R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-09-02 Thread Ben Tupper
tp://elsevier.com/locate/cageo/ > Spatial Statistics Society http://www.spatialstatistics.info > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Oc

[R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-08-28 Thread Ben Tupper
) Is it possible add a colorbar for the raster, R, as it might appear if I called... spplot(R) Session info is below my signature. Thanks! Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org sessionInfo() R version 3.2.2

Re: [R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-08-28 Thread Ben Tupper
) You simply need to make sure to pass the same specs to the spplot call to R. HTH Tim On 28.08.2015 16:33, Ben Tupper wrote: Hello, I have drawn on the following posting to draw a raster 'under' a set of polygons as shown in the image link below. The data used is available

Re: [R-sig-Geo] sp and latticeExtra: add colorbar for layer drawn 'under'

2015-08-28 Thread Ben Tupper
sure to pass the same specs to the spplot call to R. HTH Tim On 28.08.2015 16:33, Ben Tupper wrote: Hello, I have drawn on the following posting to draw a raster 'under' a set of polygons as shown in the image link below. The data used is available at the third link (about 650KB

Re: [R-sig-Geo] OSX, rgdal, GDAL drivers and HDF4

2015-06-03 Thread Ben Tupper
... ben@gale ~ $ brew install hdf4 Error: No available formula for hdf4 Searching formulae... Searching taps... homebrew/versions/hdf4 Cheers, Ben Cheers, Shaun On 6/2/15, 12:11 PM, Ben Tupper btup...@bigelow.org wrote: Hello, This is my attempt to look before I leap

[R-sig-Geo] OSX, rgdal, GDAL drivers and HDF4

2015-06-02 Thread Ben Tupper
/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rgdal_0.9-3 sp_1.1-0 loaded via a namespace (and not attached): [1] grid_3.2.0 lattice_0.20-31 Ben Tupper Bigelow Laboratory for Ocean Sciences 60

Re: [R-sig-Geo] summing rasters with a condition given by other rasters

2015-05-18 Thread Ben Tupper
at Nabble.com. ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org

Re: [R-sig-Geo] summing rasters with a condition given by other rasters

2015-05-10 Thread Ben Tupper
. ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org

Re: [R-sig-Geo] summing rasters with a condition given by other rasters

2015-05-10 Thread Ben Tupper
at Nabble.com. ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org

Re: [R-sig-Geo] summing rasters with a condition given by other rasters

2015-05-09 Thread Ben Tupper
/mailman/listinfo/r-sig-geo Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Pole centric map with Raster?

2015-04-01 Thread Ben Tupper
)), colorkey = list(height = 0.75, width = 1)) Tim On 27.03.2015 21:20, Ben Tupper wrote: Hello, I'm learning how to use Raster* objects and ultimately hope to draw rasters from a (north) polar perspective. I can do something like this using tiling in ggplot2: https

  1   2   >