l3bin

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Locked
dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

l3bin

by dale.robinson » Mon Jun 06, 2022 11:46 am America/New_York

I installed ocssw using "install_ocssw.py"
python install_ocssw.py -i=/cwdata1/seadas8.2/ocssw --aqua --seawifs --viirsj1 --viirsn

When using l3bin (l3bin infile=ma_binmo_list200402.txt ofile=/cwdata1/poc2/bin_month/modis/2004/M_200402_monthbin.nc prod=poc)
it fails with this error message: "/home/seadas/ocssw/oel_hdf4/libbin/bin_io.cpp: Permission denied"
The dir "/home/seadas/" does not exist. I have set $OCSSWROOT to my ocssw install local "/cwdata1/seadas8.2/ocssw". Other ocssw commands like l2bin work. The OS is Redhat 7.9.

Please let me know what I've done wrong and what additional info you need. Thanks

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: l3bin

by OB SeaDAS - xuanyang02 » Mon Jun 06, 2022 2:02 pm America/New_York

Please try this --

Code: Select all

install_ocssw -i=/cwdata1/seadas8.2/ocssw --tag V2022.0 --seadas --modisa --seawifs --viirsj1 --viirsn --viirsdem
https://seadas.gsfc.nasa.gov/downloads/

Make sure ma_binmo_list200402.txt is a plain text file and the files named in it exist. I was able to perform l3bin on a list of l3 files.
Last edited by OB SeaDAS - xuanyang02 on Fri Jun 10, 2022 11:57 am America/New_York, edited 1 time in total.

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin

by dale.robinson » Thu Jun 09, 2022 10:31 pm America/New_York

Yes, the ma_binmo_list200402.txt is a plain text file and the files named in it do exist? It seems that the error indicates that I am missing a SeaDAS component and/or that the environmental variables are incorrectly set.

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: l3bin

by OB SeaDAS - xuanyang02 » Fri Jun 10, 2022 10:16 am America/New_York

I thought the seadas component was missing. That's the reason I asked you to do install_ocssw with --seadas argument earlier. I am curious how you can do l2bin without the seadas component. Could you please do

Code: Select all

seadas_info
and post the result here?

You need --seadas argument to get the seadas bundle

Code: Select all

install_ocssw --install_dir $OCSSWROOT --tag V2022.0 --seadas
Installing (1 of 6) - bin_macosx_intel
Installing (2 of 6) - lib_macosx_intel
Installing (3 of 6) - opt_macosx_intel
Installing (4 of 6) - root
Installing (5 of 6) - common
Installing (6 of 6) - ocrvc
Installing lut - common
Done

You might want to delete /cwdata1/seadas8.2/ocssw and redo install_ocssw.

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin

by dale.robinson » Mon Jun 13, 2022 7:09 pm America/New_York

OK, I ran:
install_ocssw -i=/cwdata1/seadas8.2/ocssw --tag V2022.0 --seadas --modisa --seawifs --viirsj1 --viirsn --viirsdem

and got this error:
install_ocssw.py: error: no such option: --tag

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin

by dale.robinson » Mon Jun 13, 2022 7:17 pm America/New_York

In addition, when I shorten the command to install_ocssw -i=/cwdata1/seadas8.2/ocssw --seadas
the error is "install_ocssw.py: error: no such option: --seadas".

Version is:
install_ocssw.py 3.0

Looking at install_ocssw -h I get:
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose Print more information while running
-i INSTALL_DIR, --install-dir=INSTALL_DIR
destination directory for install. Defaults to
$OCSSWROOT or "$HOME/ocssw" if neither are given.
-g GIT_BASE, --git-base=GIT_BASE
web location for the git repositories
-b GIT_BRANCH, --git-branch=GIT_BRANCH
branch in the git repositories to checkout
-a ARCH, --arch=ARCH set system architecture (linux, linux_64,
macosx_intel)
-s, --src install source code
-l LOCAL, --local=LOCAL
local directory containing previously downloaded
bundles
-c, --clean Do a clean install by deleting the install directory
first, if it exists
--curl use curl for download instead of wget
--no-update do not update the git repositories or luts
--save-dir=SAVE_DIR destination directory to save all of the install
files.
--aquarius install Aquarius files
--avhrr install AVHRR files
--czcs install CZCS files
--goci install GOCI files
--hico install HICO files
--meris install MERIS files
--aqua install MODIS Aqua files
--terra install MODIS Terra files
--mos install MOS files
--msis2a install MSI S2A files
--msis2b install MSI S2B files
--ocm1 install OCM1 files
--ocm2 install OCM2 files
--octs install OCTS files
--olcis3a install OLCI Sentinel 3A files
--olcis3b install OLCI Sentinel 3B files
--oli install Landsat 8 OLI files
--osmi install OSMI files
--seawifs install SeaWiFS files
--viirsn install VIIRS NPP files
--viirsj1 install VIIRS JPSS1 files
--viirsdem install VIIRS digital elevation map (DEM) files
--direct-broadcast install direct broadcast files

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: l3bin

by OB SeaDAS - xuanyang02 » Tue Jun 14, 2022 9:39 am America/New_York

install_ocssw.py (3.0) is for installing ocssw that is compatible with SeaDAS 7 - https://seadas.gsfc.nasa.gov/help-7.5.3/

To install ocssw for SeaDAS 8.2, please follow the instruction on this page -- https://seadas.gsfc.nasa.gov/downloads/

You can install ocssw through GUI, which is a lot easier.

If you decide to install ocssw on command line, please follow the instruction on manual installation. You will need to download installer script (install_ocssw, not install_ocssw.py) and manifest script

Either way, you might need to delete /cwdata1/seadas8.2/ocssw first

dale.robinson
Posts: 21
Joined: Thu Jun 23, 2016 2:03 pm America/New_York
Answers: 0

Re: l3bin

by dale.robinson » Tue Jun 14, 2022 6:46 pm America/New_York

That was the fix! I knew I'd done something wrong with the installation. Thank you for your help.

Locked