SeaDAS - Error when running getanc.py

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

SeaDAS - Error when running getanc.py

by alaroy » Mon Apr 11, 2022 4:52 pm America/New_York

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.

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: SeaDAS - Error when running getanc.py

by OB SeaDAS - xuanyang02 » Tue Apr 12, 2022 11:27 am America/New_York

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

alaroy
Posts: 78
Joined: Tue Nov 21, 2006 3:33 pm America/New_York
Answers: 0

Re: SeaDAS - Error when running getanc.py

by alaroy » Wed Apr 13, 2022 4:08 pm America/New_York

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.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: SeaDAS - Error when running getanc.py

by OB SeaDAS - xuanyang02 » Wed Apr 13, 2022 5:31 pm America/New_York

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

Post Reply