Page 1 of 1

SeaDAS - Error when running getanc.py

Posted: Mon Apr 11, 2022 4:52 pm America/New_York
by alaroy
This is probably something simple that I'm missing but I've been looking at it for a while and am not seeing it, so here goes...

When I run the following correct-looking commands

$ export OCSSWROOT=/marine-services/ocssw
$ source /marine-services/ocssw/OCSSW_bash.env
$ getanc.py --sst -s 2019213203000

I get the error:

Traceback (most recent call last):
File "/marine-services/ocssw/scripts/getanc.py", line 196, in <module>
sys.exit(main())
File "/marine-services/ocssw/scripts/getanc.py", line 189, in main
g.findweb()
File "/marine-services/ocssw/scripts/modules/anc_utils.py", line 439, in findweb
self.files[str(f[0]).lower()] = str(f[1])
IndexError: string index out of range

Any hints you folks have would be appreciated!

Thank you,
-Andrew L.

Re: SeaDAS - Error when running getanc.py

Posted: Tue Apr 12, 2022 11:27 am America/New_York
by OB SeaDAS - xuanyang02
getanc.py needs both start and stop time. Try this --

Code: Select all

getanc.py --sst  -s 2019213203000 -e 2019213203500
BTW, what tag of OCSSW are you using? The latest operational tag is V2022.0, you might want to try it with SeaDAS 8.2.0

Re: SeaDAS - Error when running getanc.py

Posted: Wed Apr 13, 2022 4:08 pm America/New_York
by alaroy
That worked, thank you!

How/where do I find out the operational tag? What we currently have was obtained at 2019-08-23 14:45:31 UTC by running

install_ocssw.py --install-dir=/tmp/ocssw-fetch/ocssw/ -b v7.5 --aqua --terra --viirsn --viirsj1

so there's a very good chance there have been improvements since then. On the other hand what we have works pretty reliably so I'm hesitant to mess with it.

Thanks again,
Andrew L.

Re: SeaDAS - Error when running getanc.py

Posted: Wed Apr 13, 2022 5:31 pm America/New_York
by OB SeaDAS - xuanyang02
You are welcome!

Code: Select all

l2gen version
should show us your OCSSW tag. It's probably V2019.3

Code: Select all

install_ocssw.py --list_tags
should show you the available OCSSW tags, but the latest tag probably would not work with SeaDAS-7.5.

Check out SeaDAS_8.2.0 -- https://seadas.gsfc.nasa.gov/downloads/. You can install SeaDAS-8.2.0 in a different directory while keep SeaDAS-7.5 in it's current directory