Changeset 1040
- Timestamp:
- 04/27/06 14:08:06 (19 years ago)
- Location:
- trunk/web
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/commands.html
r794 r1040 41 41 <h1><a href="index.html">ASAP</a> 'commands'</h1> 42 42 <pre class="commands"> 43 ASAP> commands 44 ----> commands() 43 ASAP> commands() 45 44 46 45 [The scan container] … … 50 49 get_scan - gets a specific scan out of a scantable 51 50 (by name or number) 51 set_selection - set a new subselection of the data 52 get_selection - get the current selection object 52 53 summary - print info about the scantable contents 53 set_cursor - set a specific Beam/IF/Pol 'cursor' for54 further use55 get_cursor - print out the current cursor position56 54 stats - get specified statistic of the spectra in 57 55 the scantable … … 64 62 get_elevation - get the elevation of the scans 65 63 get_parangle - get the parallactic angle of the scans 66 get_unit - get the curr nt unit64 get_unit - get the current unit 67 65 set_unit - set the abcissa unit to be used from this 68 66 point on … … 72 70 (e.g. 'LSRK') 73 71 set_doppler - set the doppler to be used from this point on 72 set_dirframe - set the frame for the direction on the sky 74 73 set_instrument - set the instrument name 75 74 get_fluxunit - get the brightness flux unit … … 80 79 get_restfreqs - get the current list of rest frequencies 81 80 set_restfreqs - set a list of rest frequencies 82 lines - print list of known spectral lines 83 flag_spectrum - flag a whole Beam/IF/Pol 81 flag - flag selected channels in the data 84 82 save - save the scantable to disk as either 'ASAP' 85 83 or 'SDFITS' 86 84 nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans 87 85 nscan - the number of scans in the scantable 88 nrow - te number of integrationsin the scantable86 nrow - te number of spectra in the scantable 89 87 history - print the history of the scantable 90 88 get_fit - get a fit which has been stored witnh the data … … 95 93 all polarisations will contain the 96 94 averaged spectrum. 95 convert_pol - convert to a different polarisation type 97 96 auto_quotient - return the on/off quotient with 98 97 automatic detection of the on/off scans 99 98 (matched pairs and 1 off - n on) 100 quotient - return the on/off quotient 101 scale - return a scan scaled by a given factor 102 add - return a scan with given value added 99 scale, *, / - return a scan scaled by a given factor 100 add, +, - - return a scan with given value added 103 101 bin - return a scan with binned channels 104 102 resample - return a scan with resampled channels … … 113 111 units 114 112 freq_align - align spectra in frequency frame 113 invert_phase - Invert the phase of the cross-correlation 114 swap_linears - Swap XX and YY 115 115 rotate_xyphase - rotate XY phase of cross correlation 116 116 rotate_linpolphase - rotate the phase of the complex … … 121 121 stddev - Determine the standard deviation of the current 122 122 beam/if/pol 123 [Selection] 124 selector - a selection object to set a subset of a scantable 125 set_scans - set (a list of) scans by index 126 set_cycles - set (a list of) cycles by index 127 set_beams - set (a list of) beamss by index 128 set_ifs - set (a list of) ifs by index 129 set_polarisations - set (a list of) polarisations by name 130 or by index 131 set_names - set a selection by name (wildcards allowed) 132 set_tsys - set a selection by tsys thresholds 133 reset - unset all selections 134 + - merge to selections 123 135 124 136 [Math] Mainly functions which operate on more than one scantable … … 136 148 commited. 137 149 fit - execute the actual fitting process 138 store_fit - store the fit param aters in the data (scantable)150 store_fit - store the fit parameters in the data (scantable) 139 151 get_chi2 - get the Chi^2 140 152 set_scan - set the scantable to be fit … … 150 162 asapplotter - a plotter for asap, default plotter is 151 163 called 'plotter' 152 plot - plot a (list of)scantable164 plot - plot a scantable 153 165 save - save the plot to a file ('png' ,'ps' or 'eps') 154 166 set_mode - set the state of the plotter, i.e. 155 167 what is to be plotted 'colour stacked' 156 168 and what 'panelled' 157 set_ cursor- only plot a selected part of the data169 set_selection - only plot a selected part of the data 158 170 set_range - set a 'zoom' window [xmin,xmax,ymin,ymax] 159 171 set_legend - specify user labels for the legend indeces … … 165 177 set_linestyles - specify a set of linestyles to use if only 166 178 using one color 179 set_histrogra, - plot in historam style 167 180 set_mask - set a plotting mask for a specific polarization 168 181 169 182 [Reading files] 170 183 reader - access rpfits/sdfits files 184 open - attach reader to a file 185 close - detach reader from file 171 186 read - read in integrations 172 187 summary - list info about all integrations … … 176 191 print - print details about a variable 177 192 list_scans - list all scantables created bt the user 193 list_files - list all files readable by asap (default rpf) 178 194 del - delete the given variable from memory 179 195 range - create a list of values, e.g. … … 198 214 ASAP> help average_time 199 215 200 201 216 </pre> 202 217 <!-- End Content --> -
trunk/web/index.html
r796 r1040 47 47 48 48 <h2>Current Release</h2> 49 ASAP latest stable version 1.2.1 was released on December, 6<sup>th</sup> 2005. It can be obtained in the <a href="#download">Download</a> section.49 ASAP latest stable version 2.0 was released on April, 27<sup>th</sup> 2006. It can be obtained in the <a href="#download">Download</a> section. 50 50 51 51 <h2>Screenshots</h2> … … 56 56 <pre style="color: blue"> 57 57 Loading ASAP... 58 Welcome to ASAP v 1.2.1 (2005/12/06) - the ATNF Spectral Analysis Package58 Welcome to ASAP v2.0 (2006/04/27) - the ATNF Spectral Analysis Package 59 59 60 Please report any bugs to:61 asap@atnf.csiro.au 60 Please report any bugs via: 61 http://sourcecode.atnf.csiro.au/cgi-bin/trac_asap.cgi/newticket 62 62 63 63 [IMPORTANT: ASAP is 0-based] -
trunk/web/intro.html
r664 r1040 44 44 It has been developed in the last nine months and has been released to 45 45 ATNF users. 46 ASAP v2.0 underwent a major re-design to support varying numbers of channels per IF (or Beam). It also allows much more flexible data selection via the <b>seletcor</b> object. 46 47 Currently, the package has only been tested on linux (debian) system, 47 48 other linux and OSX binaries are going to be avaliable soon. -
trunk/web/tutorials/tutorial.html
r680 r1040 67 67 plotter.plot(s) # plot s 68 68 </pre></div> 69 Now we can build the quotient. This applies the quotient to both IFs. We are taking all scans ending in "_S" to be "on" source and all "_R" to be "off".69 Now we can build the quotient. This applies the quotient to both IFs. 70 70 <div class=code><pre> 71 q = quotient(s.get_scan("*_S"),s.get_scan("*_R"))71 q = auto_quotient() 72 72 plotter.plot(q) # plot q 73 73 </pre></div> … … 77 77 q.set_restfreqs(restfreqs,"GHz") # set the restfrequencies, as not in data 78 78 q.set_unit("km/s") # set the unit to be used from now on 79 q.set_freqframe("LSRK") # set frequency frame 80 plotter.plot() # replot, should show velocity now 79 q.set_freqframe("LSRK") # set frequency frame 80 plotter.plot() # replot, should show velocity now 81 81 </pre></div> 82 Now we can subtract a baseline. ASAP can do this automatically if ther is good S/N and the lines aren't too broad. 82 Now we can subtract a baseline. ASAP can do this automatically if ther is good S/N and the lines aren't too broad. 83 83 <div class=code><pre> 84 84 q.auto_poly_baseline() # determine and subtract a poly baseline automatically … … 115 115 <div class=code><pre> 116 116 f = fitter() 117 </pre></div> 118 We start with the first spectrum (IF=0) bys setting the selection. We want to fit two gaussian components. 119 <div class=code><pre> 120 sel = selector() 121 sel.set_ifs(0) 122 q.set_selection(sel) 117 123 f.set_scan(q) 118 </pre></div>119 We start with the first spectrum (IF=0) bys setting the cursor. We want to fits to gaussian components.120 <div class=code><pre>121 q.set_cursor(IF=0)122 124 f.set_function(gauss=2) # fit two gaussians 123 125 f.fit() … … 126 128 The second IFs spectrum is more complex. We select it and fit seven gaussians to it. Here we also plot residuals, the individual components and the fit parameters. 127 129 <div class=code><pre> 128 q.set_cursor(IF=1) 130 sel.set_ifs(1) 131 q.set_selection(sel) 129 132 f.set_function(gauss=7) 130 133 f.fit() -
trunk/web/tutorials/tutorial2.html
r680 r1040 88 88 quotients = [] # to hold the quotient scantables 89 89 for scan in vec: # loop over input scantables 90 on = scan.get_source("*_S") 91 off = scan.get_source("*_R") 92 quotients.append(quotient(on,off)) # add this quotient to the vector 90 quotients.append(scan.auto_quotient()) # add this quotient to the vector 93 91 </pre></div> 94 92 Let's have a look at the vector, and subtract a baseline … … 96 94 for q in quotients: 97 95 print q 98 q.auto_poly_baseline(order=1,insitu=True) 96 q.auto_poly_baseline(order=1,insitu=True) 99 97 </pre></div> 100 98 Now we average the lot together:
Note:
See TracChangeset
for help on using the changeset viewer.