Changes from branches/alma/doc/userguide.tex at r1757 to trunk/doc/userguide.tex at r1347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/userguide.tex
r1757 r1347 13 13 \setlength{\parskip}{1ex} 14 14 15 \title{ATNF Spectral Analysis Package\\User Guide v2. 3}15 \title{ATNF Spectral Analysis Package\\User Guide v2.1\\DRAFT } 16 16 \author{Chris Phillips} 17 17 … … 48 48 package. 49 49 50 This userguide has been updated for the ASAP 2. 3. Please report any50 This userguide has been updated for the ASAP 2.1. Please report any 51 51 mistakes you find. 52 52 … … 58 58 \item Epping - use hosts {\tt draco} or {\tt hydra} 59 59 \item Narrabri - use host {\tt kaputar} 60 \item Parkes - use host {\tt ?}61 \item Mopra - use host {\tt minos} or {\tt kaputar} if at Narrabri60 \item Parkes - use host {\tt bourbon} 61 \item Mopra - use host {\tt minos} 62 62 \end{itemize} 63 63 64 64 Or use your own Linux desktop. 65 65 66 {\em Note. ASAP2. 2only runs on ATNF Linux machines which have been66 {\em Note. ASAP2.1 only runs on ATNF Linux machines which have been 67 67 updated to Debian Sarge and are using the ``DEBIANSarge'' 68 68 /usr/local. If your favourite machine has not been upgraded, send a 69 request to your friendly IT support.} 69 request to your friendly IT support. At the time of writing asap 2.1 70 does not run on hydra, bourbon or kaputar.} 70 71 71 72 \index{Running}To start asap log onto one of these Linux hosts and enter … … 165 166 is un-ambiguous, or a list of possibilities will be 166 167 given. Auto-completion works for the user object names as well as 167 function names and even file names It does not work for for function168 function names. It does not work for filenames, nor for function 168 169 arguments. 169 170 … … 209 210 ASAP>ls 210 211 ASAP>cd /my/data/directory 211 ASAP>! firefox&212 ASAP>! mozilla& 212 213 \end{verbatim} 213 214 … … 351 352 352 353 # Equivalent to brief summary function call 353 ASAP>print scan s354 ASAP>print scan 354 355 \end{verbatim} 355 356 … … 421 422 ASAP>selection.reset() # Turn off selection 422 423 ASAP>scans.set_selection(selection) # Apply the reset selection 423 ASAP>scans.set_selection() # alternative to reset selection424 424 425 425 \end{verbatim} … … 460 460 \begin{verbatim} 461 461 ASAP>scans = scantable('2004-11-23_1841-P484.rpf') # Read in the data 462 ASAP>scans.set_freqframe('LSRK') 462 ASAP>scans.set_freqframe('LSRK') # Use the LSR velocity frame 463 463 ASAP>scans.set_unit('km/s') # Use velocity for plots etc from now on 464 464 ASAP>scans.set_doppler('OPTICAL') # Use the optical velocity convention … … 528 528 529 529 # Select channel range for baselining 530 ASAP>scans.set_unit('channel ')530 ASAP>scans.set_unit('channels') 531 531 ASAP>msk = scans.create_mask([100,400],[600,800]) 532 532 … … 542 542 Example : 543 543 \begin{verbatim} 544 ASAP>scans.set_unit('channel ')544 ASAP>scans.set_unit('channels') 545 545 ASAP>msk = scans.create_mask([0,100],[900-1023], invert=True) 546 546 \end{verbatim} … … 562 562 563 563 \begin{verbatim} 564 ASAP>scans.set_unit('channel ')564 ASAP>scans.set_unit('channels') 565 565 ASAP>msk1 = q.create_mask([0,100],[511,511],[900,1023],invert=True) 566 566 ASAP>scans.set_unit('km/s') … … 614 614 615 615 616 %\subsection{Reader object}617 618 %\index{Reader object}\index{Scantable!reader object}For more control619 %when reading data into ASAP, the reader object should be used. This620 %has the option of only reading in a range of integrations, only a621 %specified beam or IF and does not perform any scan averaging of the622 %data, allowing analysis of the individual integrations. Note that due623 %to limitation of the RPFITS library, only one reader object can be624 %open at one time reading RPFITS files. To read multiple RPFITS files,625 %the old reader must be destroyed before the new file is opened.626 %However, multiple readers can be created and attached to SDFITS files.627 % 628 % 629 %Example usage:630 % 631 %\begin{verbatim}632 %ASAP>r = reader('2003-03-16_082048_t0002.rpf')633 %ASAP>r.summary()634 %ASAP>scan = r.read()635 %ASAP>del r636 %\end{verbatim}616 \subsection{Reader object} 617 618 \index{Reader object}\index{Scantable!reader object}For more control 619 when reading data into ASAP, the reader object should be used. This 620 has the option of only reading in a range of integrations, only a 621 specified beam or IF and does not perform any scan averaging of the 622 data, allowing analysis of the individual integrations. Note that due 623 to limitation of the RPFITS library, only one reader object can be 624 open at one time reading RPFITS files. To read multiple RPFITS files, 625 the old reader must be destroyed before the new file is opened. 626 However, multiple readers can be created and attached to SDFITS files. 627 628 629 Example usage: 630 631 \begin{verbatim} 632 ASAP>r = reader('2003-03-16_082048_t0002.rpf') 633 ASAP>r.summary() 634 ASAP>scan = r.read() 635 ASAP>del r 636 \end{verbatim} 637 637 638 638 \section{Basic Processing} … … 649 649 have a trailing ``\_R'' in the source name for data from Parkes and 650 650 Mopra, and a trailing ``e'' or ``w'' for data from Tidbinbilla. 651 This functions has two \cmd{mode}s. \cmd{paired} (the de fault), which assumes651 This functions has two \cmd{mode}s. \cmd{paired} (the deafault), which assumes 652 652 matching adjacent pairs of source/reference scans and \cmd{time}, which finds 653 653 the closest reference scan in time. … … 835 835 telescope is wrong due to an incorrect noise diode calibration. This 836 836 can easily be corrected for with the scale function. By default, 837 \cmd{scale} only sca less the spectra and not the corresponding Tsys.837 \cmd{scale} only scans the spectra and not the corresponding Tsys. 838 838 839 839 \begin{verbatim} … … 871 871 \begin{verbatim} 872 872 ASAP>scans.recalc_azel() # recalculate az/el 873 # based on pointing873 # based on pointing 874 874 \end{verbatim} 875 875 … … 962 962 \end{verbatim} 963 963 964 One can also apply the inverse of \cmd{get\_scan} \cmd{drop\_scan}965 966 964 To copy a scantable the following does not work: 967 965 … … 996 994 it. 997 995 998 \item[FITS] This uses simple ``image'' fits to save the data, each row 999 being written to a separate fits file. 1000 1001 \item[CLASS] This uses simple ``image'' fits to save the data, each row 1002 being written to a separate fits file. This format has modification so it 1003 is suitable for importing the data into CLASS. 996 %\item[FITS] This uses simple ``image'' fits to save the data, each row 997 % being written to a separate fits file. This format is suitable for 998 % importing the data into CLASS. 1004 999 1005 1000 \item[ASCII] A simple text based format suitable for the user to … … 1407 1402 \end{verbatim} 1408 1403 1409 For data with many IFs, such as from MOPS, it is recommended1410 that users creates their own line catalog tablefor the data and use this1404 For data with many IFs, such as from MOPS, the user it is recommended 1405 that the user creates their own line cstalog for the data and use this 1411 1406 to set the rest frequency for each IF. 1412 1407 … … 1663 1658 size of the dataset which can be loaded. ASAP can use ``disk based'' 1664 1659 scan tables which cache the bulk of the scantable on disk and require 1665 significantly less memory usage. This should be used for all MOPS data!1660 significantly less memory usage. 1666 1661 1667 1662 To use disk based tables you either need to change the default in your … … 1684 1679 {\bf NOTE: } Currently a bug in ipython means temporary files are not 1685 1680 cleaned up properly when you exit ASAP. If you use disk based scan 1686 tables your directory will be left with 't mpXXXXX\_X' directories. These can1681 tables your directory will be left with 'tabXXXXX\_X' directories. These can 1687 1682 be safely removed if ASAP is not running. 1688 1683 … … 1697 1692 {\em Currently mathematics between two scantables is not available } 1698 1693 1694 % ASAP>sum = scan1+scan2 1699 1695 \begin{verbatim} 1700 1696 ASAP>scan2 = scan1+2.0 1701 1697 ASAP>scan *= 1.05 1702 ASAP>sum = scan1+scan21703 1698 \end{verbatim} 1704 1699 … … 1718 1713 1719 1714 \hspace{1cm} http://www.python.org/doc/Introduction.html 1720 1721 \hspace{1cm} http:/ipython.scipy.org1722 1715 1723 1716 \subsection{Running scripts}
Note:
See TracChangeset
for help on using the changeset viewer.