Re: [R-sig-Geo] NASA's Black Marble monthly data: Reprojection isn't accurate

2023-09-09 Thread Michael Sumner
f you don't want to use NASA's website. I > am using R 4.3.1 and RStudio 2023.06.2+561. > > -- > Tziokas Nikolaos > Cartographer > > Tel:(+44)07561120302 > LinkedIn <http://linkedin.com/in/nikolaos-tziokas-896081130> > > [[alternative HTML version deleted]] > >

Re: [R-sig-Geo] Did I correctly convert my data from UTM zone 12 to 11?

2023-08-06 Thread Michael Sumner
ing wrong that could > result in inaccurate location data? Thanks! > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Sumner Software and Database Engineer Aust

Re: [R-sig-Geo] Mapping my own polygon?

2023-06-12 Thread Michael Sumner
play it, it says: > > > rw_base_blocks > stars object with 3 dimensions and 1 attribute > attribute(s), summary of first 1e+05 cells: > Min. 1st Qu. MedianMean 3rd Qu. Max. > X 0 217224 219.915 238 255 > dimension(s): > from to offsetdel

Re: [R-sig-Geo] Mapping my own polygon?

2023-06-11 Thread Michael Sumner
(171.7781 24.66314) > > > > I expected the POINTS to look like: > 1 POINT (-76.61246 39.35010) > > Can anyone suggest what I'm doing wrong? Thanks so much in advance. I've > worked on it all day today, without making much progress. > > -Kevin > >

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

2023-04-27 Thread Michael Sumner
> > > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Sumner Software and Database Engineer Australia

[R-sig-Geo] general GDAL engagement

2023-03-02 Thread Michael Sumner
proving the documentation, fixing bugs - if you're interested in this and want to discuss I'm also happy to help. The file I used in the example above is posted in the related GDAL PR (pull request): https://github.com/OSGeo/gdal/issues/6195 All the best! Mike -- Michael Sumner Software and Data

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

2023-02-10 Thread Michael Sumner
23 at 9:36 AM Michael Sumner wrote: > One way is to write it to a (COG) GeoTIFF with overviews ("pyramid", or > zoom levels) - these are pre-calculated copies of the highest resolution > data saved as lower resolution versions. > > Do you want this to generate a set

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

2023-02-10 Thread Michael Sumner
Institutional website: ICOMVIS > <http://www.icomvis.una.ac.cr/index.php/manuel> > Blog sobre Ciencia de Datos: https://mspinola-ciencia-de-datos.netlify.app > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mail

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

2022-11-09 Thread Michael Sumner
have a look at the output of printing nc_data, you are looking for dimensions that belong to a 2D (or higher) variable of interest . They can be called anything, but longitude, lon, x, etc are common. you can use ncdf4 functions to find them (without reading the output), but it's all stored in a

Re: [R-sig-Geo] Raster Data Management Advice

2022-10-09 Thread Michael Sumner
; Thanks, > Alex > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Sumner Software and Database Engineer Australian Antarctic

Re: [R-sig-Geo] Extract Lightning Flash Time series data

2022-09-10 Thread Michael Sumner
9nJNwPKlJaPlkHn_NGzmjMHMaoUevH04 > > Request if someone can guide me and thanking you in advance > sownalc > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https

Re: [R-sig-Geo] Does stars::st_extract preserve records order

2022-07-27 Thread Michael Sumner
lol, as a matrix - does it just? very clever On Wed, 27 July 2022, 22:36 Ben Tupper, wrote: > Hi, > > I have never observed st_extract() fail to preserve row order. > > Your workflow works well. The documentation for st_extract() mentions > that if you might see better performance for large

Re: [R-sig-Geo] How to export a GeoTIFF 8 bit raster

2022-01-31 Thread Michael Sumner
ify.app/ > > [[alternative HTML version deleted]] > > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Michael Sumner Software and Database Engineer Australian Antarctic Di

Re: [R-sig-Geo] Question on hierarchical data format 5 .h5 file format

2021-11-14 Thread Michael Sumner
ot see how to get to it and apply it to the layer. > >>> There is also another file with complementary data related to > >>> geolocation > >>> but how can I query it, and get the data for geolocation and apply it > to > >>> the raster layer?. > >>&

