Changeset 2754 for trunk/python/asapmath.py
- Timestamp:
- 01/31/13 13:14:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r2646 r2754 949 949 950 950 @asaplog_post_dec 951 def splitant(filename, outprefix='',overwrite=False ):951 def splitant(filename, outprefix='',overwrite=False, getpt=True, freq_tolsr=False): 952 952 """ 953 953 Split Measurement set by antenna name, save data as a scantables, … … 963 963 The default False is to return with warning 964 964 without writing the output. USE WITH CARE. 965 getpt Whether to import direction from MS/POINTING 966 table or not. Default is True (import direction). 967 freq_tolsr Whether to convert frequency frame information 968 to LSRK or not. Default is False (import as is). 965 969 966 970 """ … … 1008 1012 tb.open(tablename=filename,nomodify=True) 1009 1013 tbsel=tb.query('ANTENNA1 == %s && ANTENNA2 == %s'%(antid,antid),tmpname) 1010 scan=scantable(tmpname,average=False, getpt=True,antenna=int(antid))1014 scan=scantable(tmpname,average=False,antenna=int(antid),getpt=getpt,freq_tolsr=freq_tolsr,) 1011 1015 outname=prefix+antnames[antid]+'.asap' 1012 1016 scan.save(outname,format='ASAP',overwrite=overwrite)
Note: See TracChangeset
for help on using the changeset viewer.