Skip to content

Commit

Permalink
updated plots for wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
yyplanton committed Jul 9, 2020
1 parent d304653 commit a9b7ecb
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 26 deletions.
44 changes: 22 additions & 22 deletions lib/EnsoPlotLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@
"varpattern": "diagnostic",
"yname": "normalized dSSToce",
"method": "1) Detect El Nino and La Nina\n (5-m. tri. ave. Dec. N3.4 SSTA > 0.75 STD)\n" +
"2) dSST = REGION1 SSTA Dec. - Jul.\n3) REGION1 THFA summed from Jul. to Dec.\n" +
"4) dSST = dSST/dSST and dSSTthf = dSSTthf/dSST\n" +
"5) dSSToce = dSST - dSSTthf\n6) Mean dSSToce both El Nino and La Nina\n\n" +
"2) dSST = REGION1 SSTA Dec. - Jul.\n3) REGION1 NHFA summed from Jul. to Dec.\n" +
"4) dSST = dSST/dSST and dSSTnhf = dSSTnhf/dSST\n" +
"5) dSSToce = dSST - dSSTnhf\n6) Mean dSSToce both El Nino and La Nina\n\n" +
"Metric: abs((dSSToce$_{mod}$-dSSToce$_{ref}$)/dSSToce$_{ref}$)*100",
},
"dive_down01": {
Expand All @@ -376,15 +376,15 @@
"varpattern": ["dSST_ts__", "dSSTthf_ts__", "dSSToce_ts__"],
"colors": {"model": ["black", "red", "blue"], "reference": ["black", "red", "blue"]},
"linestyles": {"model": ["-", "-", "-"], "reference": ["-.", "-.", "-."]},
"legend": ["dSST", "dSSTthf", "dSSToce"],
"legend": ["dSST", "dSSTnhf", "dSSToce"],
"xname": "months",
"yname": "normalized dSST",
"method": "1) Detect El Nino and La Nina\n (5-m. tri. ave. Dec. N3.4 SSTA > 0.75 STD)\n" +
"2) dSST$_i$ = REGION1 SSTA M$_i$ - M$_{i-1}$\n" +
"3) dSSTthf$_i$ = REGION1 THFA summed from M$_0$ to M$_i$\n" +
"3) dSSTnhf$_i$ = REGION1 NHFA summed from M$_0$ to M$_i$\n" +
"4) dt = dSST$_{dec}$-dSST$_{jul}$,\n dSST$_i$ = dSST$_i$/dt,\n " +
"dSSTthf$_i$ = dSSTthf$_i$/dt\n" +
"5) dSSToce$_i$ = dSST$_i$ - dSSTthf$_i$\n6) Mean dSSToce both El Nino and La Nina",
"dSSTnhf$_i$ = dSSTnhf$_i$/dt\n" +
"5) dSSToce$_i$ = dSST$_i$ - dSSTnhf$_i$\n6) Mean dSSToce both El Nino and La Nina",
},
"dive_down02": {
"plot_type": "curve",
Expand All @@ -393,13 +393,13 @@
"varpattern": ["dSSTthf_lon__", "dSSToce_lon__"],
"colors": {"model": ["red", "blue"], "reference": ["red", "blue"]},
"linestyles": {"model": ["-", "-"], "reference": ["-.", "-."]},
"legend": ["dSSTthf", "dSSToce"],
"legend": ["dSSTnhf", "dSSToce"],
"xname": "longitude",
"yname": "normalized dSST",
"method": "1) Detect El Nino and La Nina\n (5-m. tri. ave. Dec. N3.4 SSTA > 0.75 STD)\n" +
"2) dSST = REGION1 SSTA Dec. - Jul.\n3) REGION1 THFA summed from Jul. to Dec.\n" +
"4) dSST = dSST/dSST and dSSTthf = dSSTthf/dSST\n" +
"5) dSSToce = dSST - dSSTthf\n6) Mean dSSToce both El Nino and La Nina",
"2) dSST = REGION1 SSTA Dec. - Jul.\n3) REGION1 NHFA summed from Jul. to Dec.\n" +
"4) dSST = dSST/dSST and dSSTnhf = dSSTnhf/dSST\n" +
"5) dSSToce = dSST - dSSTnhf\n6) Mean dSSToce both El Nino and La Nina",
},
"dive_down03": {
"plot_type": "hovmoeller",
Expand All @@ -413,10 +413,10 @@
"zname": "normalized dSST",
"method": "1) Detect El Nino and La Nina\n (5-m. tri. ave. Dec. N3.4 SSTA > 0.75 STD)\n" +
"2) dSST$_i$ = REGION1 SSTA M$_i$ - M$_{i-1}$\n" +
"3) dSSTthf$_i$ = REGION1 THFA summed from M$_0$ to M$_i$\n" +
"3) dSSTnhf$_i$ = REGION1 NHFA summed from M$_0$ to M$_i$\n" +
"4) dt = dSST$_{dec}$-dSST$_{jul}$,\n dSST$_i$ = dSST$_i$/dt,\n " +
"dSSTthf$_i$ = dSSTthf$_i$/dt\n" +
"5) dSSToce$_i$ = dSST$_i$ - dSSTthf$_i$\n6) Mean dSSToce both El Nino and La Nina",
"dSSTnhf$_i$ = dSSTnhf$_i$/dt\n" +
"5) dSSToce$_i$ = dSST$_i$ - dSSTnhf$_i$\n6) Mean dSSToce both El Nino and La Nina",
},

},
Expand Down Expand Up @@ -788,9 +788,9 @@
"title": "Net heat flux feedback",
"varpattern": ["sst__", "thf__"],
"xname": "SSTA",
"yname": "THFA",
"yname": "NHFA",
"method": "1) Seasonal cycle removed\n2) Linearly detrended\n3) REGION1 averaged\n" +
"4) REGION1 SSTA regressed onto REGION1 THFA\n\n" +
"4) REGION1 SSTA regressed onto REGION1 NHFA\n\n" +
"Metric: abs((Slope$_{mod}$-Slope$_{ref}$)/Slope$_{ref}$)*100",
},
"dive_down01": {
Expand All @@ -799,9 +799,9 @@
"title": "nonlinarity",
"varpattern": ["sst__", "thf__"],
"xname": "SSTA",
"yname": "THFA",
"yname": "NHFA",
"method": "1) Seasonal cycle removed\n2) Linearly detrended\n3) REGION1 averaged\n" +
"4) REGION1 SSTA>0 (SSTA<0) regressed onto REGION1 THFA",
"4) REGION1 SSTA>0 (SSTA<0) regressed onto REGION1 NHFA",
},
"dive_down02": {
"plot_type": "curve",
Expand All @@ -813,24 +813,24 @@
"linestyles": {"model": ["-", "-", "-"], "reference": ["-.", "-.", "-."]},
"legend": ["All", "SSTA>0", "SSTA<0"],
"xname": "longitude",
"yname": "reg(SSTA, THFA)",
"yname": "reg(SSTA, NHFA)",
"method": "1) Seasonal cycle removed\n2) Linearly detrended\n3) 5S-5N meridional averaged\n" +
"4) 30° zonal running ave.\n5) SSTA or SSTA>0 or SSTA<0 regressed onto THFA",
"4) 30° zonal running ave.\n5) SSTA or SSTA>0 or SSTA<0 regressed onto NHFA",
},
"dive_down03": {
"plot_type": "hovmoeller",
"nbr_panel": 6,
"colorbar": dict_colorbar["anomalies"],
"label": dict_label["REG50"],
"title": ["reg(SSTA, THFA)", "reg(SSTA>0, THFA)", "reg(SSTA<0, THFA)"],
"title": ["reg(SSTA, NHFA)", "reg(SSTA>0, NHFA)", "reg(SSTA<0, NHFA)"],
#"varpattern": ["sst_over_thf_hov__", "sstPOS_over_thf_hov__", "sstNEG_over_thf_hov__"],
"varpattern": ["reg_thf_over_sst_hov__", "reg_thf_over_POSsst_hov__", "reg_thf_over_NEGsst_hov__"],
"xname": "longitude",
"yname": "months",
"zname": "regression",
"method": "1) Seasonal cycle removed\n2) Linearly detrended\n3) 5S-5N meridional averaged\n" +
"4) 30° zonal running ave.\n" +
"5) For each calendar month:\n SSTA or SSTA>0 or SSTA<0 regressed onto THFA",
"5) For each calendar month:\n SSTA or SSTA>0 or SSTA<0 regressed onto NHFA",
},
},
"EnsoFbTauxSsh": {
Expand Down
6 changes: 3 additions & 3 deletions lib/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = 'v0.1'
__git_tag_describe__ = 'v0.1-423-g7723f20'
__git_sha1__ = '7723f20c075032b3d1cc01c0bf5feaabbf4d561e'
__version__ = 'v1.0'
__git_tag_describe__ = 'v1.0-167-gd304653'
__git_sha1__ = 'd3046535f54947f2c5d9dac02a073e2e5a1f4f0b'
Binary file modified ..._historical_ENSO_perf_CNRM-CM5_r1i1p1_EnsoSeasonality_diagnostic_divedown04.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ..._historical_ENSO_proc_CNRM-CM5_r1i1p1_EnsoFbSstThf_diagnostic_divedown01_v2.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...p5_historical_ENSO_proc_CNRM-CM5_r1i1p1_EnsodSstOce_2_diagnostic_divedown02.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plots/driver_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
metrics = [met for met in metrics if met in data_json["value"].keys() or
("Map" in met and (met + "Corr" in data_json["value"].keys() or met + "Rmse" in data_json["value"].keys()
or met + "Std" in data_json["value"].keys()))]
for met in ["EnsoSstDiversity_2"]:#metrics:
for met in metrics:
print(met)
# get NetCDF file name
# path_nc = OSpath__join(path_in, project + "/" + experiment + "/" + metric_collection)
Expand Down

0 comments on commit a9b7ecb

Please sign in to comment.