Re: [R-sig-Geo] Question on hierarchical data format 5 .h5 file format

2021-11-13 Thread Michael Sumner
try terra::rast() or stars::read_stars() on the file, both use gdal to interrogate and read. What you get depends on the structure of the files, variables interpreted as subdatasets. stars is more general but sees variables as 2D arrays with bands, terra calls these bands layers. Alternatively

Re: [R-sig-Geo] rgdal retirement

2021-09-21 Thread Michael Sumner
On Tue, Sep 21, 2021 at 8:04 PM Roger Bivand wrote: > On Sun, 19 Sep 2021, Michael Sumner wrote: > > > Hi Jean-Luc, if the packages mentioned don't yet cover it, you can get > > ogrInfo and ogrFIDs with a combination of vapour's vapour_read_names() > > (for FID), vapour_

Re: [R-sig-Geo] rgdal retirement

2021-09-19 Thread Michael Sumner
vance, > > Jean-Luc Dupouey > > -- > INRAE > UMR Silva > F-54280 Champenoux > France > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Su

Re: [R-sig-Geo] Create a ppp object in UTM with mixture of zones

2021-07-30 Thread Michael Sumner
> f1 <- ppm(out.ppp~1) > E <-envelope(f1, Kinhom, nsim = 19, global = TRUE, correction = "border") > plot(E) > > Best wishes, > > Alexandre > > > > > > > > > Em sexta-feira, 30 de julho de 2021 15:41:08 BRT, Michael Sumner < mdsum..

Re: [R-sig-Geo] Create a ppp object in UTM with mixture of zones

2021-07-30 Thread Michael Sumner
Don't use UTM, it's a legacy of a bygone era. Use a local custom projection such as laea: https://twitter.com/mdsumner/status/1136794870113218561?s=19 I know it's common advice, utm for projection choice but it's trash propagated by folks who should know better. Traversing zones for projection

Re: [R-sig-Geo] How to project a SpatExtent object?

2021-07-05 Thread Michael Sumner
> work on a SpatExtent either to convert a SpatExtent to a SpatVector. > > Thanks, > > Tim > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Sumner Softw

Re: [R-sig-Geo] How to define a local equidistant CRS

2021-06-14 Thread Michael Sumner
j=aeqd +R_A +lat_0=", YMiddle, > " +lon_0=", XMiddle, > " +x_0=0 +y_0=0 +ellps=WGS84",sep="") > > might not be future-proof. The second option could be a local UTM based > CRS, getting the zone from

Re: [R-sig-Geo] How to define a local equidistant CRS

2021-06-10 Thread Michael Sumner
Roger > > > Thanks again, > > Regards, Micha > > > > > -- > Micha Silver > Ben Gurion Univ. > Sde Boker, Remote Sensing Lab > cell: +972-523-665918 > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.

Re: [R-sig-Geo] Reprojection doubt

