Page 1 of 1

Issues with getanc.py + start time

Posted: Wed Sep 25, 2019 5:50 pm America/New_York
by alaroy
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.

Issues with getanc.py + start time

Posted: Thu Sep 26, 2019 8:03 am America/New_York
by OB.DAAC - SeanBailey
Andrew,
It has already been fixed.  Update again :grin:

Sean