seadas ocssw

Please enter here to ask a question about any NASA Science related topics!
Post Reply
fahimabdulgafoor123
Posts: 6
Joined: Wed May 26, 2021 9:10 am America/New_York

seadas ocssw

by fahimabdulgafoor123 » Mon Jun 07, 2021 7:11 am America/New_York

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

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 130
Joined: Tue Feb 09, 2021 5:42 pm America/New_York

Re: seadas ocssw

by OB SeaDAS - xuanyang02 » Mon Jun 07, 2021 10:33 am America/New_York

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 ... s_GEO.html

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1169
Joined: Wed Sep 18, 2019 6:15 pm America/New_York

Re: seadas ocssw

by OB.DAAC - SeanBailey » Mon Jun 07, 2021 10:46 am America/New_York

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

fahimabdulgafoor123
Posts: 6
Joined: Wed May 26, 2021 9:10 am America/New_York

Re: seadas ocssw

by fahimabdulgafoor123 » Tue Jun 08, 2021 2:18 am America/New_York

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.

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1169
Joined: Wed Sep 18, 2019 6:15 pm America/New_York

Re: seadas ocssw

by OB.DAAC - SeanBailey » Tue Jun 08, 2021 8:47 am America/New_York

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

Post Reply