2020-11-05 Thread Michael Sumner
ta from layers for the shape? If yes, what I need to change to reproject > the shape for the correct CRS? > > Thanks. > > Pietro Andre Telatin Paschoalino > Doutorando em Ciências Econômicas da Universidade Estadual de Maringá - > PCE. > > [[alternative HTML

Re: [R-sig-Geo] subsetting terra::raster

2020-07-14 Thread Michael Sumner
gt; or > > Which(r>0,cells=T)->p > > cbind(xyFromCell(r,p),extract(r,p)) > > > > what’s the terra alternative? > > > > > > > > > > *From:* Michael Sumner > *Sent:* Tuesday, 14 July 2020 2:41 PM > *To:* Herr, Alexander (L, Black M

Re: [R-sig-Geo] subsetting terra::raster

2020-07-13 Thread Michael Sumner
: object of type 'S4' is not subsettable > > What am I doing wrong? > > Thanks > herry > > > in terra > > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael S

Re: [R-sig-Geo] Help with spTransform() function and final plot colors

2020-05-18 Thread Michael Sumner
Hi, your longlat coordinates are in the western hemisphere (-119, 39) but EPSG 27700 is designed for (and appropriate for some scenarios) somewhere in the UK. You need a local projection suitable for the area you are in. Look for an EPSG for your region, or maybe Albers conic or Lambert Azimuthal

Re: [R-sig-Geo] Help: assign crs to RasterBrick

2020-04-29 Thread Michael Sumner
You need to also setExtent() of the raster. That's the coordinates that the crs refers to xmin,xmax,ymin,ymax values in metres. Sometimes visual cues can be used to derive these from an image, sometimes the grid is a commonly used convention (a certain dimension, I.e. extent +resolution in a

Re: [R-sig-Geo] rgdal: problem reading a bigger raster dataset (R 4.0.0/3.6.3, Ubuntu 20.04)

2020-04-28 Thread Michael Sumner
> the next few days... > > So it definitely seems to be a problem of rgdal. It would be great if it > could still be solved. > > Best, > > Thorsten > > > > Am 27.04.2020 um 15:58 schrieb Michael Sumner: > > Try stars it worked for me on a t

Re: [R-sig-Geo] rgdal: problem reading a bigger raster dataset (R 4.0.0/3.6.3, Ubuntu 20.04)

2020-04-28 Thread Michael Sumner
g this thread could also benefit; > if I'm wrong, that would also be good to know. > > Roger > > > > > > Best, > > > > Thorsten > > > > > > > > Am 27.04.2020 um 15:58 schrieb Michael Sumner: > >> Try stars it worked for me on a

Re: [R-sig-Geo] rgdal: problem reading a bigger raster dataset (R 4.0.0/3.6.3, Ubuntu 20.04)

2020-04-27 Thread Michael Sumner
Try stars it worked for me on a test On Mon., 27 Apr. 2020, 23:54 Thorsten Behrens, wrote: > Roger, > > thanks a lot for your reply! > > I have 256GB RAM installed (mentioned it somewhere). And there, all is > fine when I run: > > rDemTest = raster(nrow = 48000, ncol = 72000, ext = extent(c(0,

Re: [R-sig-Geo] Extract VIIRS data in R

2020-03-18 Thread Michael Sumner
l resolution is supposed to be 750m but this shows 1°. What am I > doing wrong? Any help will be greatly appreciated. Thank you. > > Sincerely, > > Millu > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo

Re: [R-sig-Geo] reading an ESRI grid into R

2020-02-10 Thread Michael Sumner
; > The produces what looks like a raster with values. Is that all I need to > do or should I be reading these data another way? > Thanks > Julie > > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailin

Re: [R-sig-Geo] how to get the value of a pixel and its 8 surrounding pixels from points?

2019-11-06 Thread Michael Sumner
In raster try cellFromXY() and adjacent() which separates out the two tasks, find a cell and find cell neighbours On Wed., 6 Nov. 2019, 17:18 Bede-Fazekas Ákos, wrote: > Dear Cristabel, > function focal() of package raster is what you are searching for. > focal(x, w = matrix(1/9, ncol = 3,

Re: [R-sig-Geo] dissolve internal borders of polygons using st_union and group_by

2019-10-17 Thread Michael Sumner
Cool, thanks for clarifying  On Fri., 18 Oct. 2019, 02:48 Marta Rufino, wrote: > Thank you very much to all :) > > Barry+Roger contributions sorted the problem for the moment, although in > my mind there are still things to be understood. > Mike, yep, thank you for alerting me of

Re: [R-sig-Geo] dissolve internal borders of polygons using st_union and group_by

2019-10-17 Thread Michael Sumner
rnaturalearth is really dirty data, there's no way forward when things are so bad, only backing up can help. Do you need the whole world? Where do you need, and what scale? Your question suggests that finding the right data is the solution rather than battling with software. Cheers, Mike On

Re: [R-sig-Geo] Raster reprojection in R

2019-09-14 Thread Michael Sumner
really motivated to pursue before. Cheers, Mike. On Sat, Sep 14, 2019 at 7:49 PM Michael Sumner wrote: > You should set a target raster with the extent and dimensions required. > There are inherent limits in reprojection and heuristics won't always work. > Generally using a target r

Re: [R-sig-Geo] Raster reprojection in R

2019-09-14 Thread Michael Sumner
You should set a target raster with the extent and dimensions required. There are inherent limits in reprojection and heuristics won't always work. Generally using a target raster is much more efficient anyway. But, this is an intensive remodeling of the data, delivered in a projection for good

Re: [R-sig-Geo] Error in netCDF file: cells are not equally spaced

2019-08-22 Thread Michael Sumner
namespace (and not attached): > [1] compiler_3.5.1 rgdal_1.4-3 Rcpp_1.0.1 codetools_0.2-15 > ncdf4_1.16.1 > [6] grid_3.5.1 lattice_0.20-35 > > Best regards, > > Frederico > > [[alternative HTML version dele

Re: [R-sig-Geo] st_simplify outputs the input geometry with no simplification

2019-07-22 Thread Michael Sumner
3-15 DBI_1.0.0 > tools_3.5.3units_0.6-2Rcpp_1.0.1 grid_3.5.3 e1071_1.7-0.1 > [10] classInt_0.3-1 > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > htt

Re: [R-sig-Geo] Calculate the internal angles of polygons

2019-06-01 Thread Michael Sumner
There's code in trip for the angles, but arranging the underlying coords and expressing those in the right form will be the crux. st_coordinates gives what you need, or pure data frame from spbabel::sptable is what I'd start with. I'll take a look when I can. Cheers, Mike On Sat., 1 Jun. 2019,

Re: [R-sig-Geo] Plotting x and y values using data from two separate netCDF files in R

2019-03-26 Thread Michael Sumner
> > > I tried switching "ncfname" with "Model1", but I then receive this error: > > Error in (function (classes, fdef, mtable) : > unable to find an inherited method for function ‘brick’ for signature > ‘"ncdf4"’ > > > Is there a rea

Re: [R-sig-Geo] Convert map pdf in raster

2019-03-26 Thread Michael Sumner
obtain a raster of land use and land cover of > Europe. Which site to choose? > > Thanks, > > Lara > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.e

Re: [R-sig-Geo] Plotting x and y values using data from two separate netCDF files in R

2019-03-26 Thread Michael Sumner
h > lon Size:128 > units: degree East 3 global attributes: > description: Annual global maximum precipitation from the CanESM2 > 1pctCO2 scenario > history: Created Mon Jun 4 11:24:02 2018 > contact: rain1...@aim.com > So, in ge

Re: [R-sig-Geo] Plot coordinates on world map with Robinson CRS - ggplot2

2019-02-18 Thread Michael Sumner
7)) > # remove the background and default gridlines > theme_void() > > ## coordinates dataframe > dput(df) > structure(list(lon = c(2.67569724621467, 17.5766416259819, > 28.4126232192772, > 23.8147674538232, 29.8917589327105), lat = c(28.1503115976162, > -12.338878738020

Re: [R-sig-Geo] Reproject MODIS data using R (results in NAs or no spatial extent)

2018-11-29 Thread Michael Sumner
add = TRUE) ## convince yourself the extent is correct with things like: abline(h = c(-90, 90), col = "red") That use of "datum=WGS84" may well be incorrect, but compared to trying to project data from a completely mis applied projection it's an improvement. HTH Cheers,

Re: [R-sig-Geo] Reproject MODIS data using R (results in NAs or no spatial extent)

2018-11-29 Thread Michael Sumner
Ah, never mind - it's the subdataset discovery that's probably not easy with rgdal. Sorry for the noise. Mike. On Fri, 30 Nov 2018 at 06:38 Michael Sumner wrote: > Fwiw there shouldn't be any need to convert from hdf to tif - could you > please try this? > > x <- readGDAL( &quo

Re: [R-sig-Geo] Reproject MODIS data using R (results in NAs or no spatial extent)

2018-11-29 Thread Michael Sumner
xmax, ymin, ymax) > #coord. ref. : +proj=longlat +ellps=clrk66 +no_defs > #values : -32768, 32767 (min, max) > > Any ideas on why reprojecting this MODIS data is so difficult? > > > [[alternative HTML version deleted]] > > ___

Re: [R-sig-Geo] stars::RasterIO using extent info?

2018-11-14 Thread Michael Sumner
an you; it is explained here: > > https://r-spatial.github.io/stars/articles/data_model.html > > stars uses some functions directly from GDAL which it doesn't expose to > the user, but there is no magic going on here. > > > > > > > Thanks in advance for any tips. > > Tim > > > > ___

Re: [R-sig-Geo] Reordering geographical coordinates clockwise to make a polygon

2018-11-05 Thread Michael Sumner
___ > > R-sig-Geo mailing list > > R-sig-Geo@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > > > -- > Edzer Pebesma > Institute for Geoinformatics > Heisenbergstrasse 2, 48151 Muenster, Germany > Phone: +49 251 8333081 &

Re: [R-sig-Geo] Sf find number of parts in multigeometry

2018-10-23 Thread Michael Sumner
d]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Dr. Michael Sumner Software and Database Engineer Australian Antarctic Div

Re: [R-sig-Geo] subsetting a spatial polygons

2018-09-12 Thread Michael Sumner
elegant > > mask <- crop(polys,e) > > polys2 <- polys[mask,] > > plot(polys2,add=T,col="green") > > > > Thanks a lot. Best regards > > > > ___ > R-sig-Geo mail

Re: [R-sig-Geo] Problems converting rasters from float to integer.

2018-08-24 Thread Michael Sumner
That doesn't help though! Sorry, I thought that was it, will sleep on it. Cheers, Mike On Fri, 24 Aug 2018 at 22:00 Michael Sumner wrote: > Sorry, I was wrong - the actual issue is that the writeRaster argument is > "datatype", it gets conflated with the function that is d

Re: [R-sig-Geo] Problems converting rasters from float to integer.

2018-08-24 Thread Michael Sumner
overwrite=T) > s<-raster("test_int.tif") > dataType(s) > > On Fri, 24 Aug 2018 at 18:05, Roger Bivand wrote: > >> Thanks, Mike. I agree that the lower level interface in rgdal is flexible >> enough, but as you say non-trivial. Nevil: could you please provide a small &

Re: [R-sig-Geo] Problems converting rasters from float to integer.

2018-08-24 Thread Michael Sumner
uot;INT2U",overwrite=T) > > s<-raster("test_int.tif") > > dataType(s) > [1] "FLT8S" > > > > > Can you suggest how I ensure the values are stored as integer? > > Many thanks > > [[alternative HTML version deleted]] > > ___

Re: [R-sig-Geo] how to create several polygons from a list of vertices

2018-08-14 Thread Michael Sumner
-32 -23 1 > >>> 3 -32 -22 1 > >>> 4 -33 -22 1 > >>> 5 -32 -23 2 > >>> 6 -31 -23 2 > >>> 7 -31 -22 2 > >>> 8 -32 -22 2 > >>> 9 -31 -23 3 > >>> 10 -30 -23 3 > >>> 11 -3

Re: [R-sig-Geo] Difference in area calculation between QGIS and R

2018-06-27 Thread Michael Sumner
was 50 km2 smaller. > > What could be the cause? > > Thanks in advance, > N. > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-si

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

2018-06-18 Thread Michael Sumner
ace.Temperature > > # zvar: sst > > > > S = raster::raster(basename(URI), varname = "sst", crs = '+proj=eqc > +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 > +units=m +no_defs') > > # Warning message: > > # In .getProj(prj,

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

2018-06-14 Thread Michael Sumner
ão Paulo > Rua do Matão, 1226 > São Paulo-SP - Brasil - > 05508-090 > +55-11-97425-3791 > Skype: sergio_ibarra1 > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org >

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

2018-05-25 Thread Michael Sumner
ent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax) > > coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 > > data source : in memory > > names : clumps > > values : 1, 1 (min, max) > > > > __

Re: [R-sig-Geo] Measuring length of trajectories

2018-05-24 Thread Michael Sumner
e > Old Dominion University > Department of Biological Sciences > Mills Godwin Building, Room 312 > Norfolk VA 23529 USA > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org >

Re: [R-sig-Geo] Intersection of polygons with raster

2018-05-18 Thread Michael Sumner
is, I haven't found anything promising. > > Thanks, > Kent > > [[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] Tutorial on reading hyperspectral data

2018-05-05 Thread Michael Sumner
___ > R-sig-Geo mailing list > 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 Au

Re: [R-sig-Geo] Raster stream network to lines

2018-04-18 Thread Michael Sumner
ntinuous line in this example? Many > thanks, Andy > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-g

Re: [R-sig-Geo] Rasterize function

2018-04-17 Thread Michael Sumner
rsity > Department of Biological Sciences > Mills Godwin Building, Room 312 > Norfolk VA 23529 USA > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Dr. Michael Sumner S

Re: [R-sig-Geo] netcdf data from Antarctica in rotated latlong - how to reproject to normal geographical coordinate system

2018-04-05 Thread Michael Sumner
___ > > R-sig-Geo mailing list > > R-sig-Geo@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > > > -- > Roger Bivand > Department of Economics, Norwegian School of Economics, > Helleveien 30, N-5045 Bergen, Norway. > voice: +47 55

Re: [R-sig-Geo] Spatial Downscaling in R

2018-03-14 Thread Michael Sumner
sig-Geo mailing list > 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 HTML version deleted]] _

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

2018-02-22 Thread Michael Sumner
may contain information > > that is confidential and legally privileged. Please do not read, copy, > > forward, or store this message unless you are an intended recipient of > > it. If you have received this message in error, please forward it to > > the sender and delete it completely from your computer system. > > > > -- > > This message was scanned by Libra ESVA and is believed to be clean

Re: [R-sig-Geo] [R] How to label a polygon window (spatstat package)

2018-02-09 Thread Michael Sumner
_ > r-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible cod

Re: [R-sig-Geo] accessing spatial imagery via rgdal's web map tile service driver

2018-02-08 Thread Michael Sumner
= ) calls into translations for rgdal's output.dim, but it would be powerful to be easy to do that. Cheers, Mike. On Fri, 9 Feb 2018 at 10:32 Michael Sumner <mdsum...@gmail.com> wrote: > Oh, I had a typo in the xml_specification due to blithe copy/paste from > email. It works fine

