[GRASS-dev] [GRASS GIS] #2089: i.landsat.toar doesn't take into account the resolution difference between panchromatic and the other bands.

GRASS GIS trac at osgeo.org
Tue Oct 8 13:29:19 PDT 2013


#2089: i.landsat.toar doesn't take into account the resolution difference between
panchromatic and the other bands.
----------------------------+-----------------------------------------------
 Reporter:  vesnikos        |       Owner:  grass-dev@…              
     Type:  defect          |      Status:  new                      
 Priority:  major           |   Milestone:  7.0.0                    
Component:  Imagery         |     Version:  svn-trunk                
 Keywords:  i.landsat.toar  |    Platform:  All                      
      Cpu:  Unspecified     |  
----------------------------+-----------------------------------------------

Comment(by mmetz):

 Replying to [comment:4 neteler]:
 > Perhaps this email contains relevant info:
 >
 > http://lists.osgeo.org/pipermail/grass-dev/2010-July/051318.html
 > [GRASS-dev] Rast_set_window() changes in 7.0 - Thu Jul 22 02:57:55 EDT
 2010
 >
 > The problem will be in this part of G7's i.landsat.toar/main.c:
 {{{
             sprintf(band_in, "%s%d", inputname, lsat.band[i].code);
             if ((infd = Rast_open_old(band_in, "")) < 0)
                 G_fatal_error(_("Unable to open raster map <%s>"),
 band_in);
             Rast_get_cellhd(band_in, "", &cellhd);
             G_set_window(&cellhd);
 }}}
 >

 Most likely. The window needs to be set 1) with Rast_set_window(), 2)
 before a raster is opened. Please try r57957.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2089#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list