MODIS GEO.py

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
lailai0824
Posts: 8
Joined: Thu Apr 21, 2022 4:58 am America/New_York
Answers: 0

MODIS GEO.py

by lailai0824 » Fri Apr 19, 2024 7:19 am America/New_York

Hello,When I use the tool ‘modis_GEO.py’ in SeaDAS, I always get an error:

'execution exception: java.io.IOException: modis_GEO.py failed with exit code 1
Check log for more details.
Determining required attitude and ephemeris files...
Traceback(most recent calllast):
Searching database: /home/a/seadas-7.5.3/ocsswar/ancillary data,db
File "/home/a/seadas-7,5,3/ocssw/scripts/modis GE0.py", line 194, in <module>
sys.exit(main())
File "/home/a/seadas-7.5.3/ocssw/scripts/modis GEo.py", line 185, in main
m.atteph()
File "/home/a/seadas-7,5.3/ocssw/scripts/modules/modis GE0 utils,py", line 238, in atteph
get.findweb()
File "home/a/seadas-7.5.3/ocssw/scripts/modules/anc utils.py", line 428, in findweb

File "home/a/seadas-7.5.3/ocssw/scripts/modules/ProcUtils.py", line 74, in httpd
with closing(obpgSession.get(urlStr, stream=True, timeout=timeout))as reg:File "/usr/local/lib/python2,7/dist-packages/requests/sessions.py", line 525, in getreturn self.request('GET',url, **kwaras)File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 512, in requestreso-self.send(prep,**send kwaras)File "/usr/local/lib/python2,7/dist-packages/requests/sessions.py", line 622, in sendr=adapter.send(request,**kwargs)File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 513, in sendInput file: /home/a/DailyProgram/work/A2024109053500.L1A_LAC

requests.exceptions.ConnectionEror: HTsconectionPool(host*'oceandata.sclgsitc.nasa.gov, pot-443): Max reties exceeded wth url: /aplaltephiAy2024109053500202410
Sensor :modisa
Start time: 2024109053500
End time:2024109054000
0BPG session started'

How can I fix this? thank you!

Filters:

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 286
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

Re: MODIS GEO.py

by OB SeaDAS - knowles » Fri Apr 19, 2024 11:27 am America/New_York

Based on your output messages it seems like you are using SeaDAS 7.5.3 and implementing python2.7

The current SeaDAS is 9.0.0 and uses python3. So upgrading would be highly advisable.

It looks like your python requests call is failing. It is possible you don't have an internet connection when running modis_GEO.py

lailai0824
Posts: 8
Joined: Thu Apr 21, 2022 4:58 am America/New_York
Answers: 0

Re: MODIS GEO.py

by lailai0824 » Mon Apr 22, 2024 4:30 am America/New_York

Thank you for your reply!
But what is puzzling is that when the same programs call SeaDas to do atmospheric corrections on MODIS Aqua data, some are successful, and some consistently show such errors, appearing intermittently.

The error is:
‘requests.exceptions.ConnectionError: HTTPSConnectionPool(host='oceandata.sci.gsfc.nasa.gov', port=443): Max retries exceeded with url: /api/anc_data_api/?&m=7&s=2024-03-22T05:05:00&e=2024-03-22T05:10:00&missing_tags=1 (Caused by ReadTimeoutError("HTTPSConnectionPool(host='oceandata.sci.gsfc.nasa.gov', port=443): Read timed out. (read timeout=10.0)",)) ’

If the problem is the network, it should be that all the data can not succeed, are there other reasons or solutions? Thanks.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 660
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: MODIS GEO.py

by OB SeaDAS - xuanyang02 » Mon Apr 22, 2024 11:01 am America/New_York

It appears that getanc timed out after 10 seconds. The workaround is to increase the timeout to 60 seconds.

I believe the latest OCSSW tag has timeout default to 60 seconds. For SeaDAS 7.5 users, you can try to use the --timeout=60 option for modis_GEO

See if this post helps -- viewtopic.php?p=17360&hilit=getanc&sid=737c4144e9601fd6430fc1ba0769c497#p17360

Post Reply