- Timestamp:
- 01/21/05 22:22:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r240 r255 53 53 'verbose' : [True, validate_bool], 54 54 'useplotter' : [True, validate_bool], 55 'insitu' : [False, validate_bool], 55 56 56 57 # plotting … … 65 66 'scantable.plotter' : [True, validate_bool], # use internal plotter 66 67 67 # math68 'math.insitu' : [False, validate_bool],69 70 68 # fitter 71 'fitter.polyorder' : [0, validate_int],72 'fitter.ncomponents' : [1, validate_int]73 69 } 74 70 71 def list_rcparameters(): 72 73 print """ 74 # general 75 # print verbose output 76 'verbose' : True 77 78 # preload a default plotter 79 'useplotter' : True 80 81 # apply operations on the input scantable or return new one 82 'insitu' : False 83 84 # plotting 85 # default mode for colour stacking 86 'plotter.stacking' : 'Pol' 87 88 # default mode for panelling 89 'plotter.panelling' : 'scan' 90 91 # scantable 92 # default ouput format when saving 93 'scantable.save' : 'ASAP' 94 # auto averaging on read 95 'scantable.autoaverage' : True 96 97 # default frequency frame to set when function 98 # scantable.set_freqfrmae is called 99 'scantable.freqframe' : 'LSRK' 100 101 # apply action to all axes not just the cursor location 102 'scantable.allaxes' : True 103 104 # use internal plotter 105 'scantable.plotter' : True 106 107 # Fitter 108 """ 109 75 110 def rc_params(): 76 111 'Return the default params updated from the values in the rc file' … … 116 151 # strip the conveter funcs and return 117 152 ret = dict([ (key, tup[0]) for key, tup in defaultParams.items()]) 118 verbose.report('loaded rc file %s'%fname)153 print 'Using rc file %s'%fname 119 154 120 155 return ret … … 181 216 if rcParams['useplotter']: 182 217 print "Initialising plotter..." 183 from asapplotter import * 184 plotter = asapplotter() 185 #from numarray ones,zeros 218 import asapplotter 219 plotter = asapplotter.asapplotter() 186 220 187 221 __date__ = '$Date$' 188 __version__ = '0. 1a'222 __version__ = '0.2a' 189 223 190 224 def list_scans(t = scantable): … … 208 242 get_scan - gets a specific scan out of a scantable 209 243 summary - print info about the scantable contents 210 set_selection - set a specific Beam/IF/Pol for furthrt use 211 get_selection - print out the current selection 244 set_cursor - set a specific Beam/IF/Pol 'cursor' for 245 further use 246 get_cursor - print out the current cursor position 212 247 stats - get specified statistic of the spectra in 213 248 the scantable … … 216 251 get_tsys - get the TSys 217 252 get_time - get the timestamps of the integrations 218 set_unit - set the units to be used from this point on 253 get_unit - get the currnt unit 254 set_unit - set the unit to be used from this point on 255 get_abcissa - get the abcissa values and name for a given 256 row (time) 219 257 set_freqframe - set the frame info for the Spectral Axis 220 258 (e.g. 'LSRK') 221 259 set_instrument - set the instrument name 260 get_fluxunit - get the brightness flux unit 222 261 set_fluxunit - set the brightness flux unit 223 262 create_mask - return an mask in the current unit 224 263 for the given region. The specified regions 225 264 are NOT masked 226 set_restfreqs - give a list of rest frequencies 265 get_restfreqs - get the current list of rest frequencies 266 set_restfreqs - set a list of rest frequencies 227 267 flag_spectrum - flag a whole Beam/IF/Pol 228 268 save - save the scantable to disk as either 'ASAP' … … 237 277 averaged spectrum. 238 278 quotient - return the on/off quotient 239 b_operate - simple mathematical operations on two scan tables 279 simple_math - simple mathematical operations on two scantables, 280 'add', 'sub', 'mul', 'div' 240 281 scale - returns a scan scaled by a given factor 241 282 add - returns a scan with given value added … … 245 286 gain_el - apply gain-elevation correction 246 287 opacity - apply opacity correction 247 convert_flux - convert to and from Jy and Kelvin brightness units 288 convert_flux - convert to and from Jy and Kelvin brightness 289 units 248 290 249 291 fitter … … 267 309 and what 'panelled' 268 310 set_range - set the abcissa 'zoom' range 269 set_legend_map - specify user labels for the legend indeces 311 set_legend - specify user labels for the legend indeces 312 set_title - specify user labels for the panel indeces 313 set_ordinate - specify a user label for the ordinate 314 set_abcissa - specify a user label for the abcissa 270 315 271 316 [Reading files] … … 283 328 help - print help for one of the listed functions 284 329 execfile - execute an asap script, e.g. execfile('myscript') 330 list_rcparameters - print out a list of possible values to be 331 put into .asaprc 285 332 Note: 286 333 How to use this with help:
Note:
See TracChangeset
for help on using the changeset viewer.