Changeset 1826 for trunk/python/asapmath.py
- Timestamp:
- 08/03/10 11:41:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r1819 r1826 1 1 from asap.scantable import scantable 2 from asap import rcParams 3 from asap import print_log, print_log_dec 4 from asap import selector 5 from asap import asaplog 2 from asap.paramaters import rcParams 3 from asap.logging import asaplog, print_log, print_log_dec 4 from asap.selector import selector 6 5 from asap import asaplotgui 7 6 … … 937 936 """ 938 937 Calibrate data. 939 938 940 939 Parameters: 941 940 scantab: scantable 942 941 scannos: list of scan number 943 942 calmode: calibration mode 944 verify: verify calibration 943 verify: verify calibration 945 944 """ 946 945 antname = scantab.get_antennaname() … … 979 978 scal = scantab.copy() 980 979 981 return scal 980 return scal 982 981 983 982 def apexcal( scantab, scannos=[], calmode='none', verify=False ): … … 990 989 calmode: calibration mode 991 990 992 verify: verify calibration 991 verify: verify calibration 993 992 """ 994 993 from asap._asap import stmath … … 1008 1007 calmode: calibration mode 1009 1008 1010 verify: verify calibration 1009 verify: verify calibration 1011 1010 """ 1012 1011 from asap._asap import stmath … … 1020 1019 Split Measurement set by antenna name, save data as a scantables, 1021 1020 and return a list of filename. 1022 Notice this method can only be available from CASA. 1021 Notice this method can only be available from CASA. 1023 1022 Prameter 1024 filename: the name of Measurement set to be read. 1023 filename: the name of Measurement set to be read. 1025 1024 outprefix: the prefix of output scantable name. 1026 1025 the names of output scantable will be … … 1030 1029 The default False is to return with warning 1031 1030 without writing the output. USE WITH CARE. 1032 1031 1033 1032 """ 1034 1033 # Import the table toolkit from CASA … … 1071 1070 if not os.path.isdir(filename) \ 1072 1071 or not os.path.exists(filename+'/ANTENNA') \ 1073 or not os.path.exists(filename+'/table.f1'): 1072 or not os.path.exists(filename+'/table.f1'): 1074 1073 s = "File '%s' is not a Measurement set." % (filename) 1075 1074 if rcParams['verbose']: … … 1119 1118 value: float list operand 1120 1119 mode: operation mode (ADD, SUB, MUL, DIV) 1121 tsys: if True, operate tsys as well 1120 tsys: if True, operate tsys as well 1122 1121 """ 1123 1122 nrow = scan.nrow() … … 1134 1133 from asap._asap import stmath 1135 1134 stm = stmath() 1136 # insitu must be True 1135 # insitu must be True 1137 1136 stm._setinsitu( True ) 1138 1137 s = scan.copy() … … 1150 1149 del stm 1151 1150 return s 1152 1153 1154
Note: See TracChangeset
for help on using the changeset viewer.