Issues with getanc.py + start time

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
alaroy
Posts: 78
Joined: Tue Nov 21, 2006 3:33 pm America/New_York
Answers: 0

Issues with getanc.py + start time

by alaroy » Wed Sep 25, 2019 5:50 pm America/New_York

Good evening folks!

I recently upgraded OCSSW on our processing machine by calling

install_ocssw.py --install-dir=/marine-services/ocssw/ -b v7.5 --aqua --viirsn

on 9/16/2019 around 6 PM EDT. Since then the getanc.py script has not been working for us when called with a start time, for example:

getanc.py --sst --ice -m aqua -s 2019268154000
Traceback (most recent call last):
  File "/marine-services/ocssw/scripts/getanc.py", line 196, in <module>
    exit(main())
  File "/marine-services/ocssw/scripts/getanc.py", line 185, in main
    if (filename and g.finddb()) or (start and g.finddb()):
  File "/marine-services/ocssw/scripts/modules/anc_utils.py", line 358, in finddb
    status = ancdatabase.check_file(filekey,anctype=anctype,starttime=self.start)
  File "/marine-services/ocssw/scripts/modules/ancDB.py", line 218, in check_file
    query = ' '.join(['select', id, 'from', table, 'where filename =', '"' + filename + '"', " and type = ",
TypeError: cannot concatenate 'str' and 'NoneType' objects


If this has been corrected already please just let me know and I'll upgrade again.

If not perhaps somebody who's familiar with the logic in these scripts could please take a look at it? I tried poking around a bit in the python scripts but could not figure out what was happening well enough to wade in and fix it.

Thank you!
-Andrew L.

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1469
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

Issues with getanc.py + start time

by OB.DAAC - SeanBailey » Thu Sep 26, 2019 8:03 am America/New_York

Andrew,
It has already been fixed.  Update again :grin:

Sean

Post Reply