Page 1 of 1

seadas ocssw

Posted: Mon Jun 07, 2021 7:11 am America/New_York
by fahimabdulgafoor123
Hi,
while trying to run modis_GEO.py the following error ocuurs.
btw I'm not the user installed seadas.
LD_LIBRARY_PATH= modis_GEO.py --refreshDB A2021152090500.L1A_LAC
Traceback (most recent call last):
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modis_GEO.py", line 194, in <module>
sys.exit(main())
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modis_GEO.py", line 185, in main
m.atteph()
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/modis_GEO_utils.py", line 238, in atteph
get.findweb()
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/anc_utils.py", line 514, in findweb
atteph=self.atteph)
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/ancDB.py", line 88, in insert_record
[satfile, starttime, stoptime, inputdbstat, attephstat])
sqlite3.OperationalError: attempt to write a readonly database

Re: seadas ocssw

Posted: Mon Jun 07, 2021 10:33 am America/New_York
by OB SeaDAS - xuanyang02
In SeaDAS 8, we dropped .py for scripts. Can you try
"LD_LIBRARY_PATH= modis_GEO --refreshDB A2021152090500.L1A_LAC"?

Here is the modis_GEO help page for SeaDAS 8. https://seadas.gsfc.nasa.gov (/help/8.0.0/processors/ProcessModis_GEO.html)

Re: seadas ocssw

Posted: Mon Jun 07, 2021 10:46 am America/New_York
by OB.DAAC - SeanBailey
The SeaDAS processing scripts were intended for a single user system. The issue you are running into is due to the fact that there is a local sqlite database that is created when the ancillary files are queried and that file has permissions set for a different user. The scripts do allow for user-specified locations for this file (and the ancillary data that it retrieves), which may work for you:

Code: Select all

  
  --ancdb ANCDB         Use a custom filename for ancillary database. If full path not given,
                        ANCDB is assumed to exist (or will be created) under $OCVARROOT/log/. If
                        $OCVARROOT/log/ does not exist, ANCDB is assumed (or will be created)
                        under the current working directory
  --ancdir ANCDIR       Use a custom directory tree for ancillary files
 
Sean

Re: seadas ocssw

Posted: Tue Jun 08, 2021 2:18 am America/New_York
by fahimabdulgafoor123
Thank you Sean,
But while using --ancdb the following error occurs:

File "/seadas/seadas8-0-0.bak/ocssw/scripts/modis_GEO.py", line 194, in <module>
sys.exit(main())
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modis_GEO.py", line 185, in main
m.atteph()
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/modis_GEO_utils.py", line 240, in atteph
get.locate()
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/anc_utils.py", line 616, in locate
verbose=self.verbose)
File "/seadas/seadas8-0-0.bak/ocssw/scripts/modules/ProcUtils.py", line 74, in httpdl
with closing(obpgSession.get(urlStr, stream=True, timeout=timeout)) as req:
File "/seadas/python-packages/myenv/lib/python3.5/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/seadas/python-packages/myenv/lib/python3.5/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/seadas/python-packages/myenv/lib/python3.5/site-packages/requests/sessions.py", line 677, in send
history = [resp for resp in gen]
File "/seadas/python-packages/myenv/lib/python3.5/site-packages/requests/sessions.py", line 677, in <listcomp>
history = [resp for resp in gen]
File "/seadas/python-packages/myenv/lib/python3.5/site-packages/requests/sessions.py", line 166, in resolve_redirects
raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.

Re: seadas ocssw

Posted: Tue Jun 08, 2021 8:47 am America/New_York
by OB.DAAC - SeanBailey
Make sure your system has (and SeaDAS uses) at least the minimum requirements listed here:
https://seadas.gsfc.nasa.gov/requirements/

Python 3.5 is less than the minimum required 3.6, so I suspect your requests module is also too old.

Sean