casagui.bokeh.utils._axes_labels

THIS IS PROBABLY NOT CURRENTLY IN ACTIVE USE. Functions for coordinate conversion and axis labeling using the casacore coordsys object. This was added when regions were used for masking within interactive clean instead of each user-drawn region being used to immediately change the mask cube on disk. This code may have never actually been used in production. Note that coordtxl (https://www.npmjs.com/package/coordtxl) is used for world coordinate axis labeling in JavaScript for interactive clean.

Module Contents

Functions

get_world_coordinates(ia)

get_world_coordinates_wcs(csys, shp) → list()

casagui.bokeh.utils._axes_labels.get_world_coordinates(ia)

Get the mapping between pixel coordinates and world coordinates using casatools.coordsys

Parameters:

ia (casatools.image) –

Returns:

x_axes_labels, y_axes_labels – Dictionary mapping pixel coordinates to world coordinates

Return type:

(dict, dict)

casagui.bokeh.utils._axes_labels.get_world_coordinates_wcs(csys: casatools.image.coordsys, shp)

Get the mapping between pixel coordinates and world coordinates using astropy.wcs.WCS

Parameters:

csys (casatools.coordsys) –

Returns:

x_axes_labels, y_axes_labels – Dictionary mapping pixel coordinates to world coordinates

Return type:

(dict, dict)