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

input_names list() -> new empty list
offsets
param_names list() -> new empty list

Methods Summary

eval(*args, **kwargs)

Deprecated since version 1.0.

evaluate(x, offsets)
inverse()

Attributes Documentation

input_names = []
offsets
param_names = ['offsets']

Methods Documentation

static eval(*args, **kwargs) [edit on github]

Deprecated since version 1.0: The eval method is deprecated and may be removed in a future version. Use Shift.evaluate instead.

static evaluate(x, offsets)[source] [edit on github]
inverse()[source] [edit on github]

Page Contents