Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: dish.baseline - Function Up: dish - Tool Previous: dish.avgpols - Function


dish.base - Function



Package dish
Module dish
Tool dish


Perform a polynomial baseline fit, all in one function. An alternative step-by-step method is to use the nfit, setregion, bshape, and baseline functions


Synopsis
base(scanrec, order, range, action)


Description



Arguments

scanrec   SDRecord to fit
    Allowed: boolean
    Default: Currently displayed data
order   order of polynomial
    Allowed: integer
    Default: none
range   range for computing polynomial baseline
    Allowed: string
    Default: none
action   'subtract' or 'show'
    Allowed: string
    Default: 'subtract'


Returns
Boolean if action='show'
SDRecord if action='subtract'


Example
mybl := d.base(order=2,action='subtract',range='[50:400],[1500:2000]')
                                        # This will perform a 2nd order poly.
                                        # fit to the currently displayed scan.





next up previous contents index
Next: dish.baseline - Function Up: dish - Tool Previous: dish.avgpols - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01