Changeset 762
- Timestamp:
- 11/30/05 14:37:54 (19 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r753 r762 105 105 if self._panelling == 't': 106 106 maxrows = 25 107 if self._data[0].nrow() > maxrows :107 if self._data[0].nrow() > maxrows and not (self._rows and self._cols): 108 108 if self._cursor["t"] is None or \ 109 109 (isinstance(self._cursor["t"],list) and \ … … 149 149 self._plotter.set_panels() 150 150 rows = self._cursor["t"] 151 rows = rows[:n] 151 152 self._plotter.palette(0) 152 153 for rowsel in rows: … … 721 722 if rcParams['verbose']: 722 723 print msg 723 return 724 return 724 725 else: 725 726 raise IndexError(msg) … … 735 736 if rcParams['verbose']: 736 737 print msg 737 return 738 return 738 739 else: 739 740 raise IndexError(msg) … … 750 751 if rcParams['verbose']: 751 752 print msg 752 return 753 return 753 754 else: 754 755 raise IndexError(msg) … … 787 788 if rcParams['verbose']: 788 789 print msg 789 return 790 return 790 791 else: 791 raise TypeError(msg) 792 raise TypeError(msg) 792 793 elif 0 > i >= n: 793 794 print "Pol index '%d' out of range" %i 794 795 if rcParams['verbose']: 795 796 print msg 796 return 797 else: 798 raise IndexError(msg) 797 return 798 else: 799 raise IndexError(msg) 799 800 else: 800 801 pols.append(i) … … 818 819 if rcParams['verbose']: 819 820 print msg 820 return 821 return 821 822 else: 822 raise RuntimeError(msg) 823 raise RuntimeError(msg) 823 824 if isinstance(mask, array): 824 825 self._usermask = mask -
trunk/python/scantable.py
r742 r762 69 69 r._open(filename,ifSel,beamSel) 70 70 asaplog.push('Importing data...') 71 print_log() 71 72 r._read([-1]) 72 73 tbl = r._getdata() … … 76 77 from asap._asap import average as _av 77 78 asaplog.push('Auto averaging integrations...') 79 print_log() 78 80 tbl2 = _av((tbl,),(),True,'none') 79 81 sdtable.__init__(self,tbl2) -
trunk/web/commands.html
r680 r762 41 41 <h1><a href="index.html">ASAP</a> 'commands'</h1> 42 42 <pre class="commands"> 43 ASAP> commands() 43 ASAP> commands 44 ----> commands() 44 45 45 46 [The scan container] … … 48 49 copy - returns a copy of a scan 49 50 get_scan - gets a specific scan out of a scantable 51 (by name or number) 50 52 summary - print info about the scantable contents 51 53 set_cursor - set a specific Beam/IF/Pol 'cursor' for … … 58 60 get_tsys - get the TSys 59 61 get_time - get the timestamps of the integrations 62 get_sourcename - get the source names of the scans 60 63 get_unit - get the currnt unit 61 64 set_unit - set the abcissa unit to be used from this … … 79 82 or 'SDFITS' 80 83 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 81 86 history - print the history of the scantable 82 87 get_fit - get a fit which has been stored witnh the data … … 89 94 auto_quotient - return the on/off quotient with 90 95 automatic detection of the on/off scans 96 (matched pairs and 1 off - n on) 91 97 quotient - return the on/off quotient 92 98 scale - return a scan scaled by a given factor … … 105 111 rotate_linpolphase - rotate the phase of the complex 106 112 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 107 119 [Math] Mainly functions which operate on more than one scantable 108 120 … … 139 151 and what 'panelled' 140 152 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] 142 154 set_legend - specify user labels for the legend indeces 143 155 set_title - specify user labels for the panel indeces 156 set_abcissa - specify a user label for the abcissa 144 157 set_ordinate - specify a user label for the ordinate 145 set_abcissa - specify a user label for the abcissa146 158 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 147 163 148 164 [Reading files] … … 177 193 ASAP> help average_time 178 194 195 179 196 </pre> 180 197 <!-- End Content --> -
trunk/web/index.html
r680 r762 44 44 line observations</em>. At this stage it is tuned towards data from 45 45 ATNF instruments and reads/writes <em>rpfits, sdfits and ms</em> data. 46 A release 1. 1of ASAP is available on linux systems at ATNF46 A release 1.2 of ASAP is available on linux systems at ATNF 47 47 <a href="intro.html">more...<a> 48 48 … … 54 54 <pre style="color: blue"> 55 55 Loading ASAP... 56 Initialising plotter... 57 Welcome to ASAP v1.1 (2005/06/22) - the ATNF Spectral Analysis Package 56 Welcome to ASAP v1.2 (2005/11/24) - the ATNF Spectral Analysis Package 58 57 59 58 Please report any bugs to: 60 59 asap@atnf.csiro.au 61 60 62 [ NOTE: ASAP is 0-based]61 [IMPORTANT: ASAP is 0-based] 63 62 Type commands() to get a list of all available ASAP commands. 64 63 … … 83 82 <ul> 84 83 <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> 86 85 <li> A binary tar archive <a 87 86 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.