Skip to content

Commit

Permalink
final check
Browse files Browse the repository at this point in the history
  • Loading branch information
btang1 committed Oct 4, 2024
1 parent c387c26 commit 048a313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions melodies_monet/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,6 @@ def plotting(self):

#read-in special settings for ozone sonder related plots
if plot_type == 'vertical_single_date' or 'vertical_boxplot_os' or 'density_scatter_plot_os':
model_name_list = grp_dict['model_name_list']
altitude_range = grp_dict['altitude_range']
altitude_method = grp_dict['altitude_method']
station_name = grp_dict['station_name']
Expand All @@ -1351,6 +1350,7 @@ def plotting(self):
altitude_threshold_list = grp_dict['altitude_threshold_list']
elif plot_type == 'density_scatter_plot_os':
cmap_method = grp_dict['cmap_method']
model_name_list = grp_dict['model_name_list']

#read-in special settings for scorecard
if plot_type == 'scorecard':
Expand Down Expand Up @@ -1794,17 +1794,10 @@ def plotting(self):
#begin plotting
if p_index ==0:
comb_bx, label_bx = splots.calculate_boxplot(pairdf, pairdf_reg, column=obsvar, label=p.obs, plot_dict=obs_dict)
#print('in driver 0 plot dict',plot_dict)
#print('in driver 0 comb bx',comb_bx)
print('in driver 0 label bx',label_bx)
comb_bx, label_bx = splots.calculate_boxplot(pairdf, pairdf_reg, column=modvar, label=p.model, plot_dict=plot_dict, comb_bx = comb_bx, label_bx = label_bx)
#print('in driver i plot dict',plot_dict)
#print('in driver i comb bx',comb_bx)
print('in driver i label bx',label_bx)
if p_index == len(pair_labels) - 1:
sonderplots.make_vertical_single_date(pairdf,
comb_bx,
model_name_list=model_name_list,
altitude_range=altitude_range,
altitude_method=altitude_method,
vmin=vmin,
Expand Down Expand Up @@ -1843,8 +1836,6 @@ def plotting(self):
sonderplots.make_vertical_boxplot_os(pairdf,
comb_bx,
label_bx=label_bx,

model_name_list=model_name_list,
altitude_range=altitude_range,
altitude_method=altitude_method,
vmin=vmin,
Expand Down
4 changes: 2 additions & 2 deletions melodies_monet/plots/ozone_sonder_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
sns.set_context('paper')

#Define ozone sonder, vertical single date plot
def make_vertical_single_date(df,comb_bx,model_name_list,altitude_range,altitude_method,vmin, vmax,station_name,release_time,label_bx,fig_dict,text_dict):
def make_vertical_single_date(df,comb_bx,altitude_range,altitude_method,vmin, vmax,station_name,release_time,label_bx,fig_dict,text_dict):
ALT_sl = df['altitude']
O3_OBS = comb_bx[comb_bx.columns[0]].to_list()
len_combx = np.shape(comb_bx)[1]
Expand Down Expand Up @@ -62,7 +62,7 @@ def make_vertical_single_date(df,comb_bx,model_name_list,altitude_range,altitude
ax.set_xlabel(ylabel+' (ppbv)',fontsize=text_kwargs['fontsize']*0.8)

#Define ozone sonder, vertical single date plot
def make_vertical_boxplot_os(df,comb_bx,label_bx,model_name_list,altitude_range,altitude_method,vmin, vmax,altitude_threshold_list,station_name,release_time,fig_dict,text_dict):
def make_vertical_boxplot_os(df,comb_bx,label_bx,altitude_range,altitude_method,vmin, vmax,altitude_threshold_list,station_name,release_time,fig_dict,text_dict):
ALT_sl = df['altitude']
O3_OBS = comb_bx[comb_bx.columns[0]].to_list()
len_combx = np.shape(comb_bx)[1]
Expand Down

0 comments on commit 048a313

Please sign in to comment.