You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation for v3.1.0 features and parameters
This commit updates the documentation to reflect new features and
parameters added in v3.1.0:
1. Updated available-parameters.rst:
- Added time_slices parameter for snapshot analysis
- Added lat_lon_native set-specific parameters (test_grid_file,
ref_grid_file, antialiased)
- Added test_file and ref_file parameters
- Updated regrid_tool default from 'esmf' to 'xesmf'
- Updated granulate default to include 'time_slices'
- Updated sets default list to include all current diagnostic sets
- Added notes about mutual exclusivity of time_slices and seasons
2. Updated examples.rst:
- Added Example 8: Native Grid Visualization
- Added Example 9: Snapshot Analysis for Core Sets
- Updated running instructions to include new examples
- Updated batch script example with ex8 and ex9
3. Created example files:
- examples/ex8-native-grid-visualization/ (ex8.py, diags.cfg, README.md)
- examples/ex9-snapshot-analysis/ (ex9.py, diags.cfg, README.md)
These changes document the two major features introduced in v3.1.0:
- Native grid visualization using UXarray
- Snapshot analysis for core diagnostic sets using time_slices
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
- Regridding parameters (``regrid_tool``, ``regrid_method``) are ignored for this set
286
+
- Can use either ``seasons`` for climatology or ``time_slices`` for snapshot analysis (mutually exclusive)
265
287
266
288
Other parameters
267
289
~~~~~~~~~~~~~~~~
268
290
269
291
- **dataset**: Default is ``''``.
270
-
- **granulate**: Default is ``['variables', 'seasons', 'plevs', 'regions']``.
292
+
- **granulate**: Default is ``['variables', 'seasons', 'plevs', 'regions', 'time_slices']``.
293
+
This parameter controls how diagnostics are split into separate runs.
271
294
- **selectors**: Default is ``['sets', 'seasons']``. See :ref:`Using the selectors parameter <selector-ex>`.
272
295
- **viewer_descr**: Used to specify values in the viewer. Default ``{}``.
273
296
- **fail_on_incomplete**: Exit status will reflect failure if any parameter fails to complete. Default is ``False`` (e.g., a failing parameter will not create a failing exit code).
297
+
- **test_file**: *(v3.1.0+)* Specify the exact file name for test data. Useful for snapshot analysis with ``time_slices`` or when using specific data files.
298
+
- **ref_file**: *(v3.1.0+)* Specify the exact file name for reference data. Useful for snapshot analysis with ``time_slices`` or when using specific data files.
Copy file name to clipboardExpand all lines: docs/source/examples.rst
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,38 @@ on two different sets: ``zonal_mean_2d`` an ``lat_lon``.
93
93
so you can compare different version of the data, or the same variable from different datasets.
94
94
We are comparing CERES EBAF TOA version 2.8 and 4.0.
95
95
96
+
8. Native Grid Visualization (v3.1.0)
97
+
--------------------------------------
98
+
`This example <https://github.com/E3SM-Project/e3sm_diags/tree/master/examples/ex8-native-grid-visualization>`__ demonstrates how to visualize model data on its native grid
99
+
(e.g., cubed-sphere, unstructured grids) without regridding to a regular lat-lon grid.
100
+
This feature uses UXarray to preserve native grid features and is particularly useful for high-resolution models with complex grid structures.
101
+
The example shows model vs model comparison using snapshot analysis on native grids.
102
+
103
+
**Key features:**
104
+
105
+
- Visualize data on native grids without regridding
106
+
- Preserve native grid features and characteristics
107
+
- Support for cubed-sphere and unstructured grids
108
+
- Uses UXarray for grid-aware operations
109
+
110
+
9. Snapshot Analysis for Core Sets (v3.1.0)
111
+
--------------------------------------------
112
+
`This example <https://github.com/E3SM-Project/e3sm_diags/tree/master/examples/ex9-snapshot-analysis>`__ demonstrates time slice analysis on core diagnostic sets.
113
+
Instead of computing climatological seasonal means, this analyzes individual time steps from model output using index-based time selection.
114
+
115
+
This is useful for analyzing specific events, comparing model states at particular time points,
116
+
or understanding temporal evolution without time averaging. The example shows how to use the ``time_slices`` parameter
117
+
on multiple diagnostic sets (lat_lon, zonal_mean_2d, polar, meridional_mean_2d, zonal_mean_2d_stratosphere).
118
+
119
+
**Key features:**
120
+
121
+
- Index-based time selection (e.g., time_slices = ["0", "1", "2"])
122
+
- Analyze individual time steps without temporal averaging
123
+
- Event-based or process-oriented diagnostics
124
+
- Works across multiple core diagnostic sets
125
+
126
+
**Note:** ``time_slices`` and ``seasons`` parameters are mutually exclusive.
127
+
96
128
Running the Examples
97
129
====================
98
130
@@ -117,7 +149,7 @@ The parameters file contains information related to the location
117
149
of the data, what years to run the diagnostics on, what plots to create, and more.
118
150
119
151
The configuration file provides information about the diagnostics you are running.
0 commit comments