Check my LES run - 2D output

Check my LES run - 2D output#

  • The below notebook allows to compare a selected set of large-eddy simulation.

  • All requested 2D variables are here read and plotted. “load_sims_2d” reports variable that are missing. Maps will not show, if a variable is missing or if it contains missing values.

  • In case you find inconsistencies in the benchmark set or wish to expand the code, please contact Ann Fridlind (ann.fridlind@nasa.gov), Timothy Juliano (tjuliano@ucar.edu), and Florian Tornow (ft2544@columbia.edu).

%run functions_plotting.py

## select LES run(s) of interest
sim_keyword = 'FixN_2D'  

## select specfic time
time_vec = [18.0]
vars_mean_list = pd.read_excel('https://docs.google.com/spreadsheets/d/1Vl8jYGviet7EtXZuQiitrx4NSkV1x27aJAhxxjBb9zI/export?gid=1756539842&format=xlsx',
                              sheet_name='2D')


pd.set_option('display.max_rows', None)
vars_mean_list

## short names
var_vec_2d = np.asarray(vars_mean_list.variable_id[vars_mean_list.dimensions == 'time, x, y'])

## long names
var_vec_2d_long = np.asarray(vars_mean_list.standard_name[vars_mean_list.dimensions == 'time, x, y'])

## units
var_vec_2d_units = np.asarray(vars_mean_list.units[vars_mean_list.dimensions == 'time, x, y'])
## load all simulations located in subfolders of the given directory
df_col_2d = load_sims_2d('/data/project/comble-mip/output_les/',var_vec_2d,t_shift=-2,times=time_vec,keyword=sim_keyword)
Loading variables: f(time,x,y)
/data/project/comble-mip/output_les/wrf/WRF_Lx25_dx100_FixN_2D.nc
NaN values in pr
NaN values in lwp
NaN values in iwp
NaN values in opt
NaN values in alb
NaN values in olr11
/data/project/comble-mip/output_les/dharma/DHARMA_Lx25_dx100_FixN_2D.nc
No field for ustar
/data/project/comble-mip/output_les/uclales-salsa/UCLALES-SALSA_Lx25_dx100_FixN_2D.nc
...adjusting x and y values
%run functions_plotting.py
plot_2d_map(df_col_2d,var_vec_2d,times=time_vec)
../../_images/20339aa955e204df2433e0f885b67b159692650ff47199f3e6a24486aaa833a8.png ../../_images/d7c790e213a0862a8c1dc8fb1100854281b7e20828909eb44af4f5ddedbc56a1.png ../../_images/a47c2275e45b0a169132c40f0669a784f63b4f2fa4083709f2e1e505d1e075bf.png ../../_images/61898e452c9c5c84c17230453c0817749d6014862fea97a51431d02ac6be0471.png ../../_images/b1e158298698ee2c6e4b6980f5cc18c26fe710f3bb2d26f9260d3c3b31cc8a73.png ../../_images/2130137ae042ea7ece109989a5b74827532a60dbba157287571ec4ff1f2ca50f.png ../../_images/02814b93eafda8519df1734acf4bafb5d9f89a61378d31346c2dbfb94d54f275.png ../../_images/b4ea7ae7799fc5d311e537291fd70ef7cb2eb8b83b0020e737d02d98541e48f5.png ../../_images/6fa80257116f35f35b073adf0300fb8ee962306e831b0efdc74a843c808d82ad.png ../../_images/18adc6eaf90d4fff2c18b41e8689d4d74f9070f9937c003b920ac83a3e57f2da.png ../../_images/37ea1e64eb8ad17ed1702b82db3eafd4d95d372943b8c147d975f81a55917779.png
<Figure size 1000x600 with 0 Axes>