Changeset 1344


Ignore:
Timestamp:
04/24/07 16:10:46 (17 years ago)
Author:
mar637
Message:

minor fixes to quotients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/userguide.tex

    r1280 r1344  
    648648reference for multiple sources. Auto quotient assumes reference scans
    649649have a trailing ``\_R'' in the source name for data from Parkes and
    650 Mopra, and a trailing ``e'' or ``w'' for data fro, Tidbinbilla.
     650Mopra, and a trailing ``e'' or ``w'' for data from Tidbinbilla.
     651This functions has two \cmd{mode}s. \cmd{paired} (the deafault), which assumes matching
     652adjacent pairs of source/reference scans and \cmd{time}, which finds the closest
     653reference scan in time.
    651654
    652655\begin{verbatim}
     
    675678\begin{verbatim}
    676679  ASAP>r = scans.get_scan('*_R')
    677   ASAP>s = scans.get_scan('*_S')
     680  ASAP>s = scans.get_scan('*^_R')
    678681\end{verbatim}
    679682
     
    683686  ASAP>s = scans.get_scan('*_[^ew]')
    684687\end{verbatim}
    685 
    686 \subsection{Make the quotient spectra}
    687 
    688 Use the quotient function
    689 
    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 the
    695 rows in scantable \cmd{s}. Scantable \cmd{r} must have either 1 row
    696 (which is applied to all rows in \cmd{s}) or both scantables must have
    697 the same number of rows.
    698688
    699689\subsection{Time average separate scans}
     
    880870
    881871\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
    883874\end{verbatim}
    884875
     
    965956
    966957  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)
    968959  ASAP>r = scans.get_scan('*[ew]')  # Get all reference sources (Tid)
    969960  ASAP>s = scans.get_scan('*[^ew]') # Get all program sources (Tid)
     
    10431034\begin{verbatim}
    10441035  ASAP>scans.set_unit('km/s')
    1045   ASAP>plotter.set_mode(stacking='p',panelling='t')
     1036  ASAP>plotter.set_mode(stacking='p', panelling='t')
    10461037  ASAP>plotter.plot(scans)
    10471038\end{verbatim}
     
    10541045\begin{verbatim}
    10551046  # Plot multiple IFs per panel
    1056   ASAP>plotter.set_mode(stacking='i',panelling='t')
     1047  ASAP>plotter.set_mode(stacking='i', panelling='t')
    10571048
    10581049  # Plot multiple beams per panel
    1059   ASAP>plotter.set_mode(stacking='b',panelling='t')
     1050  ASAP>plotter.set_mode(stacking='b', panelling='t')
    10601051
    10611052  # Plot one IF per panel, time stacked
     
    16701661
    16711662To 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.
    16731664\begin{verbatim}
    16741665   scantable.storage          : disk
     
    17191710\hspace{1cm} http://www.atnf.csiro.au/computing/software/asap/tutorials
    17201711
     1712\hspace{1cm} http://svn.atnf.csiro.au/trac/asap/wiki
     1713
    17211714\hspace{1cm} http://www.python.org/doc/Introduction.html
    17221715
     
    17271720function definitions which will be used in subsequent processing or
    17281721just a set of commands to process a specific dataset.
     1722
     1723As an alternative to run scripts without entering ASAP, create a script which
     1724starts with.
     1725
     1726\begin{verbatim}
     1727from asap import *
     1728
     1729<your code>
     1730\end{verbatim}
     1731
     1732And run it with \cmd{python scriptname}.
    17291733
    17301734\subsection{asapuserfuncs.py}
Note: See TracChangeset for help on using the changeset viewer.