MastAladin#

class mast_aladin.MastAladin(*args: t.Any, **kwargs: t.Any)[source]#

Bases: Aladin, DelayUntilRendered

An Aladin-lite widget with enhanced support for datasets from MAST, built on top of ipyaladin.widget.Aladin.

Public constructor

Methods Summary

add_asdf(asdf, **image_options)

Load an ASDF image into the widget.

add_fits(f[, extension])

Load a FITS image into the widget.

get_viewport_region([center])

Return a regions.PolygonSkyRegion representing the perimeter of the MastAladin viewport.

load_table(table[, load_footprints, ...])

Methods Documentation

add_asdf(asdf, **image_options)[source]#

Load an ASDF image into the widget.

Parameters:
add_fits(f, extension=1, **image_options)[source]#

Load a FITS image into the widget.

Parameters:
  • f (Union[str, Path, HDUList]) – The FITS image to load in the widget. It can be given as a path (either a string or a pathlib.Path object), or as an astropy.io.fits.HDUList.

  • extension (int, optional) – FITS extension containing the image data to load. Default is 1.

  • image_options (any) –

    The options for the image. See the Aladin Lite image options

get_viewport_region(center=False)[source]#

Return a regions.PolygonSkyRegion representing the perimeter of the MastAladin viewport.

Parameters:

center (bool, optional) – If False (default), return a region where the vertices are the the outer corners of the corner pixels; otherwise the vertices will be the corner pixel centers.

Returns:

Region with vertices representing the corners of the current field of view in the viewport.

Return type:

regions.PolygonSkyRegion

load_table(table, load_footprints=True, update_viewport=True, unique_column=None)[source]#