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

Please enter here to ask a question about any NASA Science related topics!
Post Reply
bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

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

by bruce » Fri Apr 16, 2021 12:51 pm America/New_York

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?

Tags:

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

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

by OB SeaDAS - xuanyang02 » Fri Apr 16, 2021 3:31 pm America/New_York

When yo do SeaDAS-OCSSW->Install/update OC processors you need to check "VIIRS DEM files" too.

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

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

by bruce » Mon Apr 19, 2021 11:12 am America/New_York

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?

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

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

by bruce » Mon Apr 19, 2021 11:20 am America/New_York

Installed the viirsdem, and the source option, and it fails the same way...

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1219
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

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

by OB.DAAC - SeanBailey » Mon Apr 19, 2021 11:23 am America/New_York

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

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

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

by bruce » Mon Apr 19, 2021 11:28 am America/New_York

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

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

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

by OB SeaDAS - xuanyang02 » Mon Apr 19, 2021 11:53 am America/New_York

Can you do SeaDAS-OCSSW->SeaDAS/System Info?

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1219
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

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

by OB.DAAC - SeanBailey » Mon Apr 19, 2021 12:07 pm America/New_York

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

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

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

by bruce » Mon Apr 19, 2021 1:22 pm America/New_York

bingo... I actually thought about that on my way home for lunch, but I thought, "nah Sean's too good to forget a '3'" :-)

Post Reply