error during MODIS Aqua definition installation using terminal

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
madhur
Posts: 7
Joined: Sun Dec 04, 2016 11:01 am America/New_York
Answers: 0

error during MODIS Aqua definition installation using terminal

by madhur » Mon Jun 12, 2017 1:30 pm America/New_York

I tried to install MODIS-Aqua sensor definition using Mac terminal. Following error occurred:
My system information:
Machine - OS X El Capitan
SeaDAS version- seadas-7.3.2
git branch version- v7.3

The error that occurred:

ws135-54:seadas concerned files madhur$ chmod +x install_ocssw.py
ws135-54:seadas concerned files madhur$ ./install_ocssw.py --install-dir=$HOME/Applications/seadas-7.3.2/ocssw --git-branch=7.3 --aqua
Installing bundles.sha256sum (1 of 13)
--2017-06-12 11:50:37--  https://oceandata.sci.gsfc.nasa.gov/ocssw/bundles.sha256sum
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... xx.xxx.xx.xx, 2001:4d0:2418:128::84
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2736 (2.7K) [text/plain]
Saving to: ‘bundles.sha256sum’

bundles.sha256sum   100%[===================>]   2.67K  --.-KB/s    in 0s     

2017-06-12 11:50:37 (113 MB/s) - ‘bundles.sha256sum’ saved [2736/2736]

Installing common (2 of 13)
fatal: Cannot update paths and switch to branch '7.3' at the same time.
Did you intend to checkout 'remotes/origin/7.3' which can not be resolved as commit?
Error - Could not run "cd /Users/madhur/Applications/seadas-7.3.2/ocssw/run/data/common; git checkout -t -B 7.3 remotes/origin/7.3 -q > /dev/null"
ws135-54:seadas concerned files madhur$

Thank you for your kind support.
Madhur

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

error during MODIS Aqua definition installation using terminal

by OB SeaDAS - dshea » Mon Jun 12, 2017 1:44 pm America/New_York

your branch command is missing the 'v' It should be:
--git-branch=v7.3

By the way there is a new version of Seadas you will probably want to upgrade to 7.4

don

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

error during MODIS Aqua definition installation using terminal

by OB.DAAC - SeanBailey » Mon Jun 12, 2017 1:45 pm America/New_York

--git-branch=7.3 should be  --git-branch=v7.3 ...well, you really should install v7.4 instead..

madhur
Posts: 7
Joined: Sun Dec 04, 2016 11:01 am America/New_York
Answers: 0

error during MODIS Aqua definition installation using terminal

by madhur » Mon Jun 12, 2017 3:22 pm America/New_York

Thank you don. I will install v7.4. :)

madhur
Posts: 7
Joined: Sun Dec 04, 2016 11:01 am America/New_York
Answers: 0

error during MODIS Aqua definition installation using terminal

by madhur » Mon Jun 12, 2017 3:23 pm America/New_York

Thanks, Sean. :)

madhur
Posts: 7
Joined: Sun Dec 04, 2016 11:01 am America/New_York
Answers: 0

error during MODIS Aqua definition installation using terminal

by madhur » Mon Jun 12, 2017 4:28 pm America/New_York

I installed the git version 7.4 with old SeaDAS v7.3.2. I successfully installed the MODIS Terra sensor definition. But when I tried to process MODIS Terra data, following error appeared:

ws135-54:python_programs madhur$ python Batch_Proc.py

L2 to L3 processing started...
total number of files found=  41

/Applications/seadas-7.3.2/ocssw/run/data/hmodist/l2bin_defaults.par: No such file or directory
Traceback (most recent call last):
  File "Batch_Proc.py", line 228, in <module>
    batch_L23.batch_proc_L23(l2_dir, binmap_dir, prod_list_L23, space_res,time_period, color_flags, sst_flags, latlon, smi_proj, stats_yesno, straight_map)
  File "/Users/madhur/python_programs/batch_L23.py", line 505, in batch_proc_L23
    = setup(l2dir, smi_proj, latlon, stats_yesno, color_flags_to_check, sst_flags_to_check)
  File "/Users/madhur/python_programs/batch_L23.py", line 469, in setup
    color_named_flags_2check = get_sds7_default_l2flags(uniq_sat_type[0], 'color')
  File "utilities/my_mapping_utilities.py", line 563, in get_sds7_default_l2flags
    return flags[1]
IndexError: list index out of range
ws135-54:python_programs madhur$

Is the older version of SeaDAS the reason for this issue?

Thanks,
Madhur

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

error during MODIS Aqua definition installation using terminal

by OB.DAAC - SeanBailey » Wed Jun 14, 2017 8:07 am America/New_York

> /Applications/seadas-7.3.2/ocssw/run/data/hmodist/l2bin_defaults.par: No such file or directory


If that file (indeed the hmodist directory) doesn't exist, then you did not successfully install the MODIS-Terra data tree.

Sean

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

error during MODIS Aqua definition installation using terminal

by gnwiii » Wed Jun 14, 2017 12:23 pm America/New_York

Issues like:
/Applications/seadas-7.3.2/ocssw/run/data/hmodist/l2bin_defaults.par: No such file or directory
may indicate that the MODIS Terra files ended up in a different location, usually
/Users/<username>/ocssw/run/data/hmodist/l2bin_defaults.par
which is the default for command-line installs.  If you have a complete install of
version 7.4 in the latter location, you should be able to use it by adjusting the OCSSWROOT
variable and editing /Applications/seadas-7.3.2/config/seadas.config, but if you have doubts it
will be safest to wipe out the old install and any related environment settings and install the latest
version of SeaDAS. 

It is much easier for others to help with problems in a fully standard configuration.

Post Reply