Changeset 2641 for trunk/python
- Timestamp:
- 08/10/12 20:49:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2611 r2641 2524 2524 clipniter=None, plot=None, 2525 2525 getresidual=None, showprogress=None, 2526 minnrow=None, outlog=None, blfile=None ):2526 minnrow=None, outlog=None, blfile=None, csvformat=None): 2527 2527 """\ 2528 2528 Return a scan which has been baselined (all rows) with sinusoidal … … 2582 2582 parameter values to be written 2583 2583 (default is '': no file/logger output) 2584 csvformat: if True blfile is csv-formatted, default is False. 2584 2585 2585 2586 Example: … … 2618 2619 if outlog is None: outlog = False 2619 2620 if blfile is None: blfile = '' 2621 if csvformat is None: csvformat = False 2622 2623 if csvformat: 2624 scsvformat = "T" 2625 else: 2626 scsvformat = "F" 2620 2627 2621 2628 #CURRENTLY, PLOT=true is UNAVAILABLE UNTIL sinusoidal fitting is implemented as a fitter method. … … 2626 2633 clipniter, getresidual, 2627 2634 pack_progress_params(showprogress, 2628 minnrow), outlog,2629 blfile)2635 minnrow), 2636 outlog, scsvformat+blfile) 2630 2637 workscan._add_history('sinusoid_baseline', varlist) 2631 2638 … … 2646 2653 chan_avg_limit=None, plot=None, 2647 2654 getresidual=None, showprogress=None, 2648 minnrow=None, outlog=None, blfile=None ):2655 minnrow=None, outlog=None, blfile=None, csvformat=None): 2649 2656 """\ 2650 2657 Return a scan which has been baselined (all rows) with sinusoidal … … 2726 2733 parameter values to be written 2727 2734 (default is "": no file/logger output) 2735 csvformat: if True blfile is csv-formatted, default is False. 2728 2736 2729 2737 Example: … … 2762 2770 if outlog is None: outlog = False 2763 2771 if blfile is None: blfile = '' 2772 if csvformat is None: csvformat = False 2773 2774 if csvformat: 2775 scsvformat = "T" 2776 else: 2777 scsvformat = "F" 2764 2778 2765 2779 #CURRENTLY, PLOT=true is UNAVAILABLE UNTIL sinusoidal fitting is implemented as a fitter method. … … 2775 2789 pack_progress_params(showprogress, 2776 2790 minnrow), 2777 outlog, blfile)2791 outlog, scsvformat+blfile) 2778 2792 workscan._add_history("auto_sinusoid_baseline", varlist) 2779 2793 … … 2790 2804 clipthresh=None, clipniter=None, plot=None, 2791 2805 getresidual=None, showprogress=None, minnrow=None, 2792 outlog=None, blfile=None ):2806 outlog=None, blfile=None, csvformat=None): 2793 2807 """\ 2794 2808 Return a scan which has been baselined (all rows) by cubic spline … … 2819 2833 parameter values to be written 2820 2834 (default is "": no file/logger output) 2835 csvformat: if True blfile is csv-formatted, default is False. 2821 2836 2822 2837 Example: … … 2851 2866 if outlog is None: outlog = False 2852 2867 if blfile is None: blfile = '' 2868 if csvformat is None: csvformat = False 2869 2870 if csvformat: 2871 scsvformat = "T" 2872 else: 2873 scsvformat = "F" 2853 2874 2854 2875 #CURRENTLY, PLOT=true UNAVAILABLE UNTIL cubic spline fitting is implemented as a fitter method. … … 2856 2877 getresidual, 2857 2878 pack_progress_params(showprogress, 2858 minnrow), outlog,2859 blfile)2879 minnrow), 2880 outlog, scsvformat+blfile) 2860 2881 workscan._add_history("cspline_baseline", varlist) 2861 2882 … … 2874 2895 getresidual=None, plot=None, 2875 2896 showprogress=None, minnrow=None, outlog=None, 2876 blfile=None ):2897 blfile=None, csvformat=None): 2877 2898 """\ 2878 2899 Return a scan which has been baselined (all rows) by cubic spline … … 2925 2946 parameter values to be written 2926 2947 (default is "": no file/logger output) 2948 csvformat: if True blfile is csv-formatted, default is False. 2927 2949 2928 2950 Example: … … 2957 2979 if outlog is None: outlog = False 2958 2980 if blfile is None: blfile = '' 2981 if csvformat is None: csvformat = False 2982 2983 if csvformat: 2984 scsvformat = "T" 2985 else: 2986 scsvformat = "F" 2959 2987 2960 2988 #CURRENTLY, PLOT=true UNAVAILABLE UNTIL cubic spline fitting is implemented as a fitter method. … … 2966 2994 pack_progress_params(showprogress, 2967 2995 minnrow), 2968 outlog, blfile)2996 outlog, scsvformat+blfile) 2969 2997 workscan._add_history("auto_cspline_baseline", varlist) 2970 2998 … … 2980 3008 def poly_baseline(self, mask=None, order=None, insitu=None, plot=None, 2981 3009 getresidual=None, showprogress=None, minnrow=None, 2982 outlog=None, blfile=None ):3010 outlog=None, blfile=None, csvformat=None): 2983 3011 """\ 2984 3012 Return a scan which has been baselined (all rows) by a polynomial. … … 3003 3031 parameter values to be written 3004 3032 (default is "": no file/logger output) 3033 csvformat: if True blfile is csv-formatted, default is False. 3005 3034 3006 3035 Example: … … 3030 3059 if outlog is None: outlog = False 3031 3060 if blfile is None: blfile = "" 3061 if csvformat is None: csvformat = False 3062 3063 if csvformat: 3064 scsvformat = "T" 3065 else: 3066 scsvformat = "F" 3032 3067 3033 3068 if plot: … … 3084 3119 blpars["fixed"], 3085 3120 rms, str(masklist), 3086 r, True )3121 r, True, csvformat) 3087 3122 blf.write(dataout) 3088 3123 … … 3096 3131 pack_progress_params(showprogress, 3097 3132 minnrow), 3098 outlog, blfile)3133 outlog, scsvformat+blfile) 3099 3134 3100 3135 workscan._add_history("poly_baseline", varlist) … … 3113 3148 plot=None, insitu=None, 3114 3149 getresidual=None, showprogress=None, 3115 minnrow=None, outlog=None, blfile=None ):3150 minnrow=None, outlog=None, blfile=None, csvformat=None): 3116 3151 """\ 3117 3152 Return a scan which has been baselined (all rows) by a polynomial. … … 3159 3194 parameter values to be written 3160 3195 (default is "": no file/logger output) 3196 csvformat: if True blfile is csv-formatted, default is False. 3161 3197 3162 3198 Example: … … 3186 3222 if outlog is None: outlog = False 3187 3223 if blfile is None: blfile = '' 3224 if csvformat is None: csvformat = False 3225 3226 if csvformat: 3227 scsvformat = "T" 3228 else: 3229 scsvformat = "F" 3188 3230 3189 3231 edge = normalise_edge_param(edge) … … 3247 3289 blpars["fixed"], 3248 3290 rms, str(masklist), 3249 r, True )3291 r, True, csvformat) 3250 3292 blf.write(dataout) 3251 3293 … … 3259 3301 pack_progress_params(showprogress, 3260 3302 minnrow), 3261 outlog, blfile)3303 outlog, scsvformat+blfile) 3262 3304 3263 3305 workscan._add_history("auto_poly_baseline", varlist)
Note:
See TracChangeset
for help on using the changeset viewer.