1- from trame .widgets import vuetify3 as v3 , html
2- from e3sm_quickview . assets import ASSETS
1+ from trame .widgets import html
2+ from trame . widgets import vuetify3 as v3
33
4+ from e3sm_quickview .assets import ASSETS
45
56# -----------------------------------------------------------------------------
67# Tools
@@ -22,7 +23,7 @@ def __init__(self, icon, title, description):
2223class ToolFileLoading (Tool ):
2324 def __init__ (self ):
2425 super ().__init__ (
25- icon = "mdi-file-document -outline" ,
26+ icon = "mdi-file-upload -outline" ,
2627 title = "File loading" ,
2728 description = "Load files to explore. Those could be simulation and connectivity files or even a state file pointing to those files." ,
2829 )
@@ -34,9 +35,9 @@ class ToolFieldSelection(Tool):
3435 def __init__ (self ):
3536 super ().__init__ (
3637 icon = "mdi-list-status" ,
37- title = "Fields selection" ,
38+ title = "Variable selection" ,
3839 description = """
39- Select the variables to visualize. You need to load files prior any field selection.
40+ Select the variables to visualize. You need to load files prior any variable selection.
4041 """ ,
4142 )
4243 with self , v3 .Template (v_slot_append = True ):
@@ -46,12 +47,12 @@ def __init__(self):
4647class ToolResetCamera (Tool ):
4748 def __init__ (self ):
4849 super ().__init__ (
49- icon = "mdi-crop-free " ,
50- title = "Reset camera " ,
50+ icon = "mdi-fit-to-page-outline " ,
51+ title = "Auto zoom " ,
5152 description = "Recenter the visualizations to the full data." ,
5253 )
5354 with self , v3 .Template (v_slot_append = True ):
54- v3 .VHotkey (keys = "r " , variant = "contained" , inline = True )
55+ v3 .VHotkey (keys = "z " , variant = "contained" , inline = True )
5556
5657
5758class ToolStateImportExport (Tool ):
@@ -74,31 +75,31 @@ def __init__(self):
7475 description = "Select projection to use for the visualizations. (Cylindrical Equidistant, Robinson, Mollweide)" ,
7576 )
7677 with self , v3 .Template (v_slot_append = True ):
77- v3 .VHotkey (keys = "e " , variant = "contained" , inline = True )
78- v3 .VHotkey (keys = "b " , variant = "contained" , inline = True )
78+ v3 .VHotkey (keys = "c " , variant = "contained" , inline = True )
79+ v3 .VHotkey (keys = "r " , variant = "contained" , inline = True )
7980 v3 .VHotkey (keys = "m" , variant = "contained" , inline = True )
8081
8182
8283class ToolLayoutManagement (Tool ):
8384 def __init__ (self ):
8485 super ().__init__ (
8586 icon = "mdi-collage" ,
86- title = "Layout management " ,
87- description = "Toggle layout toolbar for adjusting aspect-ratio, width and grouping options." ,
87+ title = "Viewport layout " ,
88+ description = "Toggle viewport layout toolbar for adjusting aspect-ratio, width and grouping options." ,
8889 )
8990 with self , v3 .Template (v_slot_append = True ):
90- v3 .VHotkey (keys = "l " , variant = "contained" , inline = True )
91+ v3 .VHotkey (keys = "p " , variant = "contained" , inline = True )
9192
9293
9394class ToolCropping (Tool ):
9495 def __init__ (self ):
9596 super ().__init__ (
96- icon = "mdi-crop " ,
97+ icon = "mdi-web " ,
9798 title = "Lat/Long cropping" ,
9899 description = "Toggle cropping toolbar for adjusting spacial bounds." ,
99100 )
100101 with self , v3 .Template (v_slot_append = True ):
101- v3 .VHotkey (keys = "c " , variant = "contained" , inline = True )
102+ v3 .VHotkey (keys = "l " , variant = "contained" , inline = True )
102103
103104
104105class ToolDataSelection (Tool ):
@@ -115,7 +116,7 @@ def __init__(self):
115116class ToolAnimation (Tool ):
116117 def __init__ (self ):
117118 super ().__init__ (
118- icon = "mdi-movie-open-cog-outline " ,
119+ icon = "mdi-video " ,
119120 title = "Animation controls" ,
120121 description = "Toggle animation toolbar." ,
121122 )
@@ -184,7 +185,7 @@ def __init__(self):
184185 { Bold ("EAM QuickView" )} is an open-source, interactive visualization
185186 tool designed for scientists working with the atmospheric component
186187 of the { Link ("Energy Exascale Earth System Model (E3SM)" , "https://e3sm.org/" )} ,
187- known as the E3SM Atmosphere Model (EAM).
188+ known as the E3SM Atmosphere Model (EAM).
188189 Its Python- and { Link ("Trame" , "https://www.kitware.com/trame/" )} -based
189190 Graphical User Interface (GUI) provides intuitive access to { Link ("ParaView's" , "https://www.paraview.org/" )} powerful analysis
190191 and visualization capabilities, without the steep learning curve.
@@ -221,9 +222,9 @@ def __init__(self):
221222 v3 .VHotkey (keys = "h" , variant = "contained" , inline = True )
222223
223224 with v3 .VRow (classes = "ma-0 pb-4" ):
224- v3 .VLabel ("Reset Camera " )
225+ v3 .VLabel ("Auto zoom " )
225226 v3 .VSpacer ()
226- v3 .VHotkey (keys = "r " , variant = "contained" , inline = True )
227+ v3 .VHotkey (keys = "z " , variant = "contained" , inline = True )
227228
228229 with v3 .VRow (classes = "ma-0 pb-4" ):
229230 v3 .VLabel ("Toggle view interaction lock" )
@@ -250,13 +251,13 @@ def __init__(self):
250251 v3 .VDivider (classes = "mb-4" )
251252
252253 with v3 .VRow (classes = "ma-0 pb-4" ):
253- v3 .VLabel ("Toggle Layout management toolbar" )
254+ v3 .VLabel ("Toggle viewport layout toolbar" )
254255 v3 .VSpacer (classes = "mt-2" )
255- v3 .VHotkey (keys = "l " , variant = "contained" , inline = True )
256+ v3 .VHotkey (keys = "p " , variant = "contained" , inline = True )
256257 with v3 .VRow (classes = "ma-0 pb-4" ):
257258 v3 .VLabel ("Toggle Lat/Long cropping toolbar" )
258259 v3 .VSpacer ()
259- v3 .VHotkey (keys = "c " , variant = "contained" , inline = True )
260+ v3 .VHotkey (keys = "l " , variant = "contained" , inline = True )
260261 with v3 .VRow (classes = "ma-0 pb-4" ):
261262 v3 .VLabel ("Toggle Slice selection toolbar" )
262263 v3 .VSpacer ()
@@ -292,10 +293,10 @@ def __init__(self):
292293 with v3 .VList (density = "compact" , classes = "pa-0 ma-0" ):
293294 with v3 .VListItem (subtitle = "Cylindrical Equidistant" ):
294295 with v3 .Template (v_slot_append = "True" ):
295- v3 .VHotkey (keys = "e " , variant = "contained" , inline = True )
296+ v3 .VHotkey (keys = "c " , variant = "contained" , inline = True )
296297 with v3 .VListItem (subtitle = "Robinson" ):
297298 with v3 .Template (v_slot_append = "True" ):
298- v3 .VHotkey (keys = "b " , variant = "contained" , inline = True )
299+ v3 .VHotkey (keys = "r " , variant = "contained" , inline = True )
299300 with v3 .VListItem (subtitle = "Mollweide" ):
300301 with v3 .Template (v_slot_append = "True" ):
301302 v3 .VHotkey (keys = "m" , variant = "contained" , inline = True )
@@ -334,7 +335,7 @@ def __init__(self):
334335 """
335336 QuickView has been developed using EAM's history output on
336337 the physics grids (pg2 grids) written by EAMv2, v3, and an
337- intermediate version towards v4 (EAMxx).
338+ intermediate version towards v4 (EAMxx).
338339 Those sample output files can be found on Zenodo.
339340 """
340341 )
0 commit comments