[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
Thu Oct 17 04:10:43 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 nikosa):

 Replying to [comment:5 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.

 It works here (revision=57968M)! Thank you.

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



More information about the grass-dev mailing list