I ran both the GDAL slope and ArcGIS slope routines on Sulphur Creek 2005 DEM to assess whether they would produce the same result. The slope rasters were identical to the fourth decimal place.

I then took one of the NED 10m DEMs and ran it through both the ESRI and GDAL slope routines. Note that this was done in the original geographic coordinate system without resampling. In GDAL I used the generic scale factor of 111120 described on the documentation. ESRI allows for the same conversion factor but in this case itâ€™s vertical/horizontal units, so I used the reciprocal of 0.000008999280058.

The differences in the two slope routines were down to the third or fourth decimal place of a degree! This makes sense when you consider that both algorithms use a 3x3 kernal and a planar algorithm approach.

## Resources

- GDAL Slope
- ESRI Slope
- Haversine forumla
- ESRI blog post that explains why vertical scaling factor is required when calculating slope on rasters with geographic coordinate systems.