[GRASS-SVN] r71510 - grass-addons/grass7/raster/r.cell.area
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 26 18:50:53 PDT 2017
Author: awickert
Date: 2017-09-26 18:50:53 -0700 (Tue, 26 Sep 2017)
New Revision: 71510
Modified:
grass-addons/grass7/raster/r.cell.area/r.cell.area.py
Log:
Capitalization
Modified: grass-addons/grass7/raster/r.cell.area/r.cell.area.py
===================================================================
--- grass-addons/grass7/raster/r.cell.area/r.cell.area.py 2017-09-27 01:45:10 UTC (rev 71509)
+++ grass-addons/grass7/raster/r.cell.area/r.cell.area.py 2017-09-27 01:50:53 UTC (rev 71510)
@@ -71,12 +71,12 @@
"' already exists. Use '--o' to overwrite.")
# Then compute
- if projinfo['units'] == 'meters':
+ if (projinfo['units'] == 'meters') or (projinfo['units'] == 'Meters'):
if units == 'm2':
grass.mapcalc(output+' = nsres() * ewres()')
elif units == 'km2':
grass.mapcalc(output+' = nsres() * ewres() / 10.^6')
- elif projinfo['units'] == 'degrees':
+ elif (projinfo['units'] == 'degrees') or (projinfo['units'] == 'Degrees'):
if units == 'm2':
grass.mapcalc(output+' = ( 111195. * nsres() ) * \
( ewres() * '+str(np.pi/180.)+' * 6371000. * cos(y()) )')
More information about the grass-commit
mailing list