Skip to content

Selecting files for analysis

QuickView can be used in two modes: a new-vis mode for starting a new visualization or a resume mode for continuing an earlier analysis saved in a state file. Both are explained below.

New-vis mode: starting a new analysis

The file loading dialog opens when you launch QuickView from a shell command or the desktop bundle. To reopen it at a later point during an analysis, press F or click File loading  in the toolbar. The red outline in the screenshot below marks the button. The user is expected to select a connectivity file and a simulation data file using the file browser or the text boxes in this window.

File loading dialog with its toolbar icon outlined in red

File system navigation

By default, when QuickView runs from a conda environment, the file loading dialog shows the contents in the directory where QuickView was launched. Double-click a subdirectory to open it. Click Go up a directory  to open the parent directory, or Return to starting directory  to go back to where you started.

Launching QuickView from a directory close to your data can reduce the number of clicks. The command-line options --workdir and --user-home can set a different start directory. See Tips for easier file selection on Chrysalis for more ways to reach your files on an HPC cluster.

Selecting files using the file browser

Click the Name, Size, or Date modified column heading in the file loading dialog to sort the listed files and folders by that column. Repeated clicks cycle through ascending order, descending order, and the original order (directories first, then file groups, then individual files, with each group sorted by name).

To narrow down a long listing, type part of a name in the Filter by name box next to the navigation buttons at the top of the window. The filter is cleared when moving to another directory.

The user can single-click a file name and then click the  Simulation or  Connectivity button in the bottom-left corner to clarify file type.  Reset clears both selected files.

Alternatively, if a filename contains connectivity_ (case-insensitive), then the user can double-click the file to have it automatically recognized as a connectivity file. Double-clicking a filename not containing connectivity_ makes it recognized as a simulation file.

Selecting files by direct text input

If the needed files are many directories away from the directory shown in the file browser, the user can avoid tedious navigation by pasting full paths, including filenames, into the Simulation File and Connectivity File text boxes in the File loading dialog.

Loading the selected files

After both connectivity and simulation files are selected, the originally pale-blue Load files button in the bottom-right corner of the File loading dialog changes to bright blue. A single click starts file loading. The Cancel button closes the window without loading anything.

If the files are loaded correctly, the UI changes into a layout like the screenshot below, with the variable selection panel on the left showing a list of parsed variables and the viewport on the right showing a brief introduction to QuickView. The user can now start to search for and load variables to inspect.

If QuickView cannot load the selected files, the File loading dialog stays open and the Load files button becomes disabled. If you launched QuickView from the command line, check the terminal for an error message. Verify that both files exist and that the connectivity file matches the simulation grid.

File loaded

Resume mode: picking up where you left off

State export and import

The current state of the analysis session can be saved—and reloaded later to resume the analysis—using State Import/Export  in the vertical toolbar. The button opens a small menu with two entries:

  •  Save state file (shortcut E for "export") is available once variables have been loaded.In a web browser, it opens the Save QuickView State file dialog. Enter a Filename (the default is quickview-state.json) and, optionally, a Comments text that is stored in the file as a reminder of what the state captures. Click Save (or press Enter) to save the file. Depending on the browser, the file is either downloaded directly or a save dialog lets you choose where to put it. In the desktop app, Save state file opens the system save dialog directly.
  •  Upload state file (shortcut I for "import", called Load state file in the desktop app) opens a file picker to select a state file and restore it.

Note that regardless of whether QuickView is executed on a local computer or on a remote system (e.g., at NERSC), these two buttons and their corresponding shortcuts save state files to and upload them from the local computer, i.e., the computer running the web browser.

A state file that is stored on the system where QuickView runs (e.g., at NERSC) can be loaded from that system using the File loading dialog discussed earlier on this page. In the file browser therein, single-click the state file (a .json file), then click the Import state file button at the bottom of that dialog, which is only enabled when the selected file is a valid QuickView state file. When launching QuickView from the command line, use --state to load a state file at startup.

Info: What's in a state file?

A state file is a JSON file that contains the paths and names of the connectivity and simulation files being used as well as the settings the user has chosen for the visualization; the contents of the connectivity and simulation files are not included.

The saved settings cover:

  • the selected variables and, for each view, its position and size in the viewport;
  • the viewport layout (aspect ratio, grouping, column arrangement), the open control panels, and the camera;
  • the slice selection, the animation dimension and its current step;
  • the map projection, the lat/lon cropping, the map center, the lat-lon grid line spacing, the coastline resolution (including None), and the background color;
  • the full colormap configuration of each view: preset, inversion, color-blind filter, scale and discrete bands, fixed or automatic range, number of ticks, NaN and out-of-range colors, and diverging mode with its parameters.

Interaction modes are not saved: loading a state file turns cursor probing off. State files saved by older versions of QuickView can still be loaded. If such a file has no information about grid line spacing, map center, or coastline resolution, those settings are reset to their defaults.

If a state file is shared among multiple users or used across different file systems, or if a user wants to apply the same visualization settings to a different simulation data file, then the file names and paths at the beginning of the state file need to be edited before the state file is loaded in the app.