Re: [R-sig-Geo] accessing spatial imagery via rgdal's web map tile service driver

2018-02-08 Thread Michael Sumner
t;https://maps.google.com/?q=4210+University+DriveAnchorage,+AK+99508=gmail=g> > Anchorage, AK 99508 > <https://maps.google.com/?q=4210+University+DriveAnchorage,+AK+99508=gmail=g> > > voice: (907) 786-7145 > > http://alaska.usgs.gov/science/biology/walrus/ > > O

Re: [R-sig-Geo] accessing spatial imagery via rgdal's web map tile service driver

2018-02-08 Thread Michael Sumner
t; (projWinParameters = paste('-projwin', bb[1, 1], bb[2,2], bb[1,2], > bb[2,1], sep = " ")) > aqua <- readGDAL(fname = xml_specification) # , projWinParameters) ?? how > to implement the projwin constraints?? > (aqua_stack <- stack(aqua)) > # > plotRGB(aqua_st

Re: [R-sig-Geo] Splitting spatial lines at self intersections (line crossings)

2018-01-26 Thread Michael Sumner
> plot(int,add=TRUE,col="red") # identifies more than just the crossings > > > > > > > > > > [[alternative HTML version deleted]] > > > > ___ > > R-sig-Geo mailing list > > R-

Re: [R-sig-Geo] Splitting spatial lines at self intersections (line crossings)

