why update_luts.py can't work?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
xpf7622
Posts: 14
Joined: Thu May 24, 2018 10:05 am America/New_York
Answers: 0

why update_luts.py can't work?

by xpf7622 » Mon May 28, 2018 9:29 pm America/New_York

I install viirsn use --local =. pararmeter, the prompt message as follow:
Not updating Git Repository, no-update requested
Installing bin (7 of 9)
Not updating Git Repository, no-update requested
Installing opt (8 of 9)
Not updating Git Repository, no-update requested
Installing scripts (9 of 9)
Not updating Git Repository, no-update requested
Python version acceptable
Not updating LUTs, no-update requested

so, I use update_luts.py -v viirsn ,but  I got the message as the follwing message:, I search the forum, the same command can run, why my comman can't work?
pfxie@pfxie-p71:~$ update_luts.py -v viirsn
[Errno 2] No such file or directory: '/home/pfxie/ocssw/share/common/SensorInfo.txt'
usage: update_luts.py [-h] [-e] [-v] [-n] [--timeout TIMEOUT] MISSION

Retrieve latest lookup tables for specified sensor.

positional arguments:
  MISSION            sensor or platform to process; one of:
                     seawifs, aquarius, modisa, modist, viirsn, aqua, terra, npp

optional arguments:
  -h, --help         show this help message and exit
  -e, --eval         also download evaluation LUTs (default: False)
  -v, --verbose      print status messages (default: False)
  -n, --dry-run      no action; preview files to be downloaded (default: False)
  --timeout TIMEOUT  network timeout in seconds (default: 10)

Filters:

xpf7622
Posts: 14
Joined: Thu May 24, 2018 10:05 am America/New_York
Answers: 0

why update_luts.py can't work?

by xpf7622 » Tue May 29, 2018 8:11 pm America/New_York

pfxie@pfxie-p71:/media/pfxie/06880825274D27A2/seadas-windows共享/seadas7.5$ ./install_ocssw.py --install-dir=$HOME/ocssw --git-branch=v7.5  --viirsn
Installing bundles.sha256sum (1 of 10)
--2018-05-30 08:09:34--  https://oceandata.sci.gsfc.nasa.gov/ocssw/bundles.sha256sum
正在连接 xx.xxx.xx.xx:8087... 已连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度: 3809 (3.7K) [application/octet-stream]
正在保存至: “bundles.sha256sum”

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

2018-05-30 08:09:35 (26.4 MB/s) - 已保存 “bundles.sha256sum” [3809/3809])

Installing common (2 of 10)
Installing OCSSW_bash.env (3 of 10)
--2018-05-30 08:09:36--  https://oceandata.sci.gsfc.nasa.gov/ocssw/OCSSW_bash.env.v7.5
正在连接 xx.xxx.xx.xx:8087... 已连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度: 3001 (2.9K) [application/octet-stream]
正在保存至: “OCSSW_bash.env.v7.5”

OCSSW_bash.env.v7.5 100%[===================>]   2.93K  --.-KB/s    in 0s     

2018-05-30 08:09:37 (17.6 MB/s) - 已保存 “OCSSW_bash.env.v7.5” [3001/3001])

Installing ocrvc (4 of 10)
Installing viirs (5 of 10)
Installing viirs/npp (6 of 10)
Installing bin (7 of 10)
Installing opt (8 of 10)
Installing scripts (9 of 10)
Python version acceptable
Installing viirsnpp-luts (10 of 10)
Traceback (most recent call last):
  File "/home/pfxie/ocssw/scripts/update_luts.py", line 66, in <module>
    luts.get_luts()
  File "/home/pfxie/ocssw/scripts/modules/LutUtils.py", line 128, in get_luts
    regex='^((?!d+).)*' + suffix, check_times=True)
  File "/home/pfxie/ocssw/scripts/modules/JsonUtils.py", line 269, in download_allfiles
    all_links = self.get_links(url, regex=regex)
  File "/home/pfxie/ocssw/scripts/modules/JsonUtils.py", line 234, in get_links
    response = self.open_url(url, get=True)
  File "/home/pfxie/ocssw/scripts/modules/JsonUtils.py", line 166, in open_url
    self.session, proxy = httpinit(parts.netloc, timeout=self.timeout)
  File "/home/pfxie/ocssw/scripts/modules/ProcUtils.py", line 48, in httpinit
    proxy.port, timeout=timeout)
  File "/usr/lib/python2.7/httplib.py", line 751, in __init__
    (self.host, self.port) = self._get_hostport(host, port)
  File "/usr/lib/python2.7/httplib.py", line 783, in _get_hostport
    i = host.rfind(':')
AttributeError: 'NoneType' object has no attribute 'rfind'
Error - Could not install luts for viirsn

Post Reply