Re: [R-sig-Geo] Merging Shape files

2020-03-18 Thread Zia Ahmed
Wed, Mar 18, 2020 at 10:37 AM Zia Ahmed wrote: > >> Please check this: >> >> >> https://zia207.github.io/geospatial-r-github.io/geoprocessing-vector-data.html >> Best >> Zia >> >> On Tue, Mar 17, 2020, 10:39 AM Dexter Locke >> wrote: &g

Re: [R-sig-Geo] Merging Shape files

2020-03-18 Thread Zia Ahmed
Please check this: https://zia207.github.io/geospatial-r-github.io/geoprocessing-vector-data.html Best Zia On Tue, Mar 17, 2020, 10:39 AM Dexter Locke wrote: > Within st_join() see the options like "left = TRUE". > > You may also want to look at st_intersects() > > Here are other helpful refer

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

2020-03-18 Thread Zia Ahmed
This is might help you: https://zia207.github.io/geospatial-r-github.io/netCDF-data-processing.html Zia On Wed, Mar 18, 2020, 9:34 AM Frederico Faleiro wrote: > Hi Miluji, > > the R in general do not handle very well with netCDF. However I > recommend you use the netcdf4 package before try oth

[R-sig-Geo] R-Tutorial: Geospatial Data Science in R (Resent)

2020-01-08 Thread Zia Ahmed
ormatics, but have some experience in R-coding. The data used in this tutorial also available for download. I appreciate any feedback for improving this tutorial. I appreciate any feedback for improving this tutorial. Best Zia Ahmed University at Buffalo Tutorial consist follo

[R-sig-Geo] R-tutorial: Geospatial Data Science with R

2020-01-08 Thread Zia Ahmed
Dear All, Best *Zia Ahmed, PhD* Research Associate Professor (Data & Visualization) RENEW (Research and Education in eNergy, Environment and Water) Institute <http://www.buffalo.edu/renew.html> University at Buffalo <http://www.buffalo.edu/> Tutorial consist followi

Re: [R-sig-Geo] Plot a map in r (csv and shapefile)

2019-06-19 Thread Zia Ahmed
Please check this below link. It might help you what you need to do. Zia https://zia207.github.io/geospatial-data-science.github.io/ On Wed, Jun 19, 2019, 6:40 AM Lara Silva wrote: > Hello, > > I am new in R and I need to plot the occurrence of a species. > I have the presences of species (CSV

Re: [R-sig-Geo] Problems with SpatialPixelsDataFrame objects

2016-11-20 Thread Zia Ahmed
Dear List, I am trying to calculate *GLCM textures of all bands of a raster stack using GLCM package. Using following code it runs perfectly. The code created four stacks for each bands, each stack contains for 8 raster objects, but I am facing difficulty to get results for further analysis.

Re: [R-sig-Geo] spatial regression model

2012-11-01 Thread Zia Ahmed
out my model. Thankyou in advance Paolo Piras [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- - Zia Ahmed, PhD Research Associa

Re: [R-sig-Geo] Modify spplot frame borders, padding and font

2012-05-31 Thread Zia Ahmed
rs with > trellis.par.set, or reading the documentation of xyplot and levelplot in > package lattice might help. It assumes that the words "lattice" and > "trellis" ring a bell. > > >> Thank you once again, >> >> Iain >> _

Re: [R-sig-Geo] Modify spplot frame borders, padding and font

2012-05-30 Thread Zia Ahmed
e searched the documentation. However, I am new to R and I have been > unable to uncover the mechanism that would allow me to modify these > attributes. Any assistance would be gratefully received! > > Many thanks, > > Iain > > -- > Iain Dillingham > School of Informa

[R-sig-Geo] Asking Help again: Re: Help: Create several ESRI Shape files in a Loop

2012-03-13 Thread Zia Ahmed
'') )} # Step: 2: Merge with for (i in 1:100){ x <- read.csv(paste('sim', i, '.csv', sep = ''), as.is = TRUE) thana@data <- merge(thana@data, x, by.x="THANA_ID",by.y="THANA_ID", all.x = TRUE, sort = FALSE)

Re: [R-sig-Geo] Help: Create several ESRI Shape files in a Loop

