Opened 5 years ago

Closed 5 years ago

#3659 closed defect (fixed)

i.modis.import fails if 'datum' not defined

Reported by: Nikos Alexandris Owned by: grass-dev@…
Priority: normal Milestone:
Component: Addons Version: unspecified
Keywords: i.modis, i.modis.import Cc:
CPU: Unspecified Platform: Unspecified


i.modis.import will fail if the 'datum' is not defined. For example, in a LOCATION as the following:

g.proj -p
name : clark66
ellps : clark66
proj : ll
no_defs : defined
unit : degree
units : degrees
meters : 1.0

the following command will fail

i.modis.import input=MOD11A1.A2016174.h18v04.006.2016240225941.hdf

and will report

Traceback (most recent call last):
File "/home/user/.grass7/addons/scripts/i.modis.import", line 607, in <module>
File "/home/user/.grass7/addons/scripts/i.modis.import", line 559, in main
single(options, remove, analyze, over, outfile)
File "/home/user/.grass7/addons/scripts/i.modis.import", line 360, in single
projObj = projection()
File "/home/user/.grass7/addons/etc/i.modis/", line 353, in __init__
if self.proj['datum']:
KeyError: 'datum'

Should the error message be improved, i.e. provide a clue to "switch" to another location?

Change History (4)

comment:1 by neteler, 5 years ago

Component: ImageryAddons

comment:2 by lucadelu, 5 years ago

Try with r73403.

comment:3 by Nikos Alexandris, 5 years ago

Seems to be fixed!

comment:4 by lucadelu, 5 years ago

Resolution: fixed
Status: newclosed

Reopen if needed

Note: See TracTickets for help on using tickets.