[GRASS-SVN] r36662 - grass/trunk/imagery/i.atcorr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 9 09:20:19 EDT 2009
Author: neteler
Date: 2009-04-09 09:20:19 -0400 (Thu, 09 Apr 2009)
New Revision: 36662
Modified:
grass/trunk/imagery/i.atcorr/main.cpp
Log:
write cmd line to history
Modified: grass/trunk/imagery/i.atcorr/main.cpp
===================================================================
--- grass/trunk/imagery/i.atcorr/main.cpp 2009-04-09 10:22:06 UTC (rev 36661)
+++ grass/trunk/imagery/i.atcorr/main.cpp 2009-04-09 13:20:19 UTC (rev 36662)
@@ -561,6 +561,7 @@
int ialt_fd = -1; /* input elevation map's file descriptor */
int ivis_fd = -1; /* input visibility map's file descriptor */
const char *iimg_mapset, *ialt_mapset, *iviz_mapset;
+ struct History hist;
/* Define module */
define_module();
@@ -632,11 +633,15 @@
/* Close the input and output file descriptors */
+ G_short_history(opts.oimg->answer, "raster", &hist);
G_close_cell(iimg_fd);
if(opts.ialt->answer) G_close_cell(ialt_fd);
if(opts.ivis->answer) G_close_cell(ivis_fd);
G_close_cell(oimg_fd);
+ G_command_history(&hist);
+ G_write_history(opts.oimg->answer, &hist);
+
/* Copy the colors of the input raster to the output raster.
Scaling is ignored and color ranges might not be correct. */
copy_colors(opts.iimg->answer, iimg_mapset, opts.oimg->answer);
More information about the grass-commit
mailing list