Changeset 1673 for branches/alma/python
- Timestamp:
- 01/13/10 12:50:13 (15 years ago)
- Location:
- branches/alma/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asapmath.py
r1659 r1673 872 872 asaplog.push( 'Calibrating %s position-switched data.' % antname ) 873 873 print_log() 874 if ( antname.find( 'APEX' ) != -1 or antname.find( 'ALMA' ) != -1 ): 874 if ( antname.find( 'APEX' ) != -1 ): 875 scal = apexcal( scantab, scannos, calmode, verify ) 876 elif ( antname.find( 'ALMA' ) != -1 or antname.find( 'OSF' ) != -1 ): 875 877 scal = almacal( scantab, scannos, calmode, verify ) 876 878 else: … … 879 881 asaplog.push( 'Calibrating %s frequency-switched data.' % antname ) 880 882 print_log() 881 if ( antname.find( 'APEX' ) != -1 or antname.find( 'ALMA' ) != -1 ): 883 if ( antname.find( 'APEX' ) != -1 ): 884 scal = apexcal( scantab, scannos, calmode, verify ) 885 elif ( antname.find( 'ALMA' ) != -1 or antname.find( 'OSF' ) != -1 ): 882 886 scal = almacal( scantab, scannos, calmode, verify ) 883 887 else: … … 893 897 return scal 894 898 895 def a lmacal( scantab, scannos=[], calmode='none', verify=False ):896 """ 897 Calibrate APEX and ALMAdata899 def apexcal( scantab, scannos=[], calmode='none', verify=False ): 900 """ 901 Calibrate APEX data 898 902 899 903 Parameters: … … 909 913 ssub = scantab.get_scan( scannos ) 910 914 scal = scantable( stm.cwcal( ssub, calmode, antname ) ) 915 return scal 916 917 def almacal( scantab, scannos=[], calmode='none', verify=False ): 918 """ 919 Calibrate ALMA data 920 921 Parameters: 922 scantab: scantable 923 scannos: list of scan number 924 calmode: calibration mode 925 926 verify: verify calibration 927 """ 928 from asap._asap import stmath 929 stm = stmath() 930 ssub = scantab.get_scan( scannos ) 931 scal = scantable( stm.almacal( ssub, calmode ) ) 911 932 return scal 912 933 -
branches/alma/python/scantable.py
r1666 r1673 38 38 average = rcParams['scantable.autoaverage'] 39 39 if getpt is None: 40 getpt = False40 getpt = True 41 41 varlist = vars() 42 42 from asap._asap import stmath
Note:
See TracChangeset
for help on using the changeset viewer.