Changeset 113 for trunk/python/__init__.py
- Timestamp:
- 12/01/04 11:29:39 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r100 r113 5 5 #import _asap 6 6 #from asaplot import ASAPlot 7 #from asapfitter import AsapFitter 7 from asapfitter import * 8 8 from asapreader import reader 9 9 from asapmath import * … … 22 22 # t = meta_t 23 23 globs = sys.modules['__main__'].__dict__.iteritems() 24 return map(lambda x: x[0], filter(lambda x: isinstance(x[1], t), globs)) 24 print "The user created scantables are:" 25 x = map(lambda x: x[0], filter(lambda x: isinstance(x[1], t), globs)) 26 print x 25 27 26 def list_all(): 27 return ['reader','scantable','ASAPlot','AsapFitter'] 28 def commands(): 29 x = """ 30 [Reading files] 31 reader - access rpfits/sdfits files 32 read - read in integrations 33 summary - list info about all integrations 34 [The scan container] 35 scantable - a container for integrations/scans 36 copy - returns a copy of a scan 37 get_scan - gets a specific scan out of a scantable 38 summary - print info about the scantable contents 39 set_selection - set a specific Beam/IF/Pol for furthrt use 40 get_selection - print out the current selection 41 rms - get the rms of the spectra in the scantable 42 get_tsys - get the TSys 43 get_time - get the timestamps of the integrations 44 set_unit - set the units to be used from this point on 45 set_freqframe - set the frame info for the Spectral Axis 46 (e.g. 'LSRK') 47 create_mask - return a mask in thecurrent unit 48 set_restfreqs - give a list of rest frequencies 49 flag_spectrum - flag a whole Beam/IF/Pol 50 save - save the scantable to disk 51 nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans 52 [Math] 53 average_scans - return the rms-weighted (time) average of 54 a scan or a list of scans 55 average_pol - averge the polarisations together. 56 The dimension won't be reduced and 57 all polarisations will contain the 58 averaged spectrum. 59 quotient - return the on/off quotient 60 scale - returns a scan scaled by a given factor 61 bin - return a scan with binned channels 62 hanning - return the hanning smoothed scan 63 poly_baseline - fit a polynomial baseline to all Beams/IFs/Pols 28 64 29 print """ 30 Welcome to ASAP - the ATNF Single Dish Analysis Package 65 fitter 66 auto_fit - return a scan where the function is 67 applied to all Beams/IFs/Pols. 68 commit - return a new scan where the fits have been 69 commited. 70 fit - execute the actual fitting process 71 get_chi2 - get the Chi^2 72 set_scan - set the scantable to be fit 73 set_function - set the fitting function 74 set_parameters - set the parameters for the function(s), and 75 set if they should be held fixed during fitting 76 get_parameters - get the fitted parameters 77 78 [General] 79 commands - this command 80 print - print details about a variable 81 list_scans - list all scantables created bt the user 82 del - delete the given variable from memory 83 range - create a list of values, e.g. 84 range(3) = [0,1,2], range(2,5) = [2,3,4] 85 help - print help for one of the listed functions 86 execfile - execute an asap script, e.g. execfile('myscript') 87 """ 88 print x 89 return 90 91 print """Welcome to ASAP - the ATNF Single Dish Analysis Package 31 92 This is a testing pre-release v0.1a 32 93 33 94 Please report any bugs to: 34 95 Malte.Marquarding@atnf.csiro.au 35 96 36 NOTE: ASAP is 0-based 97 [NOTE: ASAP is 0-based] 98 Type commands() to get a list of all available ASAP commands. 37 99 """
Note: See TracChangeset
for help on using the changeset viewer.