Skip to content

Commit

Permalink
updated plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
floriantornow committed Oct 7, 2024
1 parent 69ad16f commit e5960fe
Show file tree
Hide file tree
Showing 5 changed files with 392 additions and 162 deletions.
2 changes: 1 addition & 1 deletion notebooks/plotting/example_plotting_2D_cluster.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/plotting/example_plotting_progna.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
9 changes: 5 additions & 4 deletions notebooks/plotting/functions_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ def load_kazrkollias(case='20200313',t_filter = 1.,PATH='../../data_files/',aux_

if aux_dat.shape[0] > 0:
print('KAZR (Kollias): here using auxiliary field to estimate cloud-top temperature')
aux_dat['zdiff'] = np.abs(aux_dat['zf'] - np.float(p_df['zi']))
aux_dat['zdiff.25'] = np.abs(aux_dat['zf'] - np.float(p_df['zi.25']))
aux_dat['zdiff.75'] = np.abs(aux_dat['zf'] - np.float(p_df['zi.75']))
aux_dat['zdiff'] = np.abs(aux_dat['zf'] - np.float64(p_df['zi']))
aux_dat['zdiff.25'] = np.abs(aux_dat['zf'] - np.float64(p_df['zi.25']))
aux_dat['zdiff.75'] = np.abs(aux_dat['zf'] - np.float64(p_df['zi.75']))
p_df['ctt'] = np.mean(aux_dat.loc[aux_dat['zdiff'] < 10,'ta']) - 273.15
p_df['ctt.25'] = np.max(aux_dat.loc[aux_dat['zdiff.25'] < 10,'ta']) - 273.15
p_df['ctt.75'] = np.min(aux_dat.loc[aux_dat['zdiff.75'] < 10,'ta']) - 273.15
Expand Down Expand Up @@ -1345,7 +1345,8 @@ def plot_2d(df_col2,var_vec,times,**kwargs):
else:
df_ave = df.groupby('zf').mean(numeric_only=True)
df_ave['zf'] = df_ave.index
if 'colflag' in set(df_ave):
#print(df_ave)
if 'colflag' in set(df):
df_ave['colflag'] = df['colflag'].unique()[0]
df = df_ave.copy()
else:
Expand Down
271 changes: 248 additions & 23 deletions notebooks/plotting/plot_FixN.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit e5960fe

Please sign in to comment.