ReferenceViewer

class ginga.rv.main.ReferenceViewer(layout=['seq', {}, ['vbox', {'name': 'top', 'width': 1400, 'height': 700}, {'row': ['hbox', {'name': 'menu'}], 'stretch': 0}, {'row': ['hpanel', {'name': 'hpnl'}, ['ws', {'name': 'left', 'wstype': 'tabs', 'width': 300, 'height': -1, 'group': 2}, [('Info', ['vpanel', {}, ['ws', {'name': 'uleft', 'wstype': 'stack', 'height': 250, 'group': 3}], ['ws', {'name': 'lleft', 'wstype': 'tabs', 'height': 330, 'group': 3}]])]], ['vbox', {'name': 'main', 'width': 600}, {'row': ['ws', {'name': 'channels', 'wstype': 'tabs', 'group': 1, 'use_toolbar': True, 'default': True}], 'stretch': 1}, {'row': ['ws', {'name': 'cbar', 'wstype': 'stack', 'group': 99}], 'stretch': 0}, {'row': ['ws', {'name': 'readout', 'wstype': 'stack', 'group': 99}], 'stretch': 0}, {'row': ['ws', {'name': 'operations', 'wstype': 'stack', 'group': 99}], 'stretch': 0}], ['ws', {'name': 'right', 'wstype': 'tabs', 'width': 400, 'height': -1, 'group': 2}, [('Dialogs', ['ws', {'name': 'dialogs', 'wstype': 'tabs', 'group': 2}])]]], 'stretch': 1}, {'row': ['ws', {'name': 'toolbar', 'wstype': 'stack', 'height': 40, 'group': 2}], 'stretch': 0}, {'row': ['hbox', {'name': 'status'}], 'stretch': 0}]], plugins=[{'module': 'Operations', 'workspace': 'operations', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Operations [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Toolbar', 'workspace': 'toolbar', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Toolbar [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Pan', 'workspace': 'uleft', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Pan [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Info', 'tab': 'Synopsis', 'workspace': 'lleft', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Info [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Thumbs', 'tab': 'Thumbs', 'workspace': 'right', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Thumbs [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Contents', 'tab': 'Contents', 'workspace': 'right', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Contents [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Colorbar', 'workspace': 'cbar', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Colorbar [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Cursor', 'workspace': 'readout', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Cursor [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Errors', 'tab': 'Errors', 'workspace': 'right', 'start': True, 'hidden': True, 'category': 'System', 'menu': 'Errors [G]', 'ptype': 'global', 'enabled': True}, {'module': 'Downloads', 'tab': 'Downloads', 'workspace': 'right', 'start': False, 'menu': 'Downloads [G]', 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'Blink', 'tab': 'Blink Channels', 'workspace': 'right', 'start': False, 'name': 'Blink[channels]', 'menu': 'Blink Channels [G]', 'category': 'Analysis', 'ptype': 'global', 'enabled': True}, {'module': 'Blink', 'workspace': 'dialogs', 'menu': 'Blink Images', 'name': 'Blink[images]', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'Crosshair', 'workspace': 'left', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'Cuts', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'LineProfile', 'workspace': 'dialogs', 'category': 'Analysis.Datacube', 'ptype': 'local', 'enabled': True}, {'module': 'Histogram', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'Overlays', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'Pick', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'PixTable', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'TVMark', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'TVMask', 'workspace': 'dialogs', 'category': 'Analysis', 'ptype': 'local', 'enabled': True}, {'module': 'WCSMatch', 'tab': 'WCSMatch', 'workspace': 'right', 'start': False, 'menu': 'WCS Match [G]', 'category': 'Analysis', 'ptype': 'global', 'enabled': True}, {'module': 'Command', 'tab': 'Command', 'workspace': 'lleft', 'start': False, 'menu': 'Command Line [G]', 'category': 'Debug', 'ptype': 'global', 'enabled': True}, {'module': 'Log', 'tab': 'Log', 'workspace': 'right', 'start': False, 'menu': 'Logger Info [G]', 'category': 'Debug', 'ptype': 'global', 'enabled': True}, {'module': 'MultiDim', 'workspace': 'lleft', 'category': 'Navigation', 'ptype': 'local', 'enabled': True}, {'module': 'RC', 'tab': 'RC', 'workspace': 'right', 'start': False, 'menu': 'Remote Control [G]', 'category': 'Remote', 'ptype': 'global', 'enabled': True}, {'module': 'SAMP', 'tab': 'SAMP', 'workspace': 'right', 'start': False, 'menu': 'SAMP Client [G]', 'category': 'Remote', 'ptype': 'global', 'enabled': False}, {'module': 'Compose', 'workspace': 'dialogs', 'category': 'RGB', 'ptype': 'local', 'enabled': False}, {'module': 'ScreenShot', 'workspace': 'dialogs', 'category': 'RGB', 'ptype': 'local', 'enabled': True}, {'module': 'ColorMapPicker', 'tab': 'ColorMapPicker', 'name': 'ColorMapPicker[G]', 'menu': 'Set Color Map [G]', 'workspace': 'right', 'start': False, 'category': 'RGB', 'ptype': 'global', 'enabled': True}, {'module': 'ColorMapPicker', 'menu': 'Set Color Map', 'workspace': 'dialogs', 'category': 'RGB', 'ptype': 'local', 'enabled': True}, {'module': 'PlotTable', 'workspace': 'dialogs', 'category': 'Table', 'ptype': 'local', 'enabled': True}, {'module': 'Catalogs', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'Drawing', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'AutoLoad', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': False}, {'module': 'Pipeline', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': False}, {'module': 'FBrowser', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'ChangeHistory', 'tab': 'History', 'workspace': 'right', 'menu': 'History [G]', 'start': False, 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'Mosaic', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'Collage', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'FBrowser', 'tab': 'Open File', 'workspace': 'right', 'name': 'FBrowser[G]', 'menu': 'Open File [G]', 'start': False, 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'Preferences', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'Ruler', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'SaveImage', 'tab': 'SaveImage', 'workspace': 'right', 'menu': 'Save File [G]', 'start': False, 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'WCSAxes', 'workspace': 'dialogs', 'category': 'Utils', 'ptype': 'local', 'enabled': True}, {'module': 'Header', 'tab': 'Header', 'workspace': 'left', 'start': False, 'menu': 'Header [G]', 'hidden': False, 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'Zoom', 'tab': 'Zoom', 'workspace': 'left', 'start': False, 'menu': 'Zoom [G]', 'category': 'Utils', 'ptype': 'global', 'enabled': True}, {'module': 'LoaderConfig', 'tab': 'Loaders', 'workspace': 'channels', 'start': False, 'menu': 'LoaderConfig [G]', 'category': 'Debug', 'ptype': 'global', 'enabled': True}, {'module': 'PluginConfig', 'tab': 'Plugins', 'workspace': 'channels', 'start': False, 'menu': 'PluginConfig [G]', 'category': 'Debug', 'ptype': 'global', 'enabled': True}], appname='ginga', basedir=None, channels=None)[source]

Bases: object

This class exists solely to be able to customize the reference viewer startup.

Methods Summary

add_default_options(argprs)

Adds the default reference viewer startup options to an ArgumentParser instance argprs.

add_default_plugins([except_global, ...])

Add the ginga-distributed default set of plugins to the reference viewer.

add_plugin_spec(spec)

add_separately_distributed_plugins()

clear_default_plugins()

get_plugin_name(spec)

main(options, args)

Main routine for running the reference viewer.

Methods Documentation

add_default_options(argprs)[source]

Adds the default reference viewer startup options to an ArgumentParser instance argprs.

add_default_plugins(except_global=[], except_local=[])[source]

Add the ginga-distributed default set of plugins to the reference viewer.

add_plugin_spec(spec)[source]
add_separately_distributed_plugins()[source]
clear_default_plugins()[source]
get_plugin_name(spec)[source]
main(options, args)[source]

Main routine for running the reference viewer.

options is a ArgumentParser object that has been populated with values from parsing the command line. It should at least include the options from add_default_options()

args is a list of arguments to the viewer after parsing out options. It should contain a list of files or URLs to load.