MastAladin#
- class mast_aladin.MastAladin(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
Aladin,DelayUntilRenderedAn 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.PolygonSkyRegionrepresenting 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:
asdf (Union[str or Path-like, rdd]) – The ASDF image to load in the widget. It can be given as a path (either a string or as a
roman_datamodels.datamodels._datamodels.ImageModel).image_options (any) – The options for the image. See the Aladin Lite image options
- 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.Pathobject), or as anastropy.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.PolygonSkyRegionrepresenting 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: