2D plotting of LES output

2D plotting of LES output#

  • The below notebook compares selected simulations against observational targets that were collected from satellite and ground-based retrievals.

  • In case of questions or concerns, please notify Ann Fridlind (ann.fridlind@nasa.gov), Timothy Juliano (tjuliano@ucar.edu), and Florian Tornow (ft2544@columbia.edu).

%run functions_plotting.py 
 
## select simulations to plot
sim_keyword = 'Lx25_dx100_FixN_2' #Lx25_dx100_FixN_2D'  
%run functions_plotting.py 

var_vec_2d = ['alb']

## 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,keyword=sim_keyword)
Loading variables: f(time,x,y)
/data/project/comble-mip/output_les/wrf/WRF_Lx25_dx100_FixN_2D.nc
ERROR 1: PROJ: proj_create_from_database: Open of /opt/conda/share/proj failed
NaN values in alb
/data/project/comble-mip/output_les/scale-sdm/scale-sn14_Lx25_dx100_FixN_2d.nc
...adjusting x and y values
/data/project/comble-mip/output_les/dharma/DHARMA_Lx25_dx100_FixN_2D.nc
/data/project/comble-mip/output_les/uclales-salsa/UCLALES-SALSA_Lx25_dx100_FixN_2D.nc
...adjusting x and y values
df_col_2d 
<xarray.Dataset> Size: 3GB
Dimensions:     (x: 256, y: 256, time: 121, Source: 4)
Coordinates:
  * x           (x) float64 2kB -1.28e+04 -1.27e+04 ... 1.26e+04 1.27e+04
  * y           (y) float64 2kB -1.28e+04 -1.27e+04 ... 1.26e+04 1.27e+04
  * time        (time) datetime64[ns] 968B 2020-03-12T22:00:00 ... 2020-03-13...
  * Source      (Source) <U49 784B 'wrf/WRF_Lx25_dx100_FixN_2D.nc' ... 'uclal...
Data variables: (12/13)
    hfss        (Source, time, x, y) float64 254MB nan nan nan ... 167.1 167.6
    hfls        (Source, time, x, y) float64 254MB nan nan nan ... 164.0 164.7
    ustar       (Source, time, x, y) float64 254MB nan nan nan ... 0.4567 0.4594
    us          (Source, time, x, y) float64 254MB nan nan nan ... 7.756 7.968
    vs          (Source, time, x, y) float64 254MB nan nan nan ... -6.512 -6.347
    pr          (Source, time, x, y) float64 254MB nan nan ... 5.878e-05
    ...          ...
    iwp         (Source, time, x, y) float64 254MB nan nan nan ... 0.6968 0.8057
    opt         (Source, time, x, y) float64 254MB nan nan nan ... 7.164 7.41
    alb         (Source, time, x, y) float64 254MB nan nan nan ... 0.3553 0.3631
    olr11       (Source, time, x, y) float64 254MB nan nan nan ... 11.49 7.091
    x_round_ph  (Source, x) float64 8kB -12.8 -12.7 -12.6 ... 12.5 12.6 12.7
    y_round_ph  (Source, y) float64 8kB -12.8 -12.7 -12.6 ... 12.5 12.6 12.7
Attributes: (12/17)
    title:           WRF LES results for COMBLE-MIP case: fixed Nd and Ni
    reference:       https://github.com/ARM-Development/comble-mip
    authors:         Tim Juliano (tjuliano@ucar.edu)
    version:         2024-08-07 11:59:53
    format_version:  DEPHY SCM format version 1.6
    script:          convert_WRF_LES_output_to_dephy_format.ipynb
    ...              ...
    dx:              100.0 m
    dy:              100.0 m
    dz:              see ze variable
    nx:              256
    ny:              256
    nz:              159
df_col_2d['us'].plot(row='time',col_wrap=7,col='Source')
<xarray.plot.facetgrid.FacetGrid at 0x7f74e6a52410>
../../_images/13e29654bd56837256df3ae54feee7f022394b98f913e7231ef948e14bba2d8e.png