Where `settings` is the name of a text file in my home folder, with one
line for my user and one line for my password at earthexplorer site.
When I run: `grass78 /home/ga/grassdata/nc_basic_spm_grass7/modis_lst
--exec sh import_modis.sh`, it returns:
{{{
Starting GRASS GIS...
Cleaning up temporary files...
Executing <sh import_modis.sh> ...
WxPython missing, no GUI enabled
Traceback (most recent call last):
File "/home/ga/.grass7/addons/scripts/i.modis.download", line 274, in
<module>
sys.exit(main())
File "/home/ga/.grass7/addons/scripts/i.modis.download", line 246, in
main
prod = product(produ).returned()
File "/home/ga/.grass7/addons/etc/i.modis/rmodislib.py", line 302, in
returned
if self.products.keys().count(self.prod) == 1:
AttributeError: 'dict_keys' object has no attribute 'count'
Execution of <sh import_modis.sh> finished.
Cleaning up default sqlite database ...
Cleaning up temporary files...
}}}
I could not find information to help me solve if it is a problem in my
implementation. Nor did I find a similar previous report here.
Any detail or clarification that is necessary do not hesitate to ask me.
#4016: i.modis.download Attribute Error
------------------------------+-------------------------
Reporter: Gabriel De Luca | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
CPU: Unspecified | Platform: Linux
------------------------------+-------------------------
Comment (by lucadelu):
Hi Gabriel,
I'm sorry but I'm not able to reproduce your error. I copied your script
changing the enddate.
{{{
grass78 ~/grassdata/utm32N/lucadelu/ --exec sh /tmp/import_modis.sh
Starting GRASS GIS...
Cleaning up temporary files...
Executing <sh /tmp/import_modis.sh> ...
WARNING: GRASS GIS libgis version and date number not available
Downloading MODIS product <lst_terra_monthly_5600>...
All data have been downloaded, continue with i.modis.import with the
option
'files=/tmp/listfileMOD11B3.006.txt'
Execution of <sh /tmp/import_modis.sh> finished.
Cleaning up default sqlite database ...
Cleaning up temporary files...
lucadelu@geowork:~/github/grass$ cat /tmp/listfileMOD11B3.006.txt
MOD11B3.A2015001.h11v05.006.2016222155421.hdf
MOD11B3.A2015001.h11v05.006.2016222155421.hdf.xml
}}}