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

5.1.4 Return a new scan where the fits have been subtracted
Description

Return a new scan where the fits have been subtracted. You must fit the data before you execute this method. Otherwise, an exception will be thrown.

If the data is set as a set of abcissa and ordinate values using set_data, it will not work. If you want to get data by this method, you must use set_scan that set the data as a scantable.

Arguments

Returns
scantable

Example

   f=sd.fitter()  
   s=sd.scantable(’OrionS_rawACSmod_cal’,average=False)  
   # you must set data as a scantable  
   f.set_scan(s)  
   # set polynomial function of order 3 for baseline subtraction  
   f.set_function(poly=3)  
   # do fit  
   f.fit()  
   # get baseline subtracted scans  
   s_bs=f.commit()


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