MODIS GEO.py
-
- Posts: 16
- Joined: Thu Apr 21, 2022 4:58 am America/New_York
MODIS GEO.py
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!
'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:
-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
Re: MODIS GEO.py
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
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
-
- Posts: 16
- Joined: Thu Apr 21, 2022 4:58 am America/New_York
Re: MODIS GEO.py
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.
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.
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: MODIS GEO.py
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
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