2018-01-26 Thread Michael Sumner
ossing.psp(PSP) > > > > plot(int,add=TRUE,col="red") # identifies more than just the crossings > > > > > > > > > > [[alternative HTML version deleted]] > > > > ___ > > R-sig-Geo mai

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

2017-12-01 Thread Michael Sumner
Ugh, and you must think I'm crazy given that it's clearly HDF5 not HDF4 as per my opening line (the file naming is more the latter). I'll stop now. Hope it's useful. Cheers, Mike. On Sat, 2 Dec 2017 at 07:44 Michael Sumner <mdsum...@gmail.com> wrote: > Ah thanks, and sorry I didn't

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

2017-12-01 Thread Michael Sumner
quot;Q20151522015181.L3m_MO_SCIA_V5.0_SSS_1deg" >> >> nc = ncdf4::nc_open(filename) >> m = ncdf4::ncvar_get(nc, 'l3m_data') >> ncdf4::nc_close(nc) >> r = raster::raster(t(m)) >> rasterVis::levelplot(r) >> >> ### END >> >> >

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

2017-12-01 Thread Michael Sumner
gt; and variations with band and layer. > > I would greatly appreciate any suggestions to solve this issue. > > Thanks > > -- > Antônio Olinto Ávila da Silva > Fisheries Institute > São Paulo, Brasil > > [[alternative HTML version deleted]] > > ___

