[GRASS-dev] [GRASS GIS] #2735: t.rast.mapcalc input problem

GRASS GIS trac at osgeo.org
Wed Feb 21 08:25:51 PST 2018


#2735: t.rast.mapcalc input problem
--------------------------+----------------------------
  Reporter:  leohardtke   |      Owner:  grass-dev@…
      Type:  defect       |     Status:  reopened
  Priority:  normal       |  Milestone:  7.0.6
 Component:  Temporal     |    Version:  svn-trunk
Resolution:               |   Keywords:  t.rast.mapcalc
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+----------------------------
Description changed by martinl:

Old description:

> I'm facing a problem with an expression in the t.rast.mapcalc module
> which I think is a Bug...
>
> t.rast.mapcalc inputs=QA_mask,ndvi,ndvi_smooth_spacetime
> expression="if(QA_mask==0,ndvi,ndvi_smooth_spacetime)" output=ndvi_fixed
> basename=ndvi_fixed
> It throws the following error:
> Starting temporal sampling...
> Starting mapcalc computation...
> Invalid map
> <MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0>
> Parse error
> ERROR: parse error
> ERROR: Error while mapcalc computation
>
> The QA_mask maps are:
> QA_mask_01|PERMANENT|2009-01-01 00:00:00|2009-01-17 00:00:00
> QA_mask_02|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00
> ......
>
> The ndvi_smooth_spacetime maps are:
> ndvi_smooth_spacetime_0|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00
> ndvi_smooth_spacetime_1|PERMANENT|2009-02-02 00:00:00|2009-02-18 00:00:00
> ...........
>
> The ndvi maps are
> MOD13Q1.A2009001.h12v12.005.2009019145228_01_4326|PERMANENT|2009-01-01
> 00:00:00|2009-01-17 00:00:00
> MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326|PERMANENT|2009-01-17
> 00:00:00|2009-02-02 00:00:00
> M
>
> As you see, there is no such a map like..
> MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0
>
> I guess the module is mixing ndvi (a temporal dataset) with
> _smooth_spacetime... the second part of the name....

New description:

 I'm facing a problem with an expression in the t.rast.mapcalc module which
 I think is a Bug...

 {{{
 t.rast.mapcalc inputs=QA_mask,ndvi,ndvi_smooth_spacetime
 expression="if(QA_mask==0,ndvi,ndvi_smooth_spacetime)" output=ndvi_fixed
 basename=ndvi_fixed
 It throws the following error:
 Starting temporal sampling...
 Starting mapcalc computation...
 Invalid map
 <MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0>
 Parse error
 ERROR: parse error
 ERROR: Error while mapcalc computation
 }}}

 The QA_mask maps are:

 {{{
 QA_mask_01|PERMANENT|2009-01-01 00:00:00|2009-01-17 00:00:00
 QA_mask_02|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00
 ......
 }}}

 The ndvi_smooth_spacetime maps are:

 {{{
 ndvi_smooth_spacetime_0|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00
 ndvi_smooth_spacetime_1|PERMANENT|2009-02-02 00:00:00|2009-02-18 00:00:00
 ...........
 }}}

 The ndvi maps are

 {{{
 MOD13Q1.A2009001.h12v12.005.2009019145228_01_4326|PERMANENT|2009-01-01
 00:00:00|2009-01-17 00:00:00
 MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326|PERMANENT|2009-01-17
 00:00:00|2009-02-02 00:00:00
 }}}

 M

 As you see, there is no such a map like..

 {{{
 MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0
 }}}

 I guess the module is mixing ndvi (a temporal dataset) with
 _smooth_spacetime... the second part of the name....

--

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



More information about the grass-dev mailing list