MIRI_AB2Slice

class stdatamodels.jwst.transforms.MIRI_AB2Slice(beta_zero=Parameter('beta_zero', value=0.0), beta_del=Parameter('beta_del', value=1.0), channel=Parameter('channel', value=1.0), **kwargs)

Bases: Model

MIRI MRS alpha, beta to slice transform.

Initialize the model.

Parameters:
beta_zerofloat

Beta coordinate of the center of slice 1 in the MIRI MRS.

beta_delfloat

Slice width.

channelint

MIRI MRS channel number. Valid values are 1, 2, 3, 4.

**kwargs

Additional keyword arguments to pass to Model.

Attributes Summary

beta_del

Beta_del parameter

beta_zero

Beta_zero parameter

channel

MIRI MRS channel: one of 1, 2, 3, 4

fittable

n_inputs

n_outputs

param_names

Names of the parameters that describe models of this type.

standard_broadcasting

Methods Summary

__call__(*inputs[, model_set_axis, ...])

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(beta, beta_zero, beta_del, channel)

Convert beta to slice number.

Attributes Documentation

beta_del = Parameter('beta_del', value=1.0)

Beta_del parameter

beta_zero = Parameter('beta_zero', value=0.0)

Beta_zero parameter

channel = Parameter('channel', value=1.0)

MIRI MRS channel: one of 1, 2, 3, 4

fittable = False
n_inputs = 1
n_outputs = 1
param_names = ('beta_zero', 'beta_del', 'channel')

Names of the parameters that describe models of this type.

The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.

When defining a custom model class the value of this attribute is automatically set by the ~astropy.modeling.Parameter attributes defined in the class body.

standard_broadcasting = False

Methods Documentation

__call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

static evaluate(beta, beta_zero, beta_del, channel)

Convert beta to slice number.

Parameters:
betafloat or np.ndarray

The beta angle.

beta_zerofloat or np.ndarray

Beta coordinate of the center of slice 1 in the MIRI MRS.

beta_delfloat or np.ndarray

Slice width.

channelint or np.ndarray

MIRI MRS channel number. Valid values are 1, 2, 3, 4.

Returns:
int or np.ndarray

The slice number.