ImvizImageView#
- class jdaviz.configs.imviz.plugins.viewers.ImvizImageView(*args, **kwargs)[source]#
Bases:
JdavizViewerMixin,BqplotImageView,AstrowidgetsImageViewerMixinAttributes Summary
Data that is first loaded into the viewer.
Data label of the top visible layer in the viewer.
Methods Summary
blink_once([reversed])data([cls])get_alignment_method(data_label)Find the type of
gluelinking between the given data label with the reference data in viewer.get_viewport_region([sky_or_pixel, data_label])Return a
PolygonPixelRegionorPolygonSkyRegionrepresenting the perimeter of the viewer.on_limits_change(*args)on_mouse_or_key_event(data)set_compass(image)Update the Compass plugin with info from the given image Data object.
Attributes Documentation
- default_class = None#
- first_loaded_data#
Data that is first loaded into the viewer. This may not be the visible layer. Returns
Noneif no real data is loaded.
- tools_nested = [['jdaviz:homezoom', 'jdaviz:prevzoom'], ['jdaviz:boxzoommatch', 'jdaviz:boxzoom'], ['jdaviz:panzoommatch', 'jdaviz:imagepanzoom'], ['bqplot:truecircle', 'bqplot:rectangle', 'bqplot:ellipse', 'bqplot:circannulus'], ['jdaviz:blinkonce', 'jdaviz:contrastbias'], ['jdaviz:viewer_clone', 'jdaviz:sidebar_plot', 'jdaviz:sidebar_export', 'jdaviz:sidebar_compass']]#
- top_visible_data_label#
Data label of the top visible layer in the viewer.
Methods Documentation
- get_alignment_method(data_label)[source]#
Find the type of
gluelinking between the given data label with the reference data in viewer.- Parameters:
- data_labelstr
Data label to look up.
- Returns:
- align_by{‘pixels’, ‘wcs’, ‘self’}
One of the link types accepted by the Orientation plugin or
'self'if the data label belongs to the reference data itself.
- Raises:
- ValueError
Link look-up failed.
- get_viewport_region(sky_or_pixel='sky', data_label=None)[source]#
Return a
PolygonPixelRegionorPolygonSkyRegionrepresenting the perimeter of the viewer.If more than one instance of the viewer widget is open, the region will be returned with coordinates specific to the last viewport that was in focus.
- Parameters:
- sky_or_pixelstr, {‘sky’, ‘pixel’}
Return a
PolygonSkyRegionwith world coordinates or aPolygonPixelRegionwith pixel coordinates. Default is ‘sky’.- data_labelstr, optional
Return the pixel coordinates for the data layer with this label. Only used when
sky_or_pixel== ‘pixel’.
- Returns:
PolygonPixelRegionorPolygonSkyRegionRegion with vertices representing the corners of the current field of view in the viewport.