- Timestamp:
- 04/24/07 16:10:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/userguide.tex
r1280 r1344 648 648 reference for multiple sources. Auto quotient assumes reference scans 649 649 have a trailing ``\_R'' in the source name for data from Parkes and 650 Mopra, and a trailing ``e'' or ``w'' for data fro, Tidbinbilla. 650 Mopra, and a trailing ``e'' or ``w'' for data from Tidbinbilla. 651 This functions has two \cmd{mode}s. \cmd{paired} (the deafault), which assumes matching 652 adjacent pairs of source/reference scans and \cmd{time}, which finds the closest 653 reference scan in time. 651 654 652 655 \begin{verbatim} … … 675 678 \begin{verbatim} 676 679 ASAP>r = scans.get_scan('*_R') 677 ASAP>s = scans.get_scan('* _S')680 ASAP>s = scans.get_scan('*^_R') 678 681 \end{verbatim} 679 682 … … 683 686 ASAP>s = scans.get_scan('*_[^ew]') 684 687 \end{verbatim} 685 686 \subsection{Make the quotient spectra}687 688 Use the quotient function689 690 \begin{verbatim}691 ASAP>q = s.quotient(r)692 \end{verbatim}693 694 This uses the rows in scantable \cmd{r} as reference spectra for the695 rows in scantable \cmd{s}. Scantable \cmd{r} must have either 1 row696 (which is applied to all rows in \cmd{s}) or both scantables must have697 the same number of rows.698 688 699 689 \subsection{Time average separate scans} … … 880 870 881 871 \begin{verbatim} 882 ASAP>scans.recalc_azel() # recalculate az/el based on pointing 872 ASAP>scans.recalc_azel() # recalculate az/el 873 # based on pointing 883 874 \end{verbatim} 884 875 … … 965 956 966 957 ASAP>r = scans.get_scan('*_R') # Get all reference sources (Parkes/Mopra) 967 ASAP>s = scans.get_scan('* _S') # Get all program sources (Parkes/Mopra)958 ASAP>s = scans.get_scan('*^_R') # Get all program sources (Parkes/Mopra) 968 959 ASAP>r = scans.get_scan('*[ew]') # Get all reference sources (Tid) 969 960 ASAP>s = scans.get_scan('*[^ew]') # Get all program sources (Tid) … … 1043 1034 \begin{verbatim} 1044 1035 ASAP>scans.set_unit('km/s') 1045 ASAP>plotter.set_mode(stacking='p', panelling='t')1036 ASAP>plotter.set_mode(stacking='p', panelling='t') 1046 1037 ASAP>plotter.plot(scans) 1047 1038 \end{verbatim} … … 1054 1045 \begin{verbatim} 1055 1046 # Plot multiple IFs per panel 1056 ASAP>plotter.set_mode(stacking='i', panelling='t')1047 ASAP>plotter.set_mode(stacking='i', panelling='t') 1057 1048 1058 1049 # Plot multiple beams per panel 1059 ASAP>plotter.set_mode(stacking='b', panelling='t')1050 ASAP>plotter.set_mode(stacking='b', panelling='t') 1060 1051 1061 1052 # Plot one IF per panel, time stacked … … 1670 1661 1671 1662 To use disk based tables you either need to change the default in your 1672 \cmd{.asapr } file, e.g.1663 \cmd{.asaprc} file, e.g. 1673 1664 \begin{verbatim} 1674 1665 scantable.storage : disk … … 1719 1710 \hspace{1cm} http://www.atnf.csiro.au/computing/software/asap/tutorials 1720 1711 1712 \hspace{1cm} http://svn.atnf.csiro.au/trac/asap/wiki 1713 1721 1714 \hspace{1cm} http://www.python.org/doc/Introduction.html 1722 1715 … … 1727 1720 function definitions which will be used in subsequent processing or 1728 1721 just a set of commands to process a specific dataset. 1722 1723 As an alternative to run scripts without entering ASAP, create a script which 1724 starts with. 1725 1726 \begin{verbatim} 1727 from asap import * 1728 1729 <your code> 1730 \end{verbatim} 1731 1732 And run it with \cmd{python scriptname}. 1729 1733 1730 1734 \subsection{asapuserfuncs.py}
Note:
See TracChangeset
for help on using the changeset viewer.