Re: [R-sig-Geo] Is the raster package still receiving updates?

2017-11-08 Thread Michael Sumner
t; > > > > > > > > > > > > > > > > Many of us rely on the raster package as a crucial basis for > their > > > > work. > > > > > Big thank to Robert. Nevertheless to contribute needs to focus > needs > > > and > > >

Re: [R-sig-Geo] Plotting GPS Coordinates on a Polar Projection Using rgdal

2017-10-27 Thread Michael Sumner
t;> Date: Mon, 23 Oct 2017 22:53:22 + >> From: "Mortimer, Linsey Anne" <l.mortimer...@aberdeen.ac.uk> >> To: Michael Sumner <mdsum...@gmail.com> >> Cc: "r-sig-geo@r-project.org" <r-sig-geo@r-project.org> > > >> Subject: Re: [R-si

Re: [R-sig-Geo] Plotting GPS Coordinates on a Polar Projection Using rgdal

2017-10-23 Thread Michael Sumner
_United Kingdom.1252 LC_NUMERIC=C > > [5] LC_TIME=English_United Kingdom.1252 > > > > attached base packages: > > [1] stats graphics grDevices utils datasets methods base > > > > other attached packages: > > [1] maptools_0.9-2 rgdal_1.2-13 sp_1.

Re: [R-sig-Geo] Is the raster package still receiving updates?

2017-10-20 Thread Michael Sumner
_ > R-sig-Geo mailing list > 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 HTML vers

Re: [R-sig-Geo] Optimized rasterOptions() for a (virtually) infinite RAM machine

2017-09-22 Thread Michael Sumner
ellowDepartment of Climate and Space Science and > EngineeringUniversity of Michigan > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r

Re: [R-sig-Geo] temp directory not actually reset by rasterOptions()

2017-09-20 Thread Michael Sumner
ter_2.5-8 sp_1.2-5 > > loaded via a namespace (and not attached): > [1] rgdal_1.2-11parallel_3.3.3 tools_3.3.3 Rcpp_0.12.12 > grid_3.3.3 > [6] lattice_0.20-35 > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org >

Re: [R-sig-Geo] converting the projection

2017-09-19 Thread Michael Sumner
6707267, 9941473, 9950408 (xmin, xmax, ymin, ymax) > coord. ref. : +proj=laea +lat_0=-100 +lon_0=6370997 +x_0=45 +y_0=0 > +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 > > > c<-crop(tmp, ex) > > Error in .local(x, y, ...) : extents do not overlap > > >

Re: [R-sig-Geo] converting the projection

2017-09-19 Thread Michael Sumner
Son <kkyon...@hotmail.com> wrote: > I did the exact same way, but the output of the reprojection of 'a' raster > did not properly align with 'b' raster. > > > > > > *Kyongho Son* > Postdoctoral Fellow > Research Foundation of The City University of New York > > > &g

Re: [R-sig-Geo] converting the projection

2017-09-19 Thread Michael Sumner
ersion deleted]] > > _______ > R-sig-Geo mailing list > 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

