Noteboook to test analyze.py functions
from __future__ import division
import datetime
from glob import glob
import os
from IPython.core.display import HTML
import netCDF4 as nc
from salishsea_tools.nowcast import figures
from salishsea_tools.nowcast import analyze
%matplotlib inline
import matplotlib.pyplot as plt
bathy = nc.Dataset('/data/nsoontie/MEOPAR/NEMO-forcing/grid/bathy_meter_SalishSea2.nc')
path='/data/dlatorne/MEOPAR/SalishSea/nowcast/'
t_orig=datetime.datetime(2015,2,20); t_final=datetime.datetime(2015, 2, 24)
reload(analyze)
<module 'salishsea_tools.nowcast.analyze' from '/data/nsoontie/MEOPAR/tools/SalishSeaTools/salishsea_tools/nowcast/analyze.pyc'>
files_all=analyze.get_filenames(t_orig, t_final, '1h', 'grid_T', path)
fig = analyze.compare_ssh_tides(bathy, files_all, t_orig, t_final, 'Point Atkinson')