Changeset 2771 for trunk/python
- Timestamp:
- 02/13/13 14:43:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2767 r2771 2889 2889 2890 2890 @asaplog_post_dec 2891 def sinusoid_baseline(self, insitu=None,mask=None, applyfft=None,2891 def sinusoid_baseline(self, mask=None, applyfft=None, 2892 2892 fftmethod=None, fftthresh=None, 2893 addwn=None, rejwn=None, clipthresh=None, 2894 clipniter=None, plot=None, 2895 getresidual=None, showprogress=None, 2896 minnrow=None, outlog=None, 2893 addwn=None, rejwn=None, 2894 insitu=None, 2895 clipthresh=None, clipniter=None, 2896 plot=None, 2897 getresidual=None, 2898 showprogress=None, minnrow=None, 2899 outlog=None, 2897 2900 blfile=None, csvformat=None, 2898 2901 bltable=None): … … 2902 2905 2903 2906 Parameters: 2904 insitu: if False a new scantable is returned.2905 Otherwise, the scaling is done in-situ2906 The default is taken from .asaprc (False)2907 2907 mask: an optional mask 2908 2908 applyfft: if True use some method, such as FFT, to find … … 2936 2936 wave numbers which are specified both in addwn 2937 2937 and rejwn will NOT be used. default is []. 2938 insitu: if False a new scantable is returned. 2939 Otherwise, the scaling is done in-situ 2940 The default is taken from .asaprc (False) 2938 2941 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 2939 2942 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 2982 2985 workscan = self.copy() 2983 2986 2984 #if mask is None: mask = [True for i in xrange(workscan.nchan())]2985 2987 if mask is None: mask = [] 2986 2988 if applyfft is None: applyfft = True … … 3034 3036 3035 3037 @asaplog_post_dec 3036 def auto_sinusoid_baseline(self, insitu=None,mask=None, applyfft=None,3038 def auto_sinusoid_baseline(self, mask=None, applyfft=None, 3037 3039 fftmethod=None, fftthresh=None, 3038 addwn=None, rejwn=None, clipthresh=None, 3039 clipniter=None, edge=None, threshold=None, 3040 chan_avg_limit=None, plot=None, 3041 getresidual=None, showprogress=None, 3042 minnrow=None, outlog=None, 3040 addwn=None, rejwn=None, 3041 insitu=None, 3042 clipthresh=None, clipniter=None, 3043 edge=None, threshold=None, chan_avg_limit=None, 3044 plot=None, 3045 getresidual=None, 3046 showprogress=None, minnrow=None, 3047 outlog=None, 3043 3048 blfile=None, csvformat=None, 3044 3049 bltable=None): … … 3050 3055 3051 3056 Parameters: 3052 insitu: if False a new scantable is returned.3053 Otherwise, the scaling is done in-situ3054 The default is taken from .asaprc (False)3055 3057 mask: an optional mask retreived from scantable 3056 3058 applyfft: if True use some method, such as FFT, to find … … 3084 3086 wave numbers which are specified both in addwn 3085 3087 and rejwn will NOT be used. default is []. 3088 insitu: if False a new scantable is returned. 3089 Otherwise, the scaling is done in-situ 3090 The default is taken from .asaprc (False) 3086 3091 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3087 3092 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3147 3152 workscan = self.copy() 3148 3153 3149 #if mask is None: mask = [True for i in xrange(workscan.nchan())]3150 3154 if mask is None: mask = [] 3151 3155 if applyfft is None: applyfft = True … … 3200 3204 3201 3205 @asaplog_post_dec 3202 def cspline_baseline(self, insitu=None, mask=None, npiece=None,3206 def cspline_baseline(self, mask=None, npiece=None, insitu=None, 3203 3207 clipthresh=None, clipniter=None, plot=None, 3204 3208 getresidual=None, showprogress=None, minnrow=None, … … 3210 3214 3211 3215 Parameters: 3216 mask: An optional mask 3217 npiece: Number of pieces. (default is 2) 3212 3218 insitu: If False a new scantable is returned. 3213 3219 Otherwise, the scaling is done in-situ 3214 3220 The default is taken from .asaprc (False) 3215 mask: An optional mask3216 npiece: Number of pieces. (default is 2)3217 3221 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3218 3222 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3261 3265 workscan = self.copy() 3262 3266 3263 #if mask is None: mask = [True for i in xrange(workscan.nchan())]3264 3267 if mask is None: mask = [] 3265 3268 if npiece is None: npiece = 2 … … 3300 3303 3301 3304 @asaplog_post_dec 3302 def auto_cspline_baseline(self, insitu=None, mask=None, npiece=None,3305 def auto_cspline_baseline(self, mask=None, npiece=None, insitu=None, 3303 3306 clipthresh=None, clipniter=None, 3304 3307 edge=None, threshold=None, chan_avg_limit=None, … … 3313 3316 3314 3317 Parameters: 3318 mask: an optional mask retreived from scantable 3319 npiece: Number of pieces. (default is 2) 3315 3320 insitu: if False a new scantable is returned. 3316 3321 Otherwise, the scaling is done in-situ 3317 3322 The default is taken from .asaprc (False) 3318 mask: an optional mask retreived from scantable3319 npiece: Number of pieces. (default is 2)3320 3323 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3321 3324 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3426 3429 3427 3430 @asaplog_post_dec 3428 def chebyshev_baseline(self, insitu=None, mask=None, order=None,3431 def chebyshev_baseline(self, mask=None, order=None, insitu=None, 3429 3432 clipthresh=None, clipniter=None, plot=None, 3430 3433 getresidual=None, showprogress=None, minnrow=None, … … 3435 3438 3436 3439 Parameters: 3440 mask: An optional mask 3441 order: the maximum order of Chebyshev polynomial (default is 5) 3437 3442 insitu: If False a new scantable is returned. 3438 3443 Otherwise, the scaling is done in-situ 3439 3444 The default is taken from .asaprc (False) 3440 mask: An optional mask3441 order: the maximum order of Chebyshev polynomial (default is 5)3442 3445 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3443 3446 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3524 3527 3525 3528 @asaplog_post_dec 3526 def auto_chebyshev_baseline(self, insitu=None, mask=None, order=None,3529 def auto_chebyshev_baseline(self, mask=None, order=None, insitu=None, 3527 3530 clipthresh=None, clipniter=None, 3528 3531 edge=None, threshold=None, chan_avg_limit=None, … … 3536 3539 3537 3540 Parameters: 3541 mask: an optional mask retreived from scantable 3542 order: the maximum order of Chebyshev polynomial (default is 5) 3538 3543 insitu: if False a new scantable is returned. 3539 3544 Otherwise, the scaling is done in-situ 3540 3545 The default is taken from .asaprc (False) 3541 mask: an optional mask retreived from scantable3542 order: the maximum order of Chebyshev polynomial (default is 5)3543 3546 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3544 3547 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3647 3650 3648 3651 @asaplog_post_dec 3649 def poly_baseline(self, insitu=None, mask=None, order=None,3652 def poly_baseline(self, mask=None, order=None, insitu=None, 3650 3653 clipthresh=None, clipniter=None, plot=None, 3651 3654 getresidual=None, showprogress=None, minnrow=None, … … 3655 3658 Return a scan which has been baselined (all rows) by a polynomial. 3656 3659 Parameters: 3660 mask: an optional mask 3661 order: the order of the polynomial (default is 0) 3657 3662 insitu: if False a new scantable is returned. 3658 3663 Otherwise, the scaling is done in-situ 3659 3664 The default is taken from .asaprc (False) 3660 mask: an optional mask3661 order: the order of the polynomial (default is 0)3662 3665 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3663 3666 clipniter: maximum number of iteration of 'clipthresh'-sigma … … 3797 3800 3798 3801 @asaplog_post_dec 3799 def auto_poly_baseline(self, insitu=None, mask=None, order=None,3802 def auto_poly_baseline(self, mask=None, order=None, insitu=None, 3800 3803 clipthresh=None, clipniter=None, 3801 3804 edge=None, threshold=None, chan_avg_limit=None, … … 3809 3812 3810 3813 Parameters: 3814 mask: an optional mask retreived from scantable 3815 order: the order of the polynomial (default is 0) 3811 3816 insitu: if False a new scantable is returned. 3812 3817 Otherwise, the scaling is done in-situ 3813 3818 The default is taken from .asaprc (False) 3814 mask: an optional mask retreived from scantable3815 order: the order of the polynomial (default is 0)3816 3819 clipthresh: Clipping threshold. (default is 3.0, unit: sigma) 3817 3820 clipniter: maximum number of iteration of 'clipthresh'-sigma
Note:
See TracChangeset
for help on using the changeset viewer.