astropy:docs

Shift

class astropy.modeling.functional_models.Shift(offsets, **kwargs)[source] [edit on github]

Bases: astropy.modeling.Model

Shift a coordinate.

Parameters:

offsets : float or a list of floats

offsets to be applied to a coordinate if a list - each value in the list is an offset to be applied to a column in the input coordinate array

Attributes Summary

offsets
param_names list() -> new empty list

Methods Summary

__call__(*inputs, **kwargs) Transforms data using this model.
inverse()

Attributes Documentation

offsets
param_names = ['offsets']

Methods Documentation

__call__(*inputs, **kwargs)[source] [edit on github]

Transforms data using this model.

Parameters:

x : array like or a number

input

inverse()[source] [edit on github]

Page Contents