Re: [R-sig-Geo] Replacing values in a RasterBrick

2017-09-10 Thread Michael Sumner
> I’d be happy to trial it on data here if that would help. > > > Thanks! I'll take you up on that when I look at it again. Cheers, Mike. > Cheers > > Terry > > > > > > *From:* Michael Sumner [mailto:mdsum...@gmail.com] > *Sent:* Thursday, 7 September 2017 6:

Re: [R-sig-Geo] Replacing values in a RasterBrick

2017-09-07 Thread Michael Sumner
his message and any copies of > this message from your computer and/or your computer system network. > -- > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-pr

Re: [R-sig-Geo] [FORGED] Re: using spatialpolygonsdataframe in ppm (or, converting spatialpolygonsdataframe to pixel image or other object useful in ppm)

2017-09-02 Thread Michael Sumner
to be more expert on this cross-over topic, still working on it :) Cheers, Mike. On Sat, 2 Sep 2017 at 20:27 Rolf Turner <r.tur...@auckland.ac.nz> wrote: > On 02/09/17 19:00, Michael Sumner wrote: > > > > > > > It's not clear to me if you need polygons in spatstat or a r

Re: [R-sig-Geo] using spatialpolygonsdataframe in ppm (or, converting spatialpolygonsdataframe to pixel image or other object useful in ppm)

