Changeset 2754 for trunk/python
- Timestamp:
- 01/31/13 13:14:27 (12 years ago)
- Location:
- trunk/python
- Files:
-
- 2 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) -
trunk/python/scantable.py
r2753 r2754 209 209 Default (false) is taken from rc file. 210 210 211 getpt: Whether to import direction from MS/POINTING 212 table properly or not. 213 This is effective only when filename is MS. 214 The default (True) is to import direction 215 from MS/POINTING. 216 217 freq_tolsr: Whether to convert frequency frame information 218 to LSRK or not. 219 This is effective only when filename is MS. 220 The default (False) is to import frequency 221 as is. 222 211 223 """ 212 224 if average is None:
Note:
See TracChangeset
for help on using the changeset viewer.