Page 1 of 1

What did I forget to install and where do I find it?

Posted: Fri Apr 16, 2021 12:51 pm America/New_York
by bruce
New installation of SeaDAS 8 on ubuntu 20.04.

Attempting the following command

modis_L1A_extract --verbose A2021102160000.L1A_LAC --geofile=A2021102160000.GEO -w -71 -s 42 -e -66 -n 45 -o A2021102160000.L1A_LAC.SUB --extract_geo=A2021102160000.GEO.SUB

results in

Code: Select all

Traceback (most recent call last):
  File "/seadas/seadas-8.0/OCSSW/bin/modis_L1A_extract", line 3, in <module>
    import seadasutils.anc_utils as anc_utils
  File "/seadas/seadas-8.0/OCSSW/bin/seadasutils/anc_utils.py", line 17, in <module>
    from viirs.viirs_utils import viirs_timestamp
ImportError: No module named viirs.viirs_utils
When I did the SeaDAS-OCSSW->Install/update OC processors I selected
modisa, modist, seawifs, viirsn and viirsj1. It would appear I should have picked something else as well.

So, what else was it I should have done?

Re: What did I forget to install and where do I find it?

Posted: Fri Apr 16, 2021 3:31 pm America/New_York
by OB SeaDAS - xuanyang02
When yo do SeaDAS-OCSSW->Install/update OC processors you need to check "VIIRS DEM files" too.

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 11:12 am America/New_York
by bruce
I'll try that, but... It's a modis file, not viirs. Why would I need a viirs DEM file to process an aqua modis file?

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 11:20 am America/New_York
by bruce
Installed the viirsdem, and the source option, and it fails the same way...

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 11:23 am America/New_York
by OB.DAAC - SeanBailey
Hmmm...the viirs.viirs_utils code is part of the "bin" install, no sensor specific bits necessary.
You should have $OCSSWROOT/bin/viirs/viirs_utils.py...if that's not the case, something went awry not sure how that could have happened. If you don't have that viirs_util.py, try running install_ocssw -t V2020.2 --seadas
(unless you installed a different tag, but I believe it should be V2020.2...the most recent is V2021.1, but it's not that different)

Sean

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 11:28 am America/New_York
by bruce
It's there...

Code: Select all

bcb@modis:/seadas/seadas-8.0/OCSSW/bin/viirs$ ls -l total 8
drwxrwxrwx 2 bcb bcb 4096 Apr 16 11:02 __pycache__
-rw-r--r-- 1 bcb bcb 1175 Apr 16 10:29 viirs_utils.py
bcb@modis:/seadas/seadas-8.0/OCSSW/bin/viirs$ 
And I did use 2021.1

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 11:53 am America/New_York
by OB SeaDAS - xuanyang02
Can you do SeaDAS-OCSSW->SeaDAS/System Info?

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 12:07 pm America/New_York
by OB.DAAC - SeanBailey
It's a bug. Well, a missing 3, really.

The modis_L1A_extract is missing the 3 on the python in the shebang line:
#! /usr/bin/env python

should be
#! /usr/bin/env python3

Add the 3 to $OCSSWROOT/bin/modis_L1A_extract and try again. I'll fix it in the repository so the next tag will have it.

Sean

Re: What did I forget to install and where do I find it?

Posted: Mon Apr 19, 2021 1:22 pm America/New_York
by bruce
bingo... I actually thought about that on my way home for lunch, but I thought, "nah Sean's too good to forget a '3'" :-)