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


next up previous contents index
Next: plotter - Tool Up: msr - Tool Previous: msr.peak - Function


msr.twopeak - Function



Package dish
Module dish
Tool msr


Derives characteristic values based on the peaks.


Synopsis
twopeak(lv, first, last, peak1, peak2, flevel, rms, usecurs)


Description
Similar to peak except that there are two cutoff levels determined for the data. Peaks are found within 10 channels from each guessed peak location (peak1 and peak2), the cuttoff levels are then set to be flevel times each peak. The value from the peak near first is used to set the lower channel limit and the value from the peak near last is used to set the upper channel limit in the same way that peak and mean set those channel limits. As with peak, you optionally supply a noise estimate (the rms argument) which is subtracted from the peak values before they are multiplied by flevel. The return value fields are nearly the same as in peak. Here, the level and peak fields have 2 elements. There is also a peakchan field which contains the refined locations of the two peaks.


Example
- d.msr().twopeak(flevel=0.5,usecurs=T)
[fluxint=94.6122732, vel=1110.71511, vwidth=109.501611, level=[0.610705972 
0.489752263] , limits=[330 351] , type=twopeak, peak=[1.22141194 0.979504526] , 
peakchan=[334 336] ]



Arguments

lv   an SDRecord
    Allowed: SDRecord - Not enabled
    Default: F
first   first channel number in range to integrate
    Allowed: integer
    Default: F
last   last channel number in range to integrate
    Allowed: integer
    Default: F
peak1   guess of first peak channel number
    Allowed: integer
    Default: F
peak2   guess of second peak channel number
    Allowed: integer
    Default: F
flevel   fractional flux level
    Allowed: float
    Default: 0.3
rms   rms of spectrum
    Allowed: float
    Default: 0.
usecurs   optionally set ranges with cursor
    Allowed: boolean
    Default: F



Returns
Record (fluxint, vel, vwidth, level, limits, type, peak, peakchan)







next up previous contents index
Next: plotter - Tool Up: msr - Tool Previous: msr.peak - 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