Skip to main content
Ctrl+K
Glue  documentation - Home
  • API
    • Component
    • DerivedComponent
    • CategoricalComponent
    • CoordinateComponent
    • DateTimeComponent
    • ExtendedComponent
    • ComponentID
    • PixelComponentID
    • ComponentIDDict
    • ComponentIDList
    • ComponentLink
    • BinaryComponentLink
    • CoordinateComponentLink
    • coordinates_from_header
    • coordinates_from_wcs
    • header_from_string
    • Coordinates
    • IdentityCoordinates
    • AffineCoordinates
    • Data
    • BaseCartesianData
    • BaseData
    • DataCollection
    • Hub
    • HubListener
    • combine_multiple
    • roi_to_subset_state
    • Subset
    • SubsetState
    • RoiSubsetStateNd
    • RoiSubsetState
    • CategoricalROISubsetState
    • RangeSubsetState
    • MultiRangeSubsetState
    • CompositeSubsetState
    • OrState
    • AndState
    • XorState
    • InvertState
    • MaskSubsetState
    • CategorySubsetState
    • ElementSubsetState
    • InequalitySubsetState
    • CategoricalMultiRangeSubsetState
    • CategoricalROISubsetState2D
    • SliceSubsetState
    • MultiOrState
    • GroupedSubset
    • SubsetGroup
    • Roi
    • RectangularROI
    • CircularROI
    • CircularAnnulusROI
    • PolygonalROI
    • AbstractMplRoi
    • MplRectangularROI
    • MplCircularROI
    • MplPolygonalROI
    • MplXRangeROI
    • MplYRangeROI
    • XRangeROI
    • RangeROI
    • YRangeROI
    • VertexROIBase
    • CategoricalROI
    • EllipticalROI
    • LinkCollection
    • LinkSame
    • LinkTwoWay
    • MultiLink
    • LinkAligned
    • BaseMultiLink
    • ManualLinkCollection
    • JoinLink
    • aastex_factory
    • astropy_tabular_data
    • auto_data
    • casalike_cube
    • cds_factory
    • daophot_factory
    • data_label
    • find_factory
    • fits_reader
    • has_extension
    • hdf5_reader
    • img_data
    • ipac_factory
    • is_casalike
    • is_fits
    • is_hdf5
    • is_npy_npz
    • latex_factory
    • load_data
    • npy_npz_reader
    • pandas_read_table
    • sextractor_factory
    • tabular_data
    • FileWatcher
    • LoadLog
    • BaseFitter1D
    • PolynomialFitter
    • AstropyFitter1D
    • SimpleAstropyGaussianFitter
    • BasicGaussianFitter
    • State
    • StateAttributeCacheHelper
    • StateAttributeLimitsHelper
    • StateAttributeSingleValueHelper
    • StateAttributeHistogramHelper
    • IncompatibleAttribute
    • IncompatibleDataException
    • InvalidMessage
    • InvalidSubscriber
    • UndefinedROI
    • Session
    • BaseViewer
    • Viewer
    • DeferredDrawSelectionCallbackProperty
    • DeferredDrawCallbackProperty
    • MatplotlibDataViewerState
    • MatplotlibLayerState
    • MatplotlibLayerArtist
    • LayerArtistBase
    • LayerArtistContainer
    • ViewerState
    • LayerState
    • LayerArtist
    • Tool
    • CheckableTool
    • DropdownTool
    • SimpleToolMenu
    • MouseMode
    • ToolbarModeBase
    • RoiModeBase
    • RoiMode
    • PersistentRoiMode
    • ClickRoiMode
    • RectangleMode
    • PathMode
    • CircleMode
    • PolyMode
    • HRangeMode
    • VRangeMode
    • PickMode
    • update_appearance_from_settings
    • init_mpl
    • MatplotlibViewerMixin
    • SimpleMatplotlibViewer
    • MatplotlibScatterMixin
    • SimpleScatterViewer
    • ScatterViewerState
    • ScatterLayerState
    • ScatterRegionLayerState
    • MatplotlibProfileMixin
    • SimpleProfileViewer
    • ProfileViewerState
    • ProfileLayerState
    • MatplotlibImageMixin
    • SimpleImageViewer
    • ImageViewerState
    • ImageLayerState
    • ImageSubsetLayerState
    • AggregateSlice
    • MatplotlibHistogramMixin
    • SimpleHistogramViewer
    • HistogramViewerState
    • HistogramLayerState
    • Application
    • custom_viewer
    • test
    • Registry
    • SettingRegistry
    • ExporterRegistry
    • ColormapRegistry
    • DataFactoryRegistry
    • LinkFunctionRegistry
    • LinkHelperRegistry
    • ViewerToolRegistry
    • ProfileFitterRegistry
    • DictRegistry
    • DataExporterRegistry
    • SubsetMaskExporterRegistry
    • SubsetMaskImporterRegistry
    • LayerArtistMakerRegistry
    • SessionPatchRegistry
    • AutoLinkerRegistry
    • DataTranslatorRegistry
    • SubsetDefinitionTranslatorRegistry
    • UnitConverterRegistry
    • StretchRegistry
    • BoolOption
    • FloatOption
    • IntOption
    • Option
    • ComponentIDComboHelper
    • ManualDataComboHelper
    • DataCollectionComboHelper
    • ComboHelper
    • BaseDataComboHelper
    • Message
    • ErrorMessage
    • SubsetMessage
    • SubsetCreateMessage
    • SubsetUpdateMessage
    • SubsetDeleteMessage
    • DataMessage
    • DataAddComponentMessage
    • DataUpdateMessage
    • DataCollectionMessage
    • DataCollectionActiveChange
    • DataCollectionActiveDataChange
    • DataCollectionAddMessage
    • DataCollectionDeleteMessage
    • ApplicationClosedMessage
    • DataRemoveComponentMessage
    • LayerArtistEnabledMessage
    • LayerArtistDisabledMessage
    • DataRenameComponentMessage
    • DataReorderComponentMessage
    • LayerArtistVisibilityMessage
    • relim
    • split_component_view
    • join_component_view
    • facet_subsets
    • colorize_subsets
    • disambiguate
    • small_view
    • small_view_array
    • visible_limits
    • tick_linker
    • update_ticks
    • ThetaRadianFormatter
    • ThetaDegreeFormatter
    • PolarRadiusFormatter
    • VisualAttributes
    • unique
    • shape_to_string
    • view_shape
    • stack_view
    • coerce_numeric
    • check_sorted
    • unbroadcast
    • iterate_chunks
    • combine_slices
    • format_minimal
    • compute_statistic
    • index_lookup
    • ensure_numerical
    • broadcast_arrays_minimal
    • random_views_for_dask_array
    • random_indices_for_array
    • categorical_ndarray
    • points_inside_poly
    • polygon_line_intersections
    • floodfill
    • rotation_matrix_2d
    • all_artists
    • new_artists
    • remove_artists
    • get_extent
    • view_cascade
    • fast_limits
    • defer_draw
    • color2rgb
    • point_contour
    • datetime64_to_mpl
    • mpl_to_datetime64
    • color2hex
    • nonpartial
    • lookup_class
    • as_variable_name
    • as_list
    • file_format
    • common_prefix
    • queue_to_list
    • format_choices
    • DeferredMethod
    • CallbackMixin
    • PropertySetMixin
    • Pointer
    • wcs_autolink
    • IncompatibleWCS
    • WCSLink
    • AffineLink
    • OffsetLink
    • NoAffineApproximation
  • .rst

