import numpy as np
import netCDF4 as nc
import matplotlib.pyplot as plt
from salishsea_tools import grid_tools, wind_tools
import glob
%matplotlib inline
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:90% !important; }</style>"))
winds_2014 = sorted(glob.glob('/results/forcing/atmospheric/GEM2.5/operational/ops_y2014*'))
weightsfile ='/home/vdo/MEOPAR/NEMO-forcing/grid/weights-gem2.5-ops.nc'
uwinds = {}
vwinds = {}
for file in winds_2014:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds[timestamp] = data1
vwinds[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m09d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m10d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m11d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2014m12d31.nc
winds_2015 = sorted(glob.glob('/results/forcing/atmospheric/GEM2.5/operational/ops_y2015m??d??.nc'))
for file in winds_2015[:100]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds[timestamp] = data1
vwinds[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m01d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m02d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m03d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d10.nc
for file in winds_2015[100:200]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds[timestamp] = data1
vwinds[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m04d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m05d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m06d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d19.nc
for file in winds_2015[200:300]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds[timestamp] = data1
vwinds[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m07d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m08d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m09d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d27.nc
for file in winds_2015[300:]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds[timestamp] = data1
vwinds[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m10d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m11d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2015m12d31.nc
winds_2016 = sorted(glob.glob('/results/forcing/atmospheric/GEM2.5/operational/ops*2016m??d??.nc'))
winds_2016[:5]
['/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d01.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d02.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d03.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d04.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d05.nc']
uwinds2 = {}
vwinds2 = {}
for file in winds_2016[:100]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m01d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m02d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m03d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d09.nc
for file in winds_2016[100:200]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m04d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m05d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m06d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d18.nc
for file in winds_2016[200:300]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m07d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m08d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m09d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d26.nc
for file in winds_2016[300:]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m10d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m11d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2016m12d31.nc
winds_2017 = sorted(glob.glob('/results/forcing/atmospheric/GEM2.5/operational/ops*2017m??d??.nc'))
winds_2017[:5]
['/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d01.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d02.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d03.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d04.nc', '/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d05.nc']
for file in winds_2017[:100]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m01d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m02d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m03d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d10.nc
for file in winds_2017[100:200]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m04d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m05d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m06d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d19.nc
for file in winds_2017[200:]:
print(file)
for n in range(24):
timestamp = nc.Dataset(file).variables['time_counter'][n]
M, nemoshape = grid_tools.build_matrix(weightsfile, file)
data1 = grid_tools.use_matrix(file, M, nemoshape, 'u_wind', n)
data2 = grid_tools.use_matrix(file, M, nemoshape, 'v_wind', n)
uwinds2[timestamp] = data1
vwinds2[timestamp] = data2
/results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m07d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d27.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d28.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d29.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d30.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m08d31.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d01.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d02.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d03.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d04.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d05.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d06.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d07.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d08.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d09.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d10.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d11.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d12.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d13.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d14.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d15.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d16.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d17.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d18.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d19.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d20.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d21.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d22.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d23.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d24.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d25.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d26.nc /results/forcing/atmospheric/GEM2.5/operational/ops_y2017m09d27.nc
thalweg_file='/data/nsoontie/MEOPAR/tools/bathymetry/thalweg_working.txt'
thalweg_pts = np.loadtxt(thalweg_file, delimiter=' ', dtype=int)
thalweg_uwinds = {}
thalweg_vwinds = {}
for key in uwinds.keys():
thalweg_uwinds[key] = np.array([uwinds[key][y,x] for y,x in thalweg_pts])
thalweg_vwinds[key] = np.array([vwinds[key][y,x] for y,x in thalweg_pts])
thalweg_uwinds2 = {}
thalweg_vwinds2 = {}
for key in uwinds2.keys():
thalweg_uwinds2[key] = np.array([uwinds2[key][y,x] for y,x in thalweg_pts])
thalweg_vwinds2[key] = np.array([vwinds2[key][y,x] for y,x in thalweg_pts])
speed = {}
direction ={}
for key in thalweg_uwinds.keys():
s, d = wind_tools.wind_speed_dir(thalweg_uwinds[key],thalweg_vwinds[key])
speed[key] = s
direction[key] = d
for key in thalweg_uwinds2.keys():
s, d = wind_tools.wind_speed_dir(thalweg_uwinds2[key],thalweg_vwinds2[key])
speed[key] = s
direction[key] = d
speed[list(speed.keys())[0]].shape
(1540,)
len(speed.keys())
26688
speeds = np.zeros((26688, 1540))
for n in range(26688):
speeds[n,:] = speed[list(speed.keys())[n]]
directions = np.zeros((26688, 1540))
for n in range(26688):
directions[n,:] = direction[list(direction.keys())[n]]
fig, ax = plt.subplots(figsize=(25,5))
spe = ax.pcolormesh(nc.num2date(list(speed.keys()),
nc.Dataset(winds_2014[0]).variables['time_counter'].units),
np.arange(1540),
speeds.T)
fig.colorbar(spe, ax=ax)
<matplotlib.colorbar.Colorbar at 0x7f806dd63eb8>
import pickle
import cmocean
output = open('speed.pkl', 'wb')
pickle.dump(speed, output)
output1 = open('speeds.pkl', 'wb')
pickle.dump(speeds, output1)
output.close()
output1.close()
output3 = open('direction.pkl', 'wb')
pickle.dump(direction, output3)
output4 = open('directions.pkl', 'wb')
pickle.dump(directions, output4)
output3.close()
output4.close()
direction = pickle.load(open('direction.pkl', 'rb'))
directions = pickle.load(open('directions.pkl', 'rb'))
fig, ax = plt.subplots(figsize=(25,5))
dirs = ax.pcolormesh(nc.num2date(list(direction.keys()),
nc.Dataset(winds_2014[0]).variables['time_counter'].units),
np.arange(1540),
directions.T, cmap = cmocean.cm.phase)
fig.colorbar(dirs, ax=ax)
<matplotlib.colorbar.Colorbar at 0x7f20fc2213c8>