Commit 206c9e93 authored by Carl Schreck's avatar Carl Schreck

Automated Nightly Commit - Wed Aug 28 00:01:22 EDT 2019

parent 3ff15080
......@@ -4,7 +4,7 @@
#else
# QUEUE=$1
#fi
QUEUE=allnodes
QUEUE=ibm
echo $QUEUE
PY_SCRIPT=merge_imerg
......@@ -24,7 +24,7 @@ bsub \
-o $LOG_FILE \
-e $ERR_FILE \
-q $QUEUE \
-n 1 -R "span[hosts=1]" -W 48:00 \
-n 24 -R "span[hosts=1]" -W 48:00 \
-sp 75 \
~/template/run_py.sh $PY_DIR $PY_SCRIPT "$PY_OPTION"
......
......@@ -21,14 +21,16 @@ in_files.sort()
# print(np.c_[in_files])
ds = xr.open_mfdataset(in_files, concat_dim='time')
cjs.tstamp('Changing time')
datetimeindex = ds.indexes['time'].to_datetimeindex()
ds['time'] = datetimeindex
ds.time.encoding['units'] = 'days since 1800-01-01'
ds.time.encoding['dtype'] = 'float64'
ds.encoding['_FillValue'] = -9999.
cjs.tstamp('Read/Write')
# datetimeindex = ds.indexes['time'].to_datetimeindex()
# ds['time'] = datetimeindex
# ds.time.encoding['units'] = 'days since 1800-01-01'
# ds.time.encoding['dtype'] = 'float64'
# ds.encoding['_FillValue'] = -9999.
# ds.sel(lat=slice(10, 20), lon=slice(-120, 0)).to_netcdf(out_path)
ds.sel.to_netcdf(out_path)
ds.to_netcdf(out_path)
cjs.tstamp('Closing')
ds.close()
......
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