Changeset 762


Ignore:
Timestamp:
11/30/05 14:37:54 (18 years ago)
Author:
mar637
Message:

merge from Release12 branch

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r753 r762  
    105105        if self._panelling == 't':
    106106            maxrows = 25
    107             if self._data[0].nrow() > maxrows:
     107            if self._data[0].nrow() > maxrows and not (self._rows and self._cols):
    108108                if self._cursor["t"] is None or \
    109109                       (isinstance(self._cursor["t"],list) and \
     
    149149            self._plotter.set_panels()
    150150        rows = self._cursor["t"]
     151        rows = rows[:n]
    151152        self._plotter.palette(0)
    152153        for rowsel in rows:
     
    721722                    if rcParams['verbose']:
    722723                        print msg
    723                         return       
     724                        return
    724725                    else:
    725726                        raise IndexError(msg)
     
    735736                    if rcParams['verbose']:
    736737                        print msg
    737                         return       
     738                        return
    738739                    else:
    739740                        raise IndexError(msg)
     
    750751                    if rcParams['verbose']:
    751752                        print msg
    752                         return       
     753                        return
    753754                    else:
    754755                        raise IndexError(msg)
     
    787788                        if rcParams['verbose']:
    788789                            print msg
    789                             return       
     790                            return
    790791                        else:
    791                             raise TypeError(msg)                       
     792                            raise TypeError(msg)
    792793                elif 0 > i >= n:
    793794                    print "Pol index '%d' out of range" %i
    794795                    if rcParams['verbose']:
    795796                        print msg
    796                         return       
    797                     else:
    798                         raise IndexError(msg)                   
     797                        return
     798                    else:
     799                        raise IndexError(msg)
    799800                else:
    800801                    pols.append(i)
     
    818819            if rcParams['verbose']:
    819820                print msg
    820                 return       
     821                return
    821822            else:
    822                 raise RuntimeError(msg)                       
     823                raise RuntimeError(msg)
    823824        if isinstance(mask, array):
    824825            self._usermask = mask
  • trunk/python/scantable.py

    r742 r762  
    6969                r._open(filename,ifSel,beamSel)
    7070                asaplog.push('Importing data...')
     71                print_log()
    7172                r._read([-1])
    7273                tbl = r._getdata()
     
    7677                    from asap._asap import average as _av
    7778                    asaplog.push('Auto averaging integrations...')
     79                    print_log()
    7880                    tbl2 = _av((tbl,),(),True,'none')
    7981                    sdtable.__init__(self,tbl2)
  • trunk/web/commands.html

    r680 r762  
    4141<h1><a href="index.html">ASAP</a> 'commands'</h1>
    4242<pre class="commands">
    43 ASAP> commands()
     43ASAP> commands
     44----> commands()
    4445
    4546    [The scan container]
     
    4849            copy            - returns a copy of a scan
    4950            get_scan        - gets a specific scan out of a scantable
     51                              (by name or number)
    5052            summary         - print info about the scantable contents
    5153            set_cursor      - set a specific Beam/IF/Pol 'cursor' for
     
    5860            get_tsys        - get the TSys
    5961            get_time        - get the timestamps of the integrations
     62            get_sourcename  - get the source names of the scans
    6063            get_unit        - get the currnt unit
    6164            set_unit        - set the abcissa unit to be used from this
     
    7982                              or 'SDFITS'
    8083            nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans
     84            nscan           - the number of scans in the scantable
     85            nrow            - te number of integrations in the scantable
    8186            history         - print the history of the scantable
    8287            get_fit         - get a fit which has been stored witnh the data
     
    8994            auto_quotient   - return the on/off quotient with
    9095                              automatic detection of the on/off scans
     96                              (matched pairs and 1 off - n on)
    9197            quotient        - return the on/off quotient
    9298            scale           - return a scan scaled by a given factor
     
    105111            rotate_linpolphase - rotate the phase of the complex
    106112                                 polarization O=Q+iU correlation
     113            freq_switch     - perform frequency switching on the data
     114            stats           - Determine the specified statistic, e.g. 'min'
     115                              'max', 'rms' etc.
     116            stddev          - Determine the standard deviation of the current
     117                              beam/if/pol
     118
    107119     [Math] Mainly functions which operate on more than one scantable
    108120
     
    139151                              and what 'panelled'
    140152            set_cursor      - only plot a selected part of the data
    141             set_range       - set a 'zoom' window
     153            set_range       - set a 'zoom' window [xmin,xmax,ymin,ymax]
    142154            set_legend      - specify user labels for the legend indeces
    143155            set_title       - specify user labels for the panel indeces
     156            set_abcissa     - specify a user label for the abcissa
    144157            set_ordinate    - specify a user label for the ordinate
    145             set_abcissa     - specify a user label for the abcissa
    146158            set_layout      - specify the multi-panel layout (rows,cols)
     159            set_colors      - specify a set of colours to use
     160            set_linestyles  - specify a set of linestyles to use if only
     161                              using one color
     162            set_mask        - set a plotting mask for a specific polarization
    147163
    148164    [Reading files]
     
    177193            ASAP> help average_time
    178194
     195
    179196</pre>
    180197<!-- End Content -->
  • trunk/web/index.html

    r680 r762  
    4444line observations</em>. At this stage it is tuned towards data from
    4545ATNF instruments and reads/writes <em>rpfits, sdfits and ms</em> data.
    46 A release 1.1 of ASAP is available on linux systems at ATNF
     46A release 1.2 of ASAP is available on linux systems at ATNF
    4747<a href="intro.html">more...<a>
    4848
     
    5454<pre style="color: blue">
    5555Loading ASAP...
    56 Initialising plotter...
    57 Welcome to ASAP v1.1 (2005/06/22) - the ATNF Spectral Analysis Package
     56Welcome to ASAP v1.2 (2005/11/24) - the ATNF Spectral Analysis Package
    5857
    5958Please report any bugs to:
    6059asap@atnf.csiro.au
    6160
    62 [NOTE: ASAP is 0-based]
     61[IMPORTANT: ASAP is 0-based]
    6362Type commands() to get a list of all available ASAP commands.
    6463
     
    8382<ul>
    8483  <li> The current release source code snapshot <a
    85       href="ftp://ftp.atnf.csiro.au/pub/software/asap/asap_src.tar.gz">asap source</a> </li>
     84      href="ftp://ftp.atnf.csiro.au/pub/software/asap/asap_src.tar.bz2">asap source</a> </li>
    8685  <li> A binary tar archive <a
    8786      href=ftp://ftp.atnf.csiro.au/pub/software/asap/asap_linux.tar.bz2>linux binary</a>.
Note: See TracChangeset for help on using the changeset viewer.