SeaDAS 7.5 ancillary data downloads via are failing

Please enter here to ask a question about any NASA Science related topics!
Post Reply
Posts: 22
Joined: Tue Aug 09, 2005 12:58 pm America/New_York

SeaDAS 7.5 ancillary data downloads via are failing

by liamgumley » Thu Jan 16, 2020 2:03 pm America/New_York

I have installed a fresh copy of SeaDAS 7.5 on CentOS 7.7.

I am trying to download ancillary data using, and it is consistently failing as shown below. I understand that NASA Earthdata login is now required to download data. Is there a way to provide my login credentials to (assuming that is the problem)?

Liam. -v -s 2020016150000
Searching database: /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/ancillary_data.db
Input file: None
Sensor    : None
Start time: 2020016150000
End time  : None
Downloading 'N202001606_MET_NCEP_6h.hdf' to /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/anc/2020/016
Connection interrupted, retrying up to 5 more time(s)
Connection interrupted, retrying up to 4 more time(s)
Connection interrupted, retrying up to 3 more time(s)
^CWell, the server did not like this...reports: Found
*** ERROR: The HTTP transfer failed with status code 302.
*** Please check your network connection and for the existence of the remote file:
*** Also check to make sure you have write permissions under the directory:
*** /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/anc/2020/016


OB.DAAC - SeanBailey
User Services
User Services
Posts: 1216
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

SeaDAS 7.5 ancillary data downloads via are failing

by OB.DAAC - SeanBailey » Thu Jan 16, 2020 2:17 pm America/New_York


Not yet...

Until we get a version that will, a work around would be to call with the -d option (--disable-download) to get the list of files and use wget or cURL to get the files.


Posts: 52
Joined: Thu Jun 04, 2015 10:50 am America/New_York

SeaDAS 7.5 ancillary data downloads via are failing

by woodbri » Thu Jan 16, 2020 9:25 pm America/New_York


I wrote the follow python replacement for, rename the original to and put this in
I offer it as is, here with public domain license, in the hope that it will help others. (EDIT: If you got an earlier post this has some fixes in it)

#!/usr/bin/env python3

import subprocess
import os.path
import sys
import os

def fetchAndStore(fname):

    (fpath, fn) = os.path.split(fname)
    os.makedirs(fpath, exist_ok=True)

    url = '' + fn

    wget = ['wget', '-q', '--load-cookies', '~/.urs_cookies', '--save-cookies', '~/.urs_cookies', '--auth-no-challenge=on', '--keep-session-cookies', '--content-disposition', url]

    out =, stdout= subprocess.PIPE, stderr=subprocess.STDOUT)
    if os.path.exists(fn):
        mv = ['mv', fn, fname]
    elif os.path.exists(fn + '.bz2'):
        mv = ['mv', fn + '.bz2', fname + '.bz2']
        unzip = ['bunzip2', fname + '.bz2']
        print('ERROR: failed to fetch: ' + url + "\n")

getanc = '/u/oceandata/scripts/';

cmd = [getanc, '-d'] + sys.argv[1:]

out =, stdout= subprocess.PIPE, stderr=subprocess.STDOUT)
lines = out.stdout.decode('utf-8').split()

for line in lines:
    line = line.strip()
    if "icefile=" in line:
        icefile = line[8:]
        print(icefile + "\n")
        if not os.path.exists(icefile):
    elif "met" in line:
        metfile = line[5:]
        print(metfile + "\n")
        if not os.path.exists(metfile):
    elif "sstfile=" in line:
        sstfile = line[8:]
        print(sstfile + "\n")
        if not os.path.exists(sstfile):

Post Reply