Simulation files ¶
The QuickView family of tools has been developed using simulation files from the E3SM Atmosphere Model, EAM, and the land model ELM. A small collection of sample files can be found on Zenodo.
The horizontal dimension ¶
Starting from QuickView version 2 and QuickCompare version 1, the data reader used in the tool family has been generalized to handle all NetCDF variables on cubed-sphere meshes regardless of what name is used for the horizontal dimension (e.g., ncol and ncol_d in EAM files and lndgrid in ELM files).
Multidimensional variables ¶
Starting from QuickView version 2 and QuickCompare version 1, the tool family has been generalized to visualize any variable in a NetCDF file that has a horizontal dimension matching the connectivity file, regardless of how many additional dimensions the variables have.
Here are some examples of variable dimensions (array shapes) from EAM output files:
(ncol)(time,lev,ncol)(time,cosp_prs,cosp_tau,ncol)(time,ncol,swband,lev)(time,ncol,num_phys_constituents)(time,ncol_d,lev)
And here are some examples of variable dimensions (array shapes) from ELM output files:
(levgrnd,lndgrid)(levlak,lndgrid)(time,lndgrid)(time,levgrnd,lndgrid)(time,natpft,lndgrid)
Global averages ¶
When an area variable with the correct horizontal dimension is present in the simulation file, this variable is used for calculating the area-weighted horizontal averages displayed in the viewport. If the area variable is not present, then an arithmetic average is calculated and displayed.
Missing values ¶
When a variable has an attribute named missing_value or _FillValue, the value is converted to NaN and ignored in the calculation of global averages and for the visualization.
Large files: rechunking for faster slicing ¶
For very large files, such as high-resolution output on ne1024 grids, the time needed to read one slice depends strongly on how the file is chunked on disk. QuickView installs a quickview-chunk command that rewrites a file with a layout suited to slice-by-slice reading: each chunk holds about one million columns (about 4 MB at single precision) and a single index of every other dimension.
quickview-chunk --input monthly_ne1024.ncThe output is written next to the input file, with .nc replaced by .chunked.nc, unless a name is given with --output. An existing output file is overwritten. The output is not compressed, so it can be larger than the input file. Only variables with an ncol dimension are rechunked; the other variables are copied as they are.