WCSLink

Contents

  • WCSLink
    • WCSLink.cid_independent
    • WCSLink.description
    • WCSLink.display
    • WCSLink.as_affine_link()

WCSLink#

class glue.plugins.wcs_autolinking.wcs_autolinking.WCSLink(data1=None, data2=None, cids1=None, cids2=None)[source]#

Bases: MultiLink

A collection of links that link the pixel components of two datasets via WCS transformations.

Attributes Summary

cid_independent

description

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

display

Methods Summary

as_affine_link([n_samples, tolerance])

Approximate the link as an affine transformation which can, if the approximation is good, result in significant performance improvements.

Attributes Documentation

cid_independent = True#
description[source]#
display = 'WCS link'#

Methods Documentation

as_affine_link(n_samples=1000, tolerance=1)[source]#

Approximate the link as an affine transformation which can, if the approximation is good, result in significant performance improvements.

For now this will only work for datasets in which two pixel coordinates are linked.

The deviation to be compared to the tolerance is measured in the frame of reference of the second dataset.

previous

IncompatibleWCS

next

AffineLink

Contents
  • WCSLink
    • WCSLink.cid_independent
    • WCSLink.description
    • WCSLink.display
    • WCSLink.as_affine_link()

By Chris Beaumont, Thomas Robitaille, Michelle Borkin

© Copyright 2012-2023, Chris Beaumont, Thomas Robitaille, Michelle Borkin.