Changeset 1011
- Timestamp:
- 04/11/06 13:20:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/userguide.tex
r971 r1011 13 13 \setlength{\parskip}{1ex} 14 14 15 \title{ATNF Spectral Analysis Package\\User Guide }15 \title{ATNF Spectral Analysis Package\\User Guide v2.0beta } 16 16 \author{Chris Phillips} 17 17 … … 39 39 package. 40 40 41 This use eguide is currently being updated for the ASAP 2.0 release41 This userguide is currently being updated for the ASAP 2.0 release 42 42 which has a number of significant changes which affect the user 43 43 interface. Please report any mistakes you find in this userguide. … … 267 267 to operate upon it. 268 268 269 {\bf [MALTE: Could you please reword this??]}270 271 269 The building block of a scantable is an integration, which is a single 272 270 row of a scantable. Each row contains just one spectrum for each beam, IF and … … 275 273 filterbank will eventually produce one beam, many IFs, and 2-4 276 274 polarisations. All of the combinations of Beams/IFs an Polarisations are 277 contained in seperate rows. These rows are grouped in cycles - same time stamp.278 279 A collection of cycles for one source is termed280 a scan (and each scan has a unique numeric identifier, the S canNo). A275 contained in seperate rows. These rows are grouped in cycles (same time stamp). 276 277 A collection of cycles for one source is termed 278 a scan (and each scan has a unique numeric identifier, the SCANNO). A 281 279 scantable is then a collection of one or more scans. If you have 282 280 scan-averaged your data in time, i.e. you have averegaed all cycles within … … 287 285 method is used depends on the users preference. The default can be 288 286 changed via the {\tt .asaprc} resource file. 287 288 For example a Mopra scan with a 4s intergration time, two IFs and 289 dual polarisations has two (2s) cycles. 290 291 \begin{verbatim} 292 SCANNO CYCLENO BEAMNO IFNO POLNO 293 0 0 0 0 0 294 0 0 0 0 1 295 0 0 0 1 0 296 0 0 0 1 1 297 0 1 0 0 0 298 0 1 0 0 1 299 0 1 0 1 0 300 0 1 0 1 1 301 302 \end{verbatim} 303 289 304 290 305 \subsubsection {Contents} … … 297 312 298 313 The data are stored in columns (the length of a column is the number of 299 rows/integrations of course). 300 301 {\bf [MALTE: Is this outdated??]} 314 rows/spectra of course). 315 302 316 303 317 Two important columns are those that describe the frequency setup. We mention … … 305 319 of the frequency information and possibly how to manipulate it. 306 320 307 These columns are called F reqID and MoleculeID. They contain indices, for321 These columns are called FREQ\_ID and MOLECULE\_ID. They contain indices, for 308 322 each IF, pointing into tables with all of the frequency and rest-frequency 309 323 information for that integration. More on these below when we discuss … … 948 962 formats are: 949 963 950 {\em Currently only raw ASAP output is available. Other formats will be added soon}951 952 964 \begin{itemize} 953 965 \item[ASAP] This is the internal format used for ASAP. It is the only … … 1272 1284 \end{verbatim} 1273 1285 1286 \subsection{Conversion} 1287 \label{sec:polconv} 1288 Data can be converted between linear and circular polarisations and stokes. 1289 1290 \begin{verbatim} 1291 ASAP> stokescans = linearscans.convert_pol("stokes") 1292 \end{verbatim} 1293 1294 1274 1295 \subsection{Plotting} 1275 1296 \label{sec:polplot} … … 1282 1303 Plinear, Pangle, V], [RR, LL] or [XX, YY, Real(XY), 1283 1304 Imaginary(XY)]. (Plinear and Pangle are the percentage and position 1284 angle of linear polarisation). Conversion to circular polarisations 1285 are currently not available. 1305 angle of linear polarisation). 1286 1306 1287 1307 Example: … … 1304 1324 ASAP> selection.set_polarisations(``I Plinear'') 1305 1325 ASAP plotter.set_selection(selection); # Fractional linear 1306 1307 [[MALTE: This does not work]]1308 1326 1309 1327 ASAP> selection.set_polarisations(``Pangle'') … … 1387 1405 1388 1406 \begin{verbatim} 1389 # Concatenate the individual rpfits files together before loading1390 !cat 2005-06*.rpf > data.rpf 1407 # get a list of the individual rpfits files in the current directory 1408 myfiles = list_files() 1391 1409 1392 1410 # Load the data into a scantable 1393 data = scantable( 'data.rpf')1411 data = scantable(myfiles) 1394 1412 print data 1395 1413 … … 1401 1419 plotter.plot(q) 1402 1420 1403 # Set reference frame1421 # Set unit and reference frame 1404 1422 q.set_unit('km/s') 1405 1423 q.set_freqframe('LSRK') … … 1485 1503 1486 1504 # Check what we have just loaded 1487 d1665.summary 1505 d1665.summary() 1488 1506 1489 1507 # View the data in velocity … … 1595 1613 a2 = g2.average_time() 1596 1614 1597 # Rpfits file only cont rains a single rest frequency. Set both1615 # Rpfits file only contains a single rest frequency. Set both 1598 1616 a1.set_restfreqs([23694.4700e6,23722.6336e6]) 1599 1617 1600 1618 plotter.plot(a1) 1601 plotter.set_mode('i',' s')1619 plotter.set_mode('i','t') 1602 1620 1603 1621 a1.auto_poly_baseline() … … 1619 1637 \index{Functions!summary}% 1620 1638 \begin{verbatim} 1639 ASAP> commands() 1621 1640 [The scan container] 1622 1641 scantable - a container for integrations/scans … … 1624 1643 copy - returns a copy of a scan 1625 1644 get_scan - gets a specific scan out of a scantable 1645 (by name or number) 1646 set_selection - set a new subselection of the data 1647 get_selection - get the current selection object 1626 1648 summary - print info about the scantable contents 1627 set_cursor - set a specific Beam/IF/Pol 'cursor' for1628 further use1629 get_cursor - print out the current cursor position1630 1649 stats - get specified statistic of the spectra in 1631 1650 the scantable … … 1634 1653 get_tsys - get the TSys 1635 1654 get_time - get the timestamps of the integrations 1655 get_sourcename - get the source names of the scans 1636 1656 get_azimuth - get the azimuth of the scans 1637 1657 get_elevation - get the elevation of the scans 1638 1658 get_parangle - get the parallactic angle of the scans 1639 get_unit - get the curr nt unit1659 get_unit - get the current unit 1640 1660 set_unit - set the abcissa unit to be used from this 1641 1661 point on … … 1645 1665 (e.g. 'LSRK') 1646 1666 set_doppler - set the doppler to be used from this point on 1667 set_dirframe - set the frame for the direction on the sky 1647 1668 set_instrument - set the instrument name 1648 1669 get_fluxunit - get the brightness flux unit … … 1653 1674 get_restfreqs - get the current list of rest frequencies 1654 1675 set_restfreqs - set a list of rest frequencies 1655 lines - print list of known spectral lines 1656 flag_spectrum - flag a whole Beam/IF/Pol 1676 flag_spectrum - flag data 1657 1677 save - save the scantable to disk as either 'ASAP' 1658 1678 or 'SDFITS' 1659 1679 nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans 1680 nscan - the number of scans in the scantable 1681 nrow - te number of spectra in the scantable 1660 1682 history - print the history of the scantable 1661 1683 get_fit - get a fit which has been stored witnh the data … … 1666 1688 all polarisations will contain the 1667 1689 averaged spectrum. 1690 convert_pol - convert to a different polarisation type 1668 1691 auto_quotient - return the on/off quotient with 1669 1692 automatic detection of the on/off scans 1670 quotient - return the on/off quotient1693 (matched pairs and 1 off - n on) 1671 1694 scale - return a scan scaled by a given factor 1672 1695 add - return a scan with given value added … … 1686 1709 rotate_linpolphase - rotate the phase of the complex 1687 1710 polarization O=Q+iU correlation 1711 freq_switch - perform frequency switching on the data 1712 stats - Determine the specified statistic, e.g. 'min' 1713 'max', 'rms' etc. 1714 stddev - Determine the standard deviation of the current 1715 beam/if/pol 1716 1688 1717 [Math] Mainly functions which operate on more than one scantable 1689 1718 … … 1700 1729 commited. 1701 1730 fit - execute the actual fitting process 1702 store_fit - store the fit param aters in the data (scantable)1731 store_fit - store the fit parameters in the data (scantable) 1703 1732 get_chi2 - get the Chi^2 1704 1733 set_scan - set the scantable to be fit … … 1714 1743 asapplotter - a plotter for asap, default plotter is 1715 1744 called 'plotter' 1716 plot - plot a (list of)scantable1745 plot - plot a scantable 1717 1746 save - save the plot to a file ('png' ,'ps' or 'eps') 1718 1747 set_mode - set the state of the plotter, i.e. 1719 1748 what is to be plotted 'colour stacked' 1720 1749 and what 'panelled' 1721 set_ cursor- only plot a selected part of the data1722 set_range - set a 'zoom' window 1750 set_selection - only plot a selected part of the data 1751 set_range - set a 'zoom' window [xmin,xmax,ymin,ymax] 1723 1752 set_legend - specify user labels for the legend indeces 1724 1753 set_title - specify user labels for the panel indeces 1754 set_abcissa - specify a user label for the abcissa 1725 1755 set_ordinate - specify a user label for the ordinate 1726 set_abcissa - specify a user label for the abcissa1727 1756 set_layout - specify the multi-panel layout (rows,cols) 1757 set_colors - specify a set of colours to use 1758 set_linestyles - specify a set of linestyles to use if only 1759 using one color 1760 set_mask - set a plotting mask for a specific polarization 1728 1761 1729 1762 [Reading files] 1730 1763 reader - access rpfits/sdfits files 1764 open - attach reader to a file 1765 close - detach reader from file 1731 1766 read - read in integrations 1732 1767 summary - list info about all integrations … … 1736 1771 print - print details about a variable 1737 1772 list_scans - list all scantables created bt the user 1773 list_files - list all files readable by asap (default rpf) 1738 1774 del - delete the given variable from memory 1739 1775 range - create a list of values, e.g. … … 1742 1778 execfile - execute an asap script, e.g. execfile('myscript') 1743 1779 list_rcparameters - print out a list of possible values to be 1744 put into \$HOME/.asaprc1780 put into $HOME/.asaprc 1745 1781 mask_and,mask_or, 1746 1782 mask_not - boolean operations on masks created with … … 1758 1794 ASAP> help average_time 1759 1795 1796 1760 1797 \end{verbatim} 1761 1798
Note:
See TracChangeset
for help on using the changeset viewer.