install_ocssw script can't find OCSSW_bash.env
-
- Subject Matter Expert
- Posts: 147
- Joined: Tue Feb 09, 2021 8:19 am America/New_York
install_ocssw script can't find OCSSW_bash.env
Hello my friends in the OBPG,
I just decided to reinstall the OCSSW software from scratch on my Ubuntu 20.04.3 machine to pick up all of the latest goodies (in particular, I would like to start processing Landsat 8 and 9 Collection 2 data), but I ran into a problem. The install script rolled merrily along until it tripped over a missing OCSSW_bash.env file.
./install_ocssw --install_dir=/data1/ocssw --tag V2022.0 -v --luts --viirs_l1_bin --hawkeye --hico --modisa --modist --msis2a --msis2b --olcis3a --olcis3b --oli --viirsdem --viirsj1 --viirsn --opt --common
...
Installing lut - modisa
/data1/ocssw/bin/ocssw_runner: line 16: /data1/ocssw/OCSSW_bash.env: No such file or directory
/data1/ocssw/bin/ocssw_runner: line 23: update_luts: command not found
Error: return = 127 : trying to run command = /data1/ocssw/bin/ocssw_runner --ocsswroot /data1/ocssw update_luts modisa
Question: Is V2022.0 the version I should be using, and shouldn't the install script download the OCSSW_bash.env file for me?
Cheers,
Norman
I just decided to reinstall the OCSSW software from scratch on my Ubuntu 20.04.3 machine to pick up all of the latest goodies (in particular, I would like to start processing Landsat 8 and 9 Collection 2 data), but I ran into a problem. The install script rolled merrily along until it tripped over a missing OCSSW_bash.env file.
./install_ocssw --install_dir=/data1/ocssw --tag V2022.0 -v --luts --viirs_l1_bin --hawkeye --hico --modisa --modist --msis2a --msis2b --olcis3a --olcis3b --oli --viirsdem --viirsj1 --viirsn --opt --common
...
Installing lut - modisa
/data1/ocssw/bin/ocssw_runner: line 16: /data1/ocssw/OCSSW_bash.env: No such file or directory
/data1/ocssw/bin/ocssw_runner: line 23: update_luts: command not found
Error: return = 127 : trying to run command = /data1/ocssw/bin/ocssw_runner --ocsswroot /data1/ocssw update_luts modisa
Question: Is V2022.0 the version I should be using, and shouldn't the install script download the OCSSW_bash.env file for me?
Cheers,
Norman
Filters:
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: install_ocssw script can't find OCSSW_bash.env
Hi Norman,
Add --root to the command (root is the one that installs the OCSSW_bash.env you seek)
A simpler ssolution is to ask the installer to install the seadas bits
$ install_ocssw --tag V2022.0 --seadas --hawkeye --hico --modisa --modist --msis2a --msis2b --olcis3a --olcis3b --oli --viirsj1 --viirsn
--seadas sets:
--root
--bin
--opt
--luts
--common
--ocrvc
Also, setting either --viirsn or --viirsj1 will aslo set --viirsdem and --viirs_l1_ibin, so no need to specify them separately
Sean
Add --root to the command (root is the one that installs the OCSSW_bash.env you seek)
A simpler ssolution is to ask the installer to install the seadas bits

$ install_ocssw --tag V2022.0 --seadas --hawkeye --hico --modisa --modist --msis2a --msis2b --olcis3a --olcis3b --oli --viirsj1 --viirsn
--seadas sets:
--root
--bin
--opt
--luts
--common
--ocrvc
Also, setting either --viirsn or --viirsj1 will aslo set --viirsdem and --viirs_l1_ibin, so no need to specify them separately
Sean
-
- Subject Matter Expert
- Posts: 147
- Joined: Tue Feb 09, 2021 8:19 am America/New_York
Re: install_ocssw script can't find OCSSW_bash.env
Hi Sean,
That worked like a charm.
I'm guessing you are still at the top of the leaderboard of forum responses. I'm sorry to add to your load, but I very much appreciate the help.
I hope all is going well in the OBPG.
Norman
That worked like a charm.
I'm guessing you are still at the top of the leaderboard of forum responses. I'm sorry to add to your load, but I very much appreciate the help.
I hope all is going well in the OBPG.
Norman
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: install_ocssw script can't find OCSSW_bash.env
Norman,
Always happy to help (and yes, I think I'm still king of the hill
...working on training up my competition, though)
Sean
Always happy to help (and yes, I think I'm still king of the hill

Sean
Re: install_ocssw script can't find OCSSW_bash.env
Hello Sean,
I met a similar problem when I installed OCSSW for seadas-7.5.3 in ubuntu20.04. After I installed seadas-7.5.3, I installed OCSSW following this website: https://seadas.gsfc.nasa.gov/tutorials/installation_tutorial/
However, I got the error in the attached photo when I ran "./install_ocssw.py --install-dir=seadas-7.5.3 /home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5.3 --local=/tmp --aqua –seawifs". I may need to download this file "OCSSW_bash.env.v7.5.3" and put it in the related folder. But I did not find where to download this file.
Could you help me solve this issue?
Thank you!
Kind regards,
Sunny
I met a similar problem when I installed OCSSW for seadas-7.5.3 in ubuntu20.04. After I installed seadas-7.5.3, I installed OCSSW following this website: https://seadas.gsfc.nasa.gov/tutorials/installation_tutorial/
However, I got the error in the attached photo when I ran "./install_ocssw.py --install-dir=seadas-7.5.3 /home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5.3 --local=/tmp --aqua –seawifs". I may need to download this file "OCSSW_bash.env.v7.5.3" and put it in the related folder. But I did not find where to download this file.
Could you help me solve this issue?
Thank you!
Kind regards,
Sunny