Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCaitSith committed Aug 11, 2023
1 parent 70163a6 commit 1d8636f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions functions/cpex_metnav.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def draw_metnav_dc8(data_library_name, dir_case, case_name, wrf_domain=False, wr
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis(extent)
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper right', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand All @@ -188,4 +188,4 @@ def draw_metnav_dc8(data_library_name, dir_case, case_name, wrf_domain=False, wr
command = f"convert {pngname} -trim {pngname}"
subprocess.run(command, shell=True)
image = IPImage(filename=pngname)
display(image)
display(image)
16 changes: 8 additions & 8 deletions functions/data_library_goes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
'dir_ScientificColourMaps7': '/uufs/chpc.utah.edu/common/home/u1237353/climetlab-my-plugin/colormaps/ScientificColourMaps7',
}
compare_schemes['GOES_Laura_scheme_01'] = {
'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_ALL'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'PB'), \
'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'PB'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_08'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_09'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_10')],
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_10'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_ALL')],
'dir_save': '/uufs/chpc.utah.edu/common/home/zpu-group16/cfeng/02_GOES_Bias_Correction/27_ChCor/track_intensity/Laura/Figures',
'labels': ['ASRBC4CLD_CLD_ALL', 'PB', 'ASRBC4CLD_CLD_08', 'ASRBC4CLD_CLD_09', 'ASRBC4CLD_CLD_10'],
'labels': ['PB', 'ASRBC4CLD_CLD_08', 'ASRBC4CLD_CLD_09', 'ASRBC4CLD_CLD_10', 'ASRBC4CLD_CLD_ALL'],
'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4]],
'linestyles': ['-', '-', '-', '-', '-'],
}
compare_schemes['GOES_Laura_scheme_02'] = {
'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_ALL'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB'), \
'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_08'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_08'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_09'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_10')],
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_10'), \
('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_ALL')],
'dir_save': '/uufs/chpc.utah.edu/common/home/zpu-group16/cfeng/02_GOES_Bias_Correction/27_ChCor/track_intensity/Laura/Figures',
'labels': ['NPB_ASRBC4CLD_CLD_ALL', 'NPB', 'NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10'],
'labels': ['NPB', 'NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10', 'NPB_ASRBC4CLD_CLD_ALL'],
'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4], sns_bright_cmap[5]],
'linestyles': ['-', '-', '-', '-', '-', '-'],
}
Expand Down
4 changes: 2 additions & 2 deletions functions/goes_satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def draw_goes_images(data_library_name, dir_case, case_name, channel=8, goes_lev
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis(extent)
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper right', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

# if tc_track:
# clb1 = fig.colorbar(pcm, ax=axs, ticks=np.arange(190, 250.1, 5.0), orientation='horizontal', pad=-0.025, aspect=50, shrink=1.00)
Expand Down Expand Up @@ -336,4 +336,4 @@ def draw_goes_images(data_library_name, dir_case, case_name, channel=8, goes_lev
command = f"convert {pngname} -trim {pngname}"
subprocess.run(command, shell=True)
image = IPImage(filename=pngname)
display(image)
display(image)
12 changes: 6 additions & 6 deletions functions/track_and_intensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def compare_track_scheme(data_library_name, scheme):
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis(extent)
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper right', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down Expand Up @@ -328,8 +328,8 @@ def compare_intensity_scheme(data_library_name, scheme, variable):
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis(extent)
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
if 'MSLP' in variable: ax.legend(loc='lower left', fontsize=5.0, handlelength=2.5).set_zorder(102)
if 'MWS' in variable: ax.legend(loc='upper left', fontsize=5.0, handlelength=2.5).set_zorder(102)
if 'MSLP' in variable: ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)
if 'MWS' in variable: ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down Expand Up @@ -441,7 +441,7 @@ def compare_averaged_RMSE_time_series_scheme(data_library_name, scheme, variable
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis([-0.5, n_lead_time-0.5, ymin, ymax])
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper left', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down Expand Up @@ -539,7 +539,7 @@ def compare_averaged_RMSE_each_cycle_scheme(data_library_name, scheme, variable)
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis([-0.5, total_da_cycles-0.5, ymin, ymax])
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper left', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down Expand Up @@ -634,7 +634,7 @@ def compare_averaged_RMSE_specific_time_each_cycle_scheme(data_library_name, sch
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis([0.5, n_cases-0.5, ymin, ymax])
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='lower left', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down
2 changes: 1 addition & 1 deletion functions/tropics.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def draw_TROPICS_tpw_cdf(data_library_names, dir_cases, case_names):
ax.tick_params('both', direction='in', labelsize=10.0)
ax.axis([0, xmax, 0, 1.2])
ax.grid(True, linewidth=0.5, color=grayC_cm_data[53])
ax.legend(loc='upper left', fontsize=5.0, handlelength=2.5).set_zorder(102)
ax.legend(loc='best', fontsize=5.0, handlelength=2.5).set_zorder(102)

plt.tight_layout()
plt.savefig(pngname, dpi=600)
Expand Down
14 changes: 7 additions & 7 deletions notebooks/track_and_intensity.ipynb

Large diffs are not rendered by default.

0 comments on commit 1d8636f

Please sign in to comment.