psy_view package

psy-view

ncview-like interface to psyplot

Functions:

get_parser()

Get the command line parser for psy-view.

main()

Start the app with the provided command-line options.

start_app(ds[, name, plotmethod, preset])

Start the standalone GUI application.

psy_view.get_parser() ArgumentParser[source]

Get the command line parser for psy-view.

psy_view.main() None[source]

Start the app with the provided command-line options.

psy_view.start_app(ds: Dataset | None, name: str | None = None, plotmethod: str = 'mapplot', preset: str | None = None) None[source]

Start the standalone GUI application.

This function creates a QApplication instance, an instance of the psy_view.ds_widget.DatasetWidget and enters the main event loop.

Parameters:
  • ds (xarray.Dataset) – The dataset to display. If None, the user can select it afterwards

  • name (str) – The variable name in ds to display. If None, the user can select it afterwards

  • plotmethod ({'mapplot' | 'lineplot' | 'plot2d' }) – The plotmethod to use

  • preset (str) – The preset to apply

Submodules