[GRASS-dev] [GRASS GIS] #3654: i.modis.import writes wrong dates for 8- and 16-day MODIS products

GRASS GIS trac at osgeo.org
Wed Sep 26 16:20:22 PDT 2018


#3654: i.modis.import writes wrong dates for 8- and 16-day MODIS products
--------------------------+----------------------------
  Reporter:  veroandreo   |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Addons       |    Version:  unspecified
Resolution:               |   Keywords:  i.modis.import
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+----------------------------

Comment (by veroandreo):

 Tested here with:

 {{{
 i.modis.download settings=gisdata/SETTING folder=. \
 tiles=h18v02 product=lst_terra_eight_1000 \
 startday=2017-12-01 endday=2018-01-01

 i.modis.import -w files=listfileMOD11A2.006.txt \
 spectral='( 1 0 0 0 0 0 0 0 0 0 0 0 )' outfile=tlist-mod.txt

 t.create output=modis title="MODIS 2017" desc="MODIS data for Norway"

 t.register input=modis file=tlist-mod.txt
 }}}

 the file tlist-mod.txt (output of G7A:i.modis.import) has correct start
 and end dates now and therefore, also the output of G7:t.info and
 G7:t.rast.list is now fine:

 {{{
 t.rast.list modis
 name|mapset|start_time|end_time
 MOD11A2.A2017337.h18v02.single_LST_Day_1km|user1|2017-12-03
 00:00:00|2017-12-11 00:00:00
 MOD11A2.A2017345.h18v02.single_LST_Day_1km|user1|2017-12-11
 00:00:00|2017-12-19 00:00:00
 MOD11A2.A2017353.h18v02.single_LST_Day_1km|user1|2017-12-19
 00:00:00|2017-12-27 00:00:00
 MOD11A2.A2017361.h18v02.single_LST_Day_1km|user1|2017-12-27
 00:00:00|2018-01-01 00:00:00 <<--
 MOD11A2.A2018001.h18v02.single_LST_Day_1km|user1|2018-01-01
 00:00:00|2018-01-09 00:00:00
 }}}

 Thanks!

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



More information about the grass-dev mailing list