Changeset 255


Ignore:
Timestamp:
01/21/05 22:22:46 (19 years ago)
Author:
mar637
Message:

*lots of renaming

  • added list_rcparameters

selection -> cursor

  • version number 0.1->0.2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r240 r255  
    5353    'verbose'             : [True, validate_bool],
    5454    'useplotter'          : [True, validate_bool],
     55    'insitu'              : [False, validate_bool],
    5556
    5657    # plotting
     
    6566    'scantable.plotter'   : [True, validate_bool], # use internal plotter
    6667
    67     # math
    68     'math.insitu'         : [False, validate_bool],
    69 
    7068    # fitter
    71     'fitter.polyorder'    : [0, validate_int],
    72     'fitter.ncomponents'  : [1, validate_int]
    7369    }
    7470
     71def 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   
    75110def rc_params():
    76111    'Return the default params updated from the values in the rc file'
     
    116151    # strip the conveter funcs and return
    117152    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
    119154
    120155    return ret
     
    181216if rcParams['useplotter']:
    182217    print "Initialising plotter..."
    183     from asapplotter import *
    184     plotter = asapplotter()
    185 #from numarray ones,zeros
     218    import asapplotter
     219    plotter = asapplotter.asapplotter()
    186220
    187221__date__ = '$Date$'
    188 __version__  = '0.1a'
     222__version__  = '0.2a'
    189223
    190224def list_scans(t = scantable):
     
    208242            get_scan        - gets a specific scan out of a scantable
    209243            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
    212247            stats           - get specified statistic of the spectra in
    213248                              the scantable
     
    216251            get_tsys        - get the TSys
    217252            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)
    219257            set_freqframe   - set the frame info for the Spectral Axis
    220258                              (e.g. 'LSRK')
    221259            set_instrument  - set the instrument name
     260            get_fluxunit    - get the brightness flux unit
    222261            set_fluxunit    - set the brightness flux unit
    223262            create_mask     - return an mask in the current unit
    224263                              for the given region. The specified regions
    225264                              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
    227267            flag_spectrum   - flag a whole Beam/IF/Pol
    228268            save            - save the scantable to disk as either 'ASAP'
     
    237277                              averaged spectrum.
    238278        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'
    240281        scale               - returns a scan scaled by a given factor
    241282        add                 - returns a scan with given value added
     
    245286        gain_el             - apply gain-elevation correction
    246287        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
    248290
    249291        fitter
     
    267309                              and what 'panelled'
    268310            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
    270315           
    271316    [Reading files]
     
    283328        help                - print help for one of the listed functions
    284329        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
    285332    Note:
    286333        How to use this with help:
Note: See TracChangeset for help on using the changeset viewer.