[GRASS-SVN] r34081 - grass/trunk/raster/r.usler
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 29 23:52:51 EDT 2008
Author: ychemin
Date: 2008-10-29 23:52:51 -0400 (Wed, 29 Oct 2008)
New Revision: 34081
Modified:
grass/trunk/raster/r.usler/main.c
Log:
bugfix output pixel to row
Modified: grass/trunk/raster/r.usler/main.c
===================================================================
--- grass/trunk/raster/r.usler/main.c 2008-10-30 03:47:36 UTC (rev 34080)
+++ grass/trunk/raster/r.usler/main.c 2008-10-30 03:52:51 UTC (rev 34081)
@@ -51,7 +51,7 @@
module->description = _("Computes USLE R factor, Rainfall erosivity index.");
input2 = G_define_standard_option(G_OPT_R_INPUT);
- input2->description = _("Name of the annual precipitation map");
+ input2->description = _("Name of the annual precipitation map [mm/year]");
output = G_define_standard_option(G_OPT_R_OUTPUT);
@@ -64,7 +64,7 @@
input1->options = "roose, morgan, foster, elswaify";
input1->descriptions = _("roose;Roosle (1975);"
"morgan;Morgan (1974);"
- "foster;Foster(1981);"
+ "foster;Foster (1981);"
"elswaify;El-Swaify (1985)");
input1->answer = "morgan";
@@ -122,6 +122,7 @@
/*calculate elswaify */
if (!strcmp(nameflag, "elswaify"))
d = elswaify_1985(d_annual_pmm);
+ outrast[col] = d ;
}
if (G_put_d_raster_row(outfd, outrast) < 0)
G_fatal_error(_("Failed writing raster map <%s> row %d"),
More information about the grass-commit
mailing list