2012-03-12 Thread Zia Ahmed
"/GWPR/Shape_Files", > layer=paste("sim_",i,".shp",sep=""),driver="ESRI Shapefile") > > A better way is use create a list of variables, so i will assume > the name of the variable. > > > On Mon, Mar 12, 2012 at

[R-sig-Geo] Help: Create several ESRI Shape files in a Loop

2012-03-12 Thread Zia Ahmed
.shp") sim100.thana@data <- merge(thana@data,sim100,by.x="THANA_ID", by.y="THANA_ID", all.x=T, sort=F) writeOGR(sim100.thana,dsn="/GWPR/Shape_Files", layer="sim100.thana", driver="ESRI Shapefile") -- - Zia Ahmed, PhD Research Associ

[R-sig-Geo] Population weighted Centroids?

2012-03-05 Thread Zia Ahmed
Is there anyway to calculate population weighted centroids of a spatial polygon in R? Any idea will be appreciated. Thanks Zia -- - Zia Ahmed, PhD Research Associate Department of Crop and Soil Sciences 1002 Bradfield Hall, Cornell University Ithaca, NY 14853-4203 t

[R-sig-Geo] GGWR (family = Poission): Prediction of unknown location

2012-02-20 Thread Zia Ahmed
2.37628 4.9865 1 NA 2739005 557044.6 11 62.8022 -2.35943 1.450378 -2.38489 4.995307 1 NA 2739341 542981.4 12 62.95506 -2.36003 1.45098 -2.38804 4.996592 1 NA 2749492 553074.4 -- ----- Zia Ahmed, PhD Research Associate Department of Crop and Soil Sciences 1002 B

[R-sig-Geo] Problem with create several maps and save a PNG files in a loop from a sppolygon object

2012-02-15 Thread Zia Ahmed
"sim35" "sim36" "sim37" "sim38" [46] "sim39" "sim40" "sim41" "sim42" "sim43" [51] "sim44" "sim45" "sim46" "sim47" &quo

[R-sig-Geo] Thanks! Re: Help: create an animated GIF file from PNG files

2012-01-26 Thread Zia Ahmed
> Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > > > On Wed, Jan 25, 2012 at 3:44 PM, Zia Ahmed wrote: >> I am trying to create an animated GIF file from a set of PNG files >> created from number realization. Itried with animation (

[R-sig-Geo] Help: create an animated GIF file from PNG files

2012-01-25 Thread Zia Ahmed
//ryouready.wordpress.com/2010/11/21/animate-gif-images-in-r-imagemagick/) Invalid Parameter - 40 Warning message: running command 'convert -delay 40 sim*.png plot.gif', invisible = F, wait=T' had status 4 - Zia Ahmed, PhD Research Associate Department of Crop

Re: [R-sig-Geo] Calculating 95th percentile within polygons

2011-10-18 Thread Zia Ahmed
percentile. These are two different things. The first is a spatial aggregation, the second an aggregation over the (sampled) probability distribution. On 10/18/2011 11:07 PM, Zia Ahmed wrote: I am trying to calculating 95th percentile within polygons from a of set realizations - something like

[R-sig-Geo] Calculating 95th percentile within polygons

2011-10-18 Thread Zia Ahmed
I am trying to calculating 95th percentile within polygons from a of set realizations - something like zonal statistics. How do I calculate 95 th percentile for each polygon over all realizations. Thanks Zia For example: data(meuse) data(meuse.grid) coordinates(meuse) <- ~x+y coordinates(meu

Re: [R-sig-Geo] merging several shapefiles into one

2011-05-25 Thread Zia Ahmed
I used following code to merge a series of shape files with similar file structure. We can try this, but you need to do some modification of the code. Zia ### # Require packages: rgdal and maptool #--

[R-sig-Geo] Problem with Kriging with in strata

2011-01-26 Thread Zia Ahmed
Hi, I am trying to do kriging with in strata. I use the example in book "Applied Spatial Data Analysis with R" page:217. It works fine with "meuse" data. But when I am trying to use my data it shows some error massage. Do I missing something here? Thanks in advance Zia Note: I am using fo

Re: [R-sig-Geo] suggestion to MERGE or UNION 3 shapefiles

2011-01-12 Thread Zia Ahmed
/I used following R code sometime ago to merge several shpe files. You can try this. /Just need little modify the code. (shape file will like this:Name01.shpe,Name02.shape) Zia // / # Require packages: rgdal and maptool #- library(rgdal) libra