NRAO Home > CASA > CASA Toolkit Reference Manual
sd.fitter.set_parameters - Function

5.1.4 Set the parameters to be fitted
Description

Set the parameters to be fitted.

It takes an argument that indicates a list of parameter values and preference if those parameters are fixed or flexible during the fit. These lists should be given as a dictionary. The params and fixed in the following argument list doesn’t indicate argument itself here. Instead, they indicate keywords in the above dictionary.

This method is normally called from set_gauss_parameters, set_lorentz_parameters, and set_sinusoid_parameters so that you may not need to call this method directly.

Arguments





Inputs

params

A vector of parameters (peak, centre, fwhm)

allowed:

float array

Default:

fixed

A vector of which parameters are to be held fixed

allowed:

float array

Default:

None (all parameters are flexible)

component

In case of multiple gaussians/lorentzians, the index of the component

allowed:

integer

Default:

0





Returns

Example


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search