[GRASS-dev] [GRASS GIS] #3027: i.atcorr's create_iwave.py broken

GRASS GIS trac at osgeo.org
Tue May 10 10:49:18 PDT 2016


#3027: i.atcorr's create_iwave.py broken
----------------------+---------------------------------
  Reporter:  neteler  |      Owner:  grass-dev@…
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  7.0.5
 Component:  Imagery  |    Version:  svn-releasebranch70
Resolution:           |   Keywords:  i.atcorr
       CPU:  x86-64   |   Platform:  All
----------------------+---------------------------------

Comment (by martinl):

 The problem is that the list of values which is returned by `np.arange`
 contains values above range defined by `response[:,0]`.

 {{{
 response[0,0] ->
 [ 427.  428.  429.  430.  431.  432.  433.  434.  435.  436.  437.  438.
   439.  440.  441.  442.  443.  444.  445.  446.  447.  448.  449.  450.
   451.  452.  453.  454.  455.  456.  457.  458.  459.]
 response[:,1] ->
 [  7.30000000e-05   6.09000000e-04   1.62800000e-03   3.42100000e-03
    8.01900000e-03   2.47670000e-02   8.56880000e-02   2.54149000e-01
    5.17821000e-01   7.65117000e-01   9.08749000e-01   9.58204000e-01
    9.77393000e-01   9.83790000e-01   9.89052000e-01   9.86713000e-01
    9.93683000e-01   9.93137000e-01   1.00000000e+00   9.96969000e-01
    9.82780000e-01   9.72692000e-01   9.05808000e-01   7.45606000e-01
    4.71329000e-01   2.26412000e-01   9.28600000e-02   3.66030000e-02
    1.45370000e-02   5.82900000e-03   2.41400000e-03   9.84000000e-04
    2.55000000e-04]
 np.arange(response[0,0], response[-1,0] + 2.5, 2.5) ->
 [ 427.   429.5  432.   434.5  437.   439.5  442.   444.5  447.   449.5
   452.   454.5  457.   459.5]
 }}}

 459.5 is outside of range `<427,459>`

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3027#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list