[GRASS-SVN] r38085 - grass/trunk/imagery/i.atcorr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 26 03:52:16 EDT 2009
Author: martinl
Date: 2009-06-26 03:52:15 -0400 (Fri, 26 Jun 2009)
New Revision: 38085
Modified:
grass/trunk/imagery/i.atcorr/main.cpp
Log:
Rast_allocate_raster_buf -> Rast_allocate_buf
Modified: grass/trunk/imagery/i.atcorr/main.cpp
===================================================================
--- grass/trunk/imagery/i.atcorr/main.cpp 2009-06-25 22:30:37 UTC (rev 38084)
+++ grass/trunk/imagery/i.atcorr/main.cpp 2009-06-26 07:52:15 UTC (rev 38085)
@@ -121,7 +121,7 @@
CELL* cbuf;
int col;
- cbuf = (CELL*)Rast_allocate_raster_buf(CELL_TYPE);
+ cbuf = (CELL*)Rast_allocate_buf(CELL_TYPE);
for(col = 0; col < G_window_cols(); col++) cbuf[col] = round_c(buf[col]);
Rast_put_raster_row(ofd, cbuf, CELL_TYPE);
@@ -293,9 +293,9 @@
TICache ticache; /* use this to increase computation speed when an elevation map with categories are given */
/* allocate memory for buffers */
- buf = (FCELL*)Rast_allocate_raster_buf(FCELL_TYPE);
- if(ialt_fd >= 0) alt = (FCELL*)Rast_allocate_raster_buf(FCELL_TYPE);
- if(ivis_fd >= 0) vis = (FCELL*)Rast_allocate_raster_buf(FCELL_TYPE);
+ buf = (FCELL*)Rast_allocate_buf(FCELL_TYPE);
+ if(ialt_fd >= 0) alt = (FCELL*)Rast_allocate_buf(FCELL_TYPE);
+ if(ivis_fd >= 0) vis = (FCELL*)Rast_allocate_buf(FCELL_TYPE);
G_verbose_message(_("Percent complete..."));
nrows = G_window_rows();
More information about the grass-commit
mailing list