2017-09-02 Thread Michael Sumner
ooth_2.23-15 stringi_1.1.5 > [73] osmar_1.1-7 Rcpp_0.12.10 sf_0.5-3 > [76] png_0.1-7leaflet_1.1.0coda_0.19-1 > > > > --- > This email has been checked for viruses by AVG. > http://www.avg.com > > ___

Re: [R-sig-Geo] Problem in extracting data from GRIB files

2017-07-31 Thread Michael Sumner
mm_day_year <- cbind(joined_mm_day_year, joined_mm_day)} > > } > > #Join mm_day with dams codes > joined_mm_day_year_names=cbind(dams_codes,joined_mm_day_year) > > newnames <-t(as.data.frame(c(paste ("day", > seq(1,(ncol(joined_mm_day_year_names)-3),1)

Re: [R-sig-Geo] Problem in extracting data from GRIB files

2017-07-28 Thread Michael Sumner
;- as.data.frame(data_dams_size) > > Unfortunately, I get mostly NAs for the data, it seems that there's an > issue with the CRS projections for the city coordinates. Is there a > specific projection for city level coordinates? Or am I doing something > completely wrong? Thank you! &g

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

2017-07-19 Thread Michael Sumner
100, 180, 0, 80)) > > # rotate the extent > eExtent <- raster::extent(eR) > raster::extent(eR) <- c(-260, -180, eExtent[3:4]) > > # western section > wR <- raster::crop(R, c(-180, -90, 0, 80)) > > # merge > newR <- raster::merge(eR, wR) > newR > >

Re: [R-sig-Geo] Any plans to provide access to CGAL in R?

2017-07-10 Thread Michael Sumner
o-cgal-or-equivalent-toolset-in-r > > Thanks in advance, > > Robin > > [[alternative HTML version deleted]] > > ___________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-

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

2017-06-23 Thread Michael Sumner
from a general framework, which I'm working on - that's some kind of excuse for why this and related projects are quite raw and unfinished.) Cheers, Mike. Cheers, > Ben > > On Jun 22, 2017, at 4:46 AM, Michael Sumner <mdsum...@gmail.com> wrote: > > > It used to do

Re: [R-sig-Geo] Problems with using dismo package on HPC

2017-06-22 Thread Michael Sumner
extent and resolution, and the spatial points are in the same > coordinate system. > > Any help would be greatly appreciated. > Wade > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-si

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

2017-06-22 Thread Michael Sumner
low 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] Deal with multiple factorlevel in one grid square

2017-05-30 Thread Michael Sumner
Ds (many to one relationship) with something like merge() or > functions in libraries like diplyr or data.table > > Cheers > Herry > > -Original Message- > From: R-sig-Geo [mailto:r-sig-geo-boun...@r-project.org] On Behalf Of > Patrick Schratz > Sent: Wednesday, 24 M

Re: [R-sig-Geo] Recs for R tools that subset/tile raster bricks?

2017-05-24 Thread Michael Sumner
Do also see the raster vignettes, there is one on performance and using line- or block- based chunks for large jobs. Cheers, Mike On Thu, 25 May 2017, 08:32 Michael Sumner <mdsum...@gmail.com> wrote: > Try crop() (or more abstractly extract(raster, cells) once you've > determined w

Re: [R-sig-Geo] Recs for R tools that subset/tile raster bricks?

2017-05-24 Thread Michael Sumner
vice is welcome. > > Thank you very much for your help. > Megan > > [[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. Michael

Re: [R-sig-Geo] Deal with multiple factorlevel in one grid square

2017-05-24 Thread Michael Sumner
de > > ___ > R-sig-Geo mailing list > 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 Au

  1   2   3   4   >