Check my LES run - 3D output

Check my LES run - 3D output#

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

  • All requested 3D variables are here read and plotted. “load_sims_3d” 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 = 'DHARMA_Lx25_dx100_FixN_3D'  
sim_keyword = 'FixN_3D'  

## select specfic time
time_vec = [18.0]

y_sel = [100]
vars_mean_list = pd.read_excel('https://docs.google.com/spreadsheets/d/1Vl8jYGviet7EtXZuQiitrx4NSkV1x27aJAhxxjBb9zI/export?gid=1233994833&format=xlsx',
                              sheet_name='3D')


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

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

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

## units
var_vec_3d_units = np.asarray(vars_mean_list.units[vars_mean_list.dimensions == 'time, height, x, y'])
%run functions_plotting.py
## load all simulations located in subfolders of the given directory
df_col_3d = load_sims_3d('/data/project/comble-mip/output_les/',var_vec_3d,t_shift=-2,times=time_vec,ysel=y_sel,keyword=sim_keyword)
Loading variables: f(time,height,x,y)
/data/project/comble-mip/output_les/dharma/DHARMA_Lx25_dx100_FixN_3D.nc
ERROR 1: PROJ: proj_create_from_database: Open of /opt/conda/share/proj failed
No field for na
No field for vmlc
No field for vmlr
No field for vmic
No field for vmis
No field for vmig
/data/project/comble-mip/output_les/uclales-salsa/UCLALES-SALSA_Lx25_dx100_FixN_3D.nc
...adjusting x and y values
Finding "zf" instead of "height"
NaN values in na
NaN values in nlc
NaN values in vmlc
NaN values in vmlr
NaN values in vmic
NaN values in vmis
NaN values in vmig
%run functions_plotting.py
plot_2d_map(df_col_3d,var_vec_3d,times=time_vec)
/opt/conda/lib/python3.10/site-packages/xarray/plot/facetgrid.py:217: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.
  fig, axs = plt.subplots(
../../_images/d597195550a5f47c610965f313d4cf7c2f49076415b05858ee4a20c6b363ed32.png ../../_images/bfebb76f547f5ffca603b39980d3236324eb3524179578f6ff52bd9a9a7c9960.png ../../_images/3387f6c08d7782e7290482bcae0933d1a43eade65f97cc19ef12db1ca484d350.png ../../_images/5043dfd2ed9f42c64781861b8dd2371b05a544e148f50b3b336739a89b8db57b.png ../../_images/bac58d946b4a3768f7bfe836805555ef501165666b31a1e623676e6b1eca5050.png ../../_images/854d202acf2ddac169bde4cbd63a8e0d66a45d3d11531529a9f522183f22e8de.png ../../_images/03a00c84d536b83af11354ece8ff69e42b165cc0a96f1c2d96ae5abaa77fac3c.png ../../_images/c5e618ba78e8de638ea7ffb5c737c9e75b1d155e7963694a17aad56f8b497e8d.png ../../_images/8b8b6a1e854b7c9d2c4b2bb077f5eeb8185df541cc41bfc56c90d99697b59782.png ../../_images/411f0e1ec1d189247783449e260920a30f6ae14886fa6cb265b91ff06704d069.png ../../_images/8e81761578e683f6fd27f54e83e8b83f7ec4e1553a81efbc4725108eb7c64064.png ../../_images/a428bb4628d3f2b379d8a356820142bc03e27a421d964f15040cb2929b4b5eec.png ../../_images/f78cbeec487d9100b23574d572c38089cf27ba9d168ee95a98cc620a054a8d52.png ../../_images/a7b7aaa0ac7adb2a8cb04c9d881e05b6c1358db620303e1f20eccd7f330b6710.png ../../_images/c8cbd36a2746a39c9f109fc583fd6bd76bd70d0aceb06ea239960b2d18ff3717.png ../../_images/1a47b49172d66555af2f87162426a082166ee87dc78cc3136e7a8c67d7b4c592.png ../../_images/0b108a785d2d313b318b180949037368fcf55c3a335cc60d72b55837085712bf.png ../../_images/276ea63bad9cefbfd2bb9ad01d40b145bc2d1dda15572a762c754077b6200033.png ../../_images/42c71e73784c14ff150ec5ba260d98ccef9ca95fe4560bea594d21a10d3924eb.png ../../_images/062c7eea6301cca2b3e806d155554db86bc0d674e56f374d76e72257db8e0f9b.png ../../_images/7694fb479ded27ce1e51b49dfd2912b557bf35de976c726a01d47a5d1c83466c.png ../../_images/50f3b7f7f75bb5beb18e387103a4a3260267ff74ac031d87ba5a2158551527f9.png ../../_images/ecedc11e73fbfeed8f591ffe0fb51ef3ceb4a99e86a6d281a9198fe2770ebdc9.png ../../_images/c8c935aa57a3020667011385446a2ce8b7ded8460533faaf8485e763b569e9a7.png ../../_images/d23fe8ad8d04348bb337fd09214c88e6567799a8d33c99609b2d5806c314ce1e.png ../../_images/89d0635fd4be0ddd0b019cb1f6665ca9aac25f14e77160839c9969fb055a0775.png
<Figure size 1000x600 with 0 Axes>