0

I have point data of gas flares and I am trying to create a simple density raster of those flares. Results are either 0 or in the 100,000-1,000,000 range (when there's 5 to 40 or so points in each box).

At least as I see it, I am trying to do the most basic of point density analyses. I'm just simply trying to count up how many points are in that box! I'm using a reference raster of 15 arcseconds. My point density dialogue is as below. Note that I've tried it two different ways with very similar results. Any suggestions of where I'm going wrong? I'm guessing it has to do with my search radius, but how do I tell Arc I want my search radius to be the same as the pixel?

Dialogue: tool dialog

Results: results

Environments: Processing extent same as reference raster
Input: Gas Flares Points
Population: none
Output: ...\Flare_Dens.tif
Output cell size: 0.004167 (15 arcsecs in dec degrees, same as raster I'm snapping to)
Neighborhood: Rectangle
Radius: Map, 0.004167 x 0.004167

OR (getting similar results in the >100,000 range)
Radius: Cell, 1 x 1

  • 1
    Editing this question to include a screenshot or three would improve its quality. – Vince Jun 27 '14 at 18:45
  • 3
    Sounds like a projection issue to me. Your data and analysis is being performed in decimal degrees. You don't mention what you have area units set to - if default it should be using degrees. Even if your radius is small, the units of the output are still going to give you a lot of points per square degree. Long story short: project your data (something like UTM zone as appropriate to your area) before running Point Density. – Chris W Jun 27 '14 at 19:22
  • good point. ill try it. i believe the map units are in decimal degrees too though since my first data in the map was dd. – WClark97 Jun 27 '14 at 19:26
  • How many records are in the attribute table of the Flares? and Draw a box around one of those clusters and see how many records it selects. – If you do not know- just GIS Jun 27 '14 at 19:49
  • 1
    Please embed pictures in the question to reduce the probability that linked images will 404. – Vince Jun 27 '14 at 20:03
2

Sounds like a projection issue to me. Your data and analysis is being performed in decimal degrees - implying a geographic coordinate system. And yes, your map units are decimal degrees as evidenced by your screenshots. This is part of the problem. Generally in order to do calcuations related to area and length you want to be in a projected coordinate system, which is why I suggest a UTM zone projection using meters.

The area units I refer to in my comment is in the Point Density tool - last parameter which your question doesn't mention and screenshot doesn't show (you need to scroll down or make the dialog box bigger). That controls the unit values of your output raster and performs the unit conversion for the density units - ie your data could be in meters but you could set that to square feet and your output raster units would be density/sf.

The key here is that cell size units and density value units are independent of each other. You can have a one kilometer square area (cell) where the density of gas flares is 0.345 per square foot. You could also have a one foot square cell where the density is 300 per square kilometer. In your case, your cell is a fraction of a square degree. The default area unit would be one square degree. Therefore 18 points in your cell translates to a density of x per some small fraction of a degree, times whatever it takes to get a full square degree (extrapolating out to the chosen/default area unit), equals the extreme values you're seeing. You could set the area unit to square feet or something, but since there's no direct, uniform conversion between a degree and a foot, you still may not get accurate results - which is why it's best to project your data first.

The search radius just controls how far out from a given cell to look for points to count toward the density. You've already taken care of setting it to one cell in the Neighborhood section of the dialog box. The issue isn't that the tool is going beyond your cell to count points, it's a unit conversion/magnitude problem.

Long story short: project your data (something like UTM zone as appropriate to your area) before running Point Density.

1

The problem with the projections others have suggested is that you'll be unable to divide the spherical surface of the Earth into equally-sized cells using a rectangular grid. A discrete global grid would be most appropriate here as it will generate a grid of equally-sized, hexagonal cells.

I don't think Arc has the capability to do such things, but my package dggridR makes it easy enough if you have access to R:

library(dggridR)
library(dplyr)

#Construct a global grid with cells approximately 1000 miles across
dggs          <- dgconstruct(spacing=1000, metric=FALSE, resround='down')

#Load included test data set
data(dgquakes)

#Get the corresponding equally-sized, hexagonal grid cells for each 
#earthquake epicenter (lat-long pair)
dgquakes$cell <- dgtransform(dggs,dgquakes$lat,dgquakes$lon)

#Get the number of earthquakes in each equally-sized cell
quakecounts   <- dgquakes %>% group_by(cell) %>% summarise(count=n())

Plotting the result yields:

Binning on a discrete global grid using dggridR, as project onto a Mercator projection

The cells do not appear to be of equal size because of the distortion imposed by the projection. The method others have suggested is to do such a projection and lay a rectalinear grid on top of it. From the image above, it should be obvious what a bad idea that can be. Choosing projections carefully and working in limited geographical areas reduces this error, but only so much.

If we reproject the same data onto a sphere, it is obvious that the cells are of equal size, as desired:

Binning on a discrete global grid using dggridR, as projected onto a sphere

Naturally, you could choose a finer grid as appropriate for your data set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.