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

5.1.4 Execute actual fitting process
Description

Execute the actual fitting process. All the state (data, selection, and function) has to be set before executing.

The method executes a fitting process for only one row that are specified by a row argument. By default, the first row will be fitted.

The estimate argument determines if the method computes an initial parameter set automatically. This can be used to compute estimates even if fit was called before.

Arguments





Inputs

row

Specify the row in the scantable

allowed:

integer

Default:

0

estimate

Auto-compute an initial parameter set

allowed:

bool

Default:

False





Returns

Example

        s = sd.scantable(’myscan.asap’)  
        s.set_cursor(thepol=1)        # select second pol (nb. 0-based)  
        f = sd.fitter()  
        f.set_scan(s)  
        f.set_function(poly=0)  
        f.fit(row=0)                  # fit first row


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