-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_view_outputs.py
49 lines (37 loc) · 2.1 KB
/
run_view_outputs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import yaml
import xray
from matplotlib import pyplot as plt
from plot_results import *
if __name__ == "__main__":
array_to_process = [
# [xdataset_url_2013b , ydataset_url_2013b],
# [xdataset_url_2014a , ydataset_url_2014a],
# [xdataset_url_2014b , ydataset_url_2014b],
# [xdataset_url_2015 , ydataset_url_2015],
# [xdataset_url_2016 , ydataset_url_2016]
]
# ww3_cur_path = 'results/netcdf_files/ww3_globcurtot.2015.nc'
ww3_cur_path = 'results/netcdf_files/ww3_hycom.2014.nc'
# ww3_cur_path = 'results/netcdf_files/ww3_mercator.2014.nc'
# ww3_cur = xray.open_dataset('results/netcdf_files/ww3_hycom.2014_ef.nc')
# ww3_cur = xray.open_dataset('results/netcdf_files/ww3_mercator.2014.nc')
ww3_no_cur_path = 'results/netcdf_files/ww3_nocur.2014.nc'
# ww3_no_cur = xray.open_dataset('results/netcdf_files/ww3_nocur.2014_ef.nc')
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Bcabo_frio2.nc')
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Bsantos2.nc') # 2017
pnboia_path = 'http://goosbrasil.org:8080/pnboia/Bsantos.nc'
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Bguanabara2.nc') # 2017
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Bguanabara.nc')
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Bsanta_catarina2.nc') # 2017
# 'http://goosbrasil.org:8080/pnboia/Bsanta_catarina.nc'
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Brio_grande2.nc') # 2017
# pnboia_path = xray.open_dataset('http://goosbrasil.org:8080/pnboia/Brio_grande.nc')
# import pdb; pdb.set_trace()
plot_instance = PlotResults(ww3_cur_path, ww3_no_cur_path, pnboia_path)
# Rio -43.472722, -23.102309
# Maresias -45.596076, -23.825660
# Guaruja -46.230839, -24.021979
# plot_instance.hs_comparison(-46.230839, -24.021979)
plot_instance.hs_comparison_pnboia()
# plot_instance.hs_comparison(-42, -24)
# import pdb; pdb.set_trace()