l2gen does not work for landsat oli in seadas v7.5.1

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Wed Sep 19, 2018 1:33 am America/New_York

I have seadas v7.5.1 downloaded and installed on my mac. I was trying to install the OC processors using GUI but I got an error popped out like "ocssw installation script failed to download. please check network connection or seadas.ocssw.root variable in the seadas.config. file. possible cause of error: operation timed out"... So I switched to manual installation and I did install the oli processors for my landsat image processing. However, when I was trying to process landsat images using l2gen, it gave me error like this:
 
# PRIMARY INPUT OUTPUT FIELDS
ifile=/Users/fang/Downloads/LC08_L1TP_014034_20180615_20180703_01_T1/LC08_L1TP_014034_20180615_20180703_01_T1_MTL.txt
# # WARNING!!! file /Users/fang/Downloads/LC08_L1TP_014034_20180615_20180703_01_T1/LC08_L1TP_014034_20180615_20180703_01_T1_MTL.txt is not a valid input mission: Mission=null

Any suggestions to solve this problem?
Thank you for looking into this.
Fang

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

l2gen does not work for landsat oli in seadas v7.5.1

by OB SeaDAS - dshea » Wed Sep 19, 2018 9:25 am America/New_York

If you put the file in question somewhere where I can grab it, I'll take a look.

fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Wed Sep 19, 2018 8:55 pm America/New_York

Thank you, dshea ! Here is the file I was trying to process using l2gen in 7.5.1

https://www.dropbox.com/s/c3xsi1p01b2cqg5/LC08_L1TP_014034_20180615_20180703_01_T1.tar?dl=0

I double checked that I did install the oli processor under the same path of seadas. The java version I am using is 
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

$ python --version
Python 3.6.5 :: Anaconda, Inc.
and I am working on max os high sierra version 10.13.3..

I really want to get this problem solved so please help!!
Thank you!
Fang

fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Wed Sep 19, 2018 9:35 pm America/New_York

I installed my seadas under the path of /Applications/seadas-7.5.1
I then put the install_ocssw.py file which I got from the seadas website into the same seadas-7.5.1 folder and I checked it is executable, and I installed oli using
$ ./install_ocssw.py --install-dir=$/Applications/seadas-7.5.1/ocssw v7.5.1 --oli

The installation went smoothly and no errors reported..

It does not work for l2gen when I was trying to process the files that I shared via the link above. Please help!
  Thank you.
  Fang

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

l2gen does not work for landsat oli in seadas v7.5.1

by OB SeaDAS - dshea » Thu Sep 20, 2018 11:10 am America/New_York

From your terminal, try launching seadas

$ open /Applications/seadas-7.5.1/bin/seadas.app

Then see if you can update the OCSSW programs from the GUI.  If that works try l2gen from the GUI

By the way the correct command line invocation for the the installer would be:

$ ./install_ocssw.py --install-dir=/Applications/seadas-7.5.1/ocssw --git-branch=v7.5 --oli

fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Thu Sep 20, 2018 10:50 pm America/New_York

Thanks, Don. This time I first uninstalled seadas7.5 and trashed all the files left. I reinstalled seadas and opened GUI in the terminal following your last comment and this time I can install the OC processors (oli). Then I restarted the computer and opened seadas GUI but I still cannot use l2gen., same error was reported as

# PRIMARY INPUT OUTPUT FIELDS
ifile=/Users/fang/Downloads/LC08_L1TP_014034_20180615_20180703_01_T1/LC08_L1TP_014034_20180615_20180703_01_T1_MTL.txt
# # WARNING!!! file /Users/fang/Downloads/LC08_L1TP_014034_20180615_20180703_01_T1/LC08_L1TP_014034_20180615_20180703_01_T1_MTL.txt is not a valid input mission: Mission=null

# SUITE
suite=OC

# ANCILLARY INPUTS  Default = climatology (select 'Get Ancillary' to download ancillary files)

What was the problem then ? Any more ideas?
Thank you!
  Fang

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

l2gen does not work for landsat oli in seadas v7.5.1

by OB SeaDAS - dshea » Fri Sep 21, 2018 9:05 am America/New_York

I think the problem is that your Terminals (bash) environment is setting up a PATH that points to a better version of python.  When SeaDAS is launched from the Finder the PATH does not get setup and the default python does not work for SeaDAS.

Try launching SeaDAS from the command line and see if l2gen works from the GUI.

don

fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Fri Sep 21, 2018 9:20 am America/New_York

Thanks Don! I did launch seadas using command line in terminal but l2gen still did not work. What should I try next?Thank you again.
Fang

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1470
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

l2gen does not work for landsat oli in seadas v7.5.1

by OB.DAAC - SeanBailey » Sat Sep 22, 2018 3:16 pm America/New_York

Fang,
While we've modified our scripts so that they *should* work with python 3, the official SeaDAS support is still for v2.7
Install Anaconda for python v2.7, set it as your default and try again.

Sean

fcaonyy
Posts: 13
Joined: Thu Oct 01, 2015 1:09 pm America/New_York
Answers: 0

l2gen does not work for landsat oli in seadas v7.5.1

by fcaonyy » Wed Sep 26, 2018 4:15 am America/New_York

Thanks, Sean. It does work. Many thanks.
Fang

Post Reply