Changeset 2640 for branches/hpc34/python
- Timestamp:
- 08/10/12 20:18:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc34/python/scantable.py
r2574 r2640 2440 2440 clipniter=None, plot=None, 2441 2441 getresidual=None, showprogress=None, 2442 minnrow=None, outlog=None, blfile=None ):2442 minnrow=None, outlog=None, blfile=None, csvformat=None): 2443 2443 """\ 2444 2444 Return a scan which has been baselined (all rows) with sinusoidal … … 2498 2498 parameter values to be written 2499 2499 (default is '': no file/logger output) 2500 csvformat: if True blfile is csv-formatted, default is False. 2500 2501 2501 2502 Example: … … 2534 2535 if outlog is None: outlog = False 2535 2536 if blfile is None: blfile = '' 2536 2537 if csvformat is None: csvformat = False 2538 2539 if csvformat: 2540 scsvformat = "T" 2541 else: 2542 scsvformat = "F" 2543 2537 2544 #CURRENTLY, PLOT=true is UNAVAILABLE UNTIL sinusoidal fitting is implemented as a fitter method. 2538 2545 workscan._sinusoid_baseline(mask, applyfft, fftmethod.lower(), 2539 2546 str(fftthresh).lower(), 2540 2547 workscan._parse_wn(addwn), 2541 workscan._parse_wn(rejwn), clipthresh, 2542 clipniter, getresidual, 2548 workscan._parse_wn(rejwn), 2549 clipthresh, clipniter, 2550 getresidual, 2543 2551 pack_progress_params(showprogress, 2544 minnrow), outlog,2545 blfile)2552 minnrow), 2553 outlog, scsvformat+blfile) 2546 2554 workscan._add_history('sinusoid_baseline', varlist) 2547 2555 … … 2562 2570 chan_avg_limit=None, plot=None, 2563 2571 getresidual=None, showprogress=None, 2564 minnrow=None, outlog=None, blfile=None ):2572 minnrow=None, outlog=None, blfile=None, csvformat=None): 2565 2573 """\ 2566 2574 Return a scan which has been baselined (all rows) with sinusoidal … … 2642 2650 parameter values to be written 2643 2651 (default is "": no file/logger output) 2652 csvformat: if True blfile is csv-formatted, default is False. 2644 2653 2645 2654 Example: … … 2678 2687 if outlog is None: outlog = False 2679 2688 if blfile is None: blfile = '' 2689 if csvformat is None: csvformat = False 2690 2691 if csvformat: 2692 scsvformat = "T" 2693 else: 2694 scsvformat = "F" 2680 2695 2681 2696 #CURRENTLY, PLOT=true is UNAVAILABLE UNTIL sinusoidal fitting is implemented as a fitter method. … … 2691 2706 pack_progress_params(showprogress, 2692 2707 minnrow), 2693 outlog, blfile)2708 outlog, scsvformat+blfile) 2694 2709 workscan._add_history("auto_sinusoid_baseline", varlist) 2695 2710 … … 2706 2721 clipthresh=None, clipniter=None, plot=None, 2707 2722 getresidual=None, showprogress=None, minnrow=None, 2708 outlog=None, blfile=None ):2723 outlog=None, blfile=None, csvformat=None): 2709 2724 """\ 2710 2725 Return a scan which has been baselined (all rows) by cubic spline … … 2735 2750 parameter values to be written 2736 2751 (default is "": no file/logger output) 2752 csvformat: if True blfile is csv-formatted, default is False. 2737 2753 2738 2754 Example: … … 2767 2783 if outlog is None: outlog = False 2768 2784 if blfile is None: blfile = '' 2785 if csvformat is None: csvformat = False 2786 2787 if csvformat: 2788 scsvformat = "T" 2789 else: 2790 scsvformat = "F" 2769 2791 2770 2792 #CURRENTLY, PLOT=true UNAVAILABLE UNTIL cubic spline fitting is implemented as a fitter method. … … 2772 2794 getresidual, 2773 2795 pack_progress_params(showprogress, 2774 minnrow), outlog,2775 blfile)2796 minnrow), 2797 outlog, scsvformat+blfile) 2776 2798 workscan._add_history("cspline_baseline", varlist) 2777 2799 … … 2790 2812 getresidual=None, plot=None, 2791 2813 showprogress=None, minnrow=None, outlog=None, 2792 blfile=None ):2814 blfile=None, csvformat=None): 2793 2815 """\ 2794 2816 Return a scan which has been baselined (all rows) by cubic spline … … 2841 2863 parameter values to be written 2842 2864 (default is "": no file/logger output) 2865 csvformat: if True blfile is csv-formatted, default is False. 2843 2866 2844 2867 Example: … … 2873 2896 if outlog is None: outlog = False 2874 2897 if blfile is None: blfile = '' 2898 if csvformat is None: csvformat = False 2899 2900 if csvformat: 2901 scsvformat = "T" 2902 else: 2903 scsvformat = "F" 2875 2904 2876 2905 #CURRENTLY, PLOT=true UNAVAILABLE UNTIL cubic spline fitting is implemented as a fitter method. … … 2882 2911 pack_progress_params(showprogress, 2883 2912 minnrow), 2884 outlog, blfile)2913 outlog, scsvformat+blfile) 2885 2914 workscan._add_history("auto_cspline_baseline", varlist) 2886 2915 … … 2896 2925 def poly_baseline(self, mask=None, order=None, insitu=None, plot=None, 2897 2926 getresidual=None, showprogress=None, minnrow=None, 2898 outlog=None, blfile=None ):2927 outlog=None, blfile=None, csvformat=None): 2899 2928 """\ 2900 2929 Return a scan which has been baselined (all rows) by a polynomial. … … 2919 2948 parameter values to be written 2920 2949 (default is "": no file/logger output) 2950 csvformat: if True blfile is csv-formatted, default is False. 2921 2951 2922 2952 Example: … … 2946 2976 if outlog is None: outlog = False 2947 2977 if blfile is None: blfile = "" 2978 if csvformat is None: csvformat = False 2979 2980 if csvformat: 2981 scsvformat = "T" 2982 else: 2983 scsvformat = "F" 2948 2984 2949 2985 if plot: … … 2990 3026 blpars["fixed"], 2991 3027 rms, str(masklist), 2992 r, True )3028 r, True, csvformat) 2993 3029 blf.write(dataout) 2994 3030 … … 3002 3038 pack_progress_params(showprogress, 3003 3039 minnrow), 3004 outlog, blfile)3040 outlog, scsvformat+blfile) 3005 3041 3006 3042 workscan._add_history("poly_baseline", varlist) … … 3019 3055 plot=None, insitu=None, 3020 3056 getresidual=None, showprogress=None, 3021 minnrow=None, outlog=None, blfile=None ):3057 minnrow=None, outlog=None, blfile=None, csvformat=None): 3022 3058 """\ 3023 3059 Return a scan which has been baselined (all rows) by a polynomial. … … 3065 3101 parameter values to be written 3066 3102 (default is "": no file/logger output) 3103 csvformat: if True blfile is csv-formatted, default is False. 3067 3104 3068 3105 Example: … … 3092 3129 if outlog is None: outlog = False 3093 3130 if blfile is None: blfile = '' 3131 if csvformat is None: csvformat = False 3132 3133 if csvformat: 3134 scsvformat = "T" 3135 else: 3136 scsvformat = "F" 3094 3137 3095 3138 edge = normalise_edge_param(edge) … … 3145 3188 blpars["fixed"], 3146 3189 rms, str(masklist), 3147 r, True )3190 r, True, csvformat) 3148 3191 blf.write(dataout) 3149 3192 … … 3157 3200 pack_progress_params(showprogress, 3158 3201 minnrow), 3159 outlog, blfile)3202 outlog, scsvformat+blfile) 3160 3203 3161 3204 workscan._add_history("auto_poly_baseline", varlist)
Note:
See TracChangeset
for help on using the changeset viewer.