years = [2015, 2015, 2015, 2015, 2015, 2015, 2013, 2014, ]
doys = [76, 191, 227, 250, 257, 263, 190, 143, ]
instr_nums = [[5,6], [5,6], [8,5,9,6], [8,5,9,6], [8,5,9,6], [8,5,6], [8,5,6], [5,9,6]]
sc = 750
scales = [2*sc, sc, sc, sc, sc, sc, sc, sc]
delta = False
for j in range(len(years)):
fig = dial(instr_nums[j], years[j], doys[j], delta=delta, scale=scales[j])
savefig('/home/bhardin2/ipython_figures/agu_2015/dial/dial_wind_%i_%03i.png' % (years[j], doys[j]))
years = [2015, 2015, 2015, 2015, 2015, 2015, 2013, 2014, ]
doys = [76, 191, 227, 250, 257, 263, 190, 143, ]
instr_nums = [[5,6], [5,6], [8,5,9,6], [8,5,9,6], [8,5,9,6], [8,5,6], [8,5,6], [5,9,6]]
sc = 750
scales = [2*sc, sc, sc, sc, sc, sc, sc, sc]
delta = True
for j in range(len(years)):
fig = dial(instr_nums[j], years[j], doys[j], delta=delta, scale=scales[j])
savefig('/home/bhardin2/ipython_figures/agu_2015/dial/dial_deltawind_%i_%03i.png' % (years[j], doys[j]))
years = [2015, 2015, 2015, 2015, 2015, 2015, 2013, 2014, ]
doys = [76, 191, 227, 250, 257, 263, 190, 143, ]
instr_nums = [[5,6], [5,6], [8,5,9,6], [8,5,9,6], [8,5,9,6], [8,5,6], [8,5,6], [5,9,6]]
sc = 750
scales = [2*sc, sc, sc, sc, sc, sc, sc, sc]
delta = False
for j in range(len(years)):
fig = dial_vertwind(instr_nums[j], years[j], doys[j], delta=delta, scale=scales[j])
savefig('/home/bhardin2/ipython_figures/agu_2015/dial/dial_wind_vertical_%i_%03i.png' % (years[j], doys[j]))
years = [2015, 2015, 2015, 2015, 2015, 2015, 2013, 2014, ]
doys = [76, 191, 227, 250, 257, 263, 190, 143, ]
instr_nums = [[5,6], [5,6], [8,5,9,6], [8,5,9,6], [8,5,9,6], [8,5,6], [8,5,6], [5,9,6]]
sc = 750
scales = [2*sc, sc, sc, sc, sc, sc, sc, sc]
delta = True
for j in range(len(years)):
fig = dial_vertwind(instr_nums[j], years[j], doys[j], delta=delta, scale=scales[j])
savefig('/home/bhardin2/ipython_figures/agu_2015/dial/dial_deltawind_vertical_%i_%03i.png' % (years[j], doys[j]))
import subprocess
import shutil
nb_name = 'AGU_2015_Presentation_2.ipynb' # There's probably a way to get this programmatically
cmd = ['jupyter', 'nbconvert', '--to=slides', nb_name, \
'--reveal-prefix', '"http://cdn.bootcss.com/reveal.js/3.1.0"',\
'--template','output_toggle']
# The --template command points to a custom template which opens and closes the input code cells with a click
subprocess.call(cmd)
html_name = '%s.slides.html' % (nb_name.split('.')[0])
shutil.copy(html_name, '/home/bhardin2/public_html/slideshows/')