Trouble Command Line Scripting SeaDAS l2bin/l3map (OCDATAROOT not defined)
Posted: Fri Apr 05, 2019 6:40 pm America/New_York
I am trying to validate some Harmful Algal Bloom detection algorithms using in situ data. To this end I have had success in using the SeaDAS GUI to bin and map level 2 netCDF4 files to create level 3 mapped netCDF4 data files (which is kind of ideal for me since I can process these files in ArcMap using a preexisting script). I want to script this process for many files but am having trouble. To start with, I tried running the l2bin executable (from seadas-7.5.3/ocssw/bin) from the terminal, and get the following output:
---
l2bin 5.0.0 (Dec 19 2018 12:40:11)
OCDATAROOT environment variable is not defined.
Input listing file: "" not found.
---
I do not know what the OCDATAROOT variable is supposed to be set to (Is it ~/Applications/seadas<version number>?) or why it was unset to begin with. Am I going about this the wrong way? Any help would be appreciated.
From the somewhat similar forum post here (https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=5106) I would speculate that there may be a conflict with a preexisting installation, but I uninstalled the previous version a while ago and reinstalled the new one and that still did not fix things.
---
l2bin 5.0.0 (Dec 19 2018 12:40:11)
OCDATAROOT environment variable is not defined.
Input listing file: "" not found.
---
I do not know what the OCDATAROOT variable is supposed to be set to (Is it ~/Applications/seadas<version number>?) or why it was unset to begin with. Am I going about this the wrong way? Any help would be appreciated.
From the somewhat similar forum post here (https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=5106) I would speculate that there may be a conflict with a preexisting installation, but I uninstalled the previous version a while ago and reinstalled the new one and that still did not fix things.