Commit 91522a1e authored by Carl Schreck's avatar Carl Schreck

Automated Nightly Commit - Sat May 4 00:00:46 EDT 2019

parent b06eb98f
""" Untar data from UCAR, read 6-hourly files for a year, then write it out. """
__author__ = "Carl Schreck"
__email__ = "cjschrec@ncsu.edu"
__copyright__ = "Copyright 2019, North Carolina State University"
__license__ = "BSD-3.0"
import xarray as xr
import sys
sys.path.append('/home/carl/lib/python')
import cjs
import tarfile, os, glob
if len(sys.argv) > 1:
year = sys.argv[1]
else:
year = '1979'
print('Year = ', year)
cjs.tstamp('Here we go!')
basedir = '/home/carl/data/era-interim/incoming/'
os.makedirs(basedir + year, exist_ok=True)
tar_files = glob.glob(basedir + 'tar/*' + year + '*.tar')
print(tar_files)
#tar = tarfile.open(basedir +
cjs.tstamp('Thank you, come again.')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment