Changeset 1011


Ignore:
Timestamp:
04/11/06 13:20:44 (18 years ago)
Author:
mar637
Message:

some more updates for asap2 - Ticket #9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/userguide.tex

    r971 r1011  
    1313\setlength{\parskip}{1ex}
    1414
    15 \title{ATNF Spectral Analysis Package\\User Guide }
     15\title{ATNF Spectral Analysis Package\\User Guide  v2.0beta }
    1616\author{Chris Phillips}
    1717
     
    3939package.
    4040
    41 This useeguide is currently being updated for the ASAP 2.0 release
     41This userguide is currently being updated for the ASAP 2.0 release
    4242which has a number of significant changes which affect the user
    4343interface. Please report any mistakes you find in this userguide.
     
    267267to operate upon it.
    268268
    269 {\bf [MALTE: Could you please reword this??]}
    270 
    271269The building block of a scantable is an integration, which is a single
    272270row of a scantable. Each row contains just one spectrum for each beam, IF and
     
    275273filterbank will eventually produce one beam, many IFs, and 2-4
    276274polarisations. 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 cyclesfor one source is termed
    280 a scan (and each scan has a unique numeric identifier, the ScanNo). A
     275contained in seperate rows. These rows are grouped in cycles (same time stamp).
     276
     277A collection of cycles for one source is termed
     278a scan (and each scan has a unique numeric identifier, the SCANNO). A
    281279scantable is then a collection  of one or more scans. If you have
    282280scan-averaged your data in time, i.e. you have averegaed all cycles within
     
    287285method is used depends on the users preference. The default can be
    288286changed via the {\tt .asaprc} resource file.
     287
     288For example a Mopra scan with a  4s intergration time, two IFs and
     289dual polarisations has two (2s) cycles.
     290
     291\begin{verbatim}
     292SCANNO  CYCLENO BEAMNO IFNO POLNO
     2930       0       0      0    0
     2940       0       0      0    1
     2950       0       0      1    0
     2960       0       0      1    1
     2970       1       0      0    0
     2980       1       0      0    1
     2990       1       0      1    0
     3000       1       0      1    1
     301
     302\end{verbatim}
     303
    289304
    290305\subsubsection {Contents}
     
    297312
    298313The 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??]}
     314rows/spectra of course).
     315
    302316
    303317Two important columns are those that describe the frequency setup.  We mention
     
    305319of the frequency information and possibly how to manipulate it.
    306320
    307 These columns are called FreqID and MoleculeID.  They contain indices, for
     321These columns are called FREQ\_ID and MOLECULE\_ID.  They contain indices, for
    308322each IF, pointing into tables with all of the frequency and rest-frequency
    309323information for that integration. More on these below when we discuss
     
    948962formats are:
    949963
    950 {\em Currently only raw ASAP output is available. Other formats will be added soon}
    951 
    952964\begin{itemize}
    953965\item[ASAP] This is the internal format used for ASAP. It is the only
     
    12721284\end{verbatim}
    12731285
     1286\subsection{Conversion}
     1287\label{sec:polconv}
     1288Data 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
    12741295\subsection{Plotting}
    12751296\label{sec:polplot}
     
    12821303Plinear, Pangle, V], [RR, LL] or [XX, YY, Real(XY),
    12831304Imaginary(XY)]. (Plinear and Pangle are the percentage and position
    1284 angle of linear polarisation). Conversion to circular polarisations
    1285 are currently not available.
     1305angle of linear polarisation).
    12861306
    12871307Example:
     
    13041324  ASAP> selection.set_polarisations(``I Plinear'')
    13051325  ASAP  plotter.set_selection(selection);              # Fractional linear
    1306 
    1307 [[MALTE: This does not work]]
    13081326
    13091327  ASAP> selection.set_polarisations(``Pangle'')
     
    13871405
    13881406\begin{verbatim}
    1389 # Concatenate the individual rpfits files together before loading
    1390 !cat 2005-06*.rpf > data.rpf
     1407# get a list of the individual rpfits files in the current directory
     1408myfiles = list_files()
    13911409
    13921410# Load the data into a scantable
    1393 data = scantable('data.rpf')
     1411data = scantable(myfiles)
    13941412print data
    13951413
     
    14011419plotter.plot(q)
    14021420
    1403 # Set reference frame
     1421# Set unit and reference frame
    14041422q.set_unit('km/s')
    14051423q.set_freqframe('LSRK')
     
    14851503
    14861504# Check what we have just loaded
    1487 d1665.summary
     1505d1665.summary()
    14881506
    14891507# View the data in velocity
     
    15951613a2 = g2.average_time()
    15961614
    1597 # Rpfits file only contrains a single rest frequency. Set both
     1615# Rpfits file only contains a single rest frequency. Set both
    15981616a1.set_restfreqs([23694.4700e6,23722.6336e6])
    15991617
    16001618plotter.plot(a1)
    1601 plotter.set_mode('i','s')
     1619plotter.set_mode('i','t')
    16021620
    16031621a1.auto_poly_baseline()
     
    16191637\index{Functions!summary}%
    16201638\begin{verbatim}
     1639ASAP> commands()
    16211640    [The scan container]
    16221641        scantable           - a container for integrations/scans
     
    16241643            copy            - returns a copy of a scan
    16251644            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
    16261648            summary         - print info about the scantable contents
    1627             set_cursor      - set a specific Beam/IF/Pol 'cursor' for
    1628                               further use
    1629             get_cursor      - print out the current cursor position
    16301649            stats           - get specified statistic of the spectra in
    16311650                              the scantable
     
    16341653            get_tsys        - get the TSys
    16351654            get_time        - get the timestamps of the integrations
     1655            get_sourcename  - get the source names of the scans
    16361656            get_azimuth     - get the azimuth of the scans
    16371657            get_elevation   - get the elevation of the scans
    16381658            get_parangle    - get the parallactic angle of the scans
    1639             get_unit        - get the currnt unit
     1659            get_unit        - get the current unit
    16401660            set_unit        - set the abcissa unit to be used from this
    16411661                              point on
     
    16451665                              (e.g. 'LSRK')
    16461666            set_doppler     - set the doppler to be used from this point on
     1667            set_dirframe    - set the frame for the direction on the sky
    16471668            set_instrument  - set the instrument name
    16481669            get_fluxunit    - get the brightness flux unit
     
    16531674            get_restfreqs   - get the current list of rest frequencies
    16541675            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
    16571677            save            - save the scantable to disk as either 'ASAP'
    16581678                              or 'SDFITS'
    16591679            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
    16601682            history         - print the history of the scantable
    16611683            get_fit         - get a fit which has been stored witnh the data
     
    16661688                              all polarisations will contain the
    16671689                              averaged spectrum.
     1690            convert_pol     - convert to a different polarisation type
    16681691            auto_quotient   - return the on/off quotient with
    16691692                              automatic detection of the on/off scans
    1670             quotient        - return the on/off quotient
     1693                              (matched pairs and 1 off - n on)
    16711694            scale           - return a scan scaled by a given factor
    16721695            add             - return a scan with given value added
     
    16861709            rotate_linpolphase - rotate the phase of the complex
    16871710                                 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
    16881717     [Math] Mainly functions which operate on more than one scantable
    16891718
     
    17001729                              commited.
    17011730            fit             - execute the actual fitting process
    1702             store_fit       - store the fit paramaters in the data (scantable)
     1731            store_fit       - store the fit parameters in the data (scantable)
    17031732            get_chi2        - get the Chi^2
    17041733            set_scan        - set the scantable to be fit
     
    17141743        asapplotter         - a plotter for asap, default plotter is
    17151744                              called 'plotter'
    1716             plot            - plot a (list of) scantable
     1745            plot            - plot a scantable
    17171746            save            - save the plot to a file ('png' ,'ps' or 'eps')
    17181747            set_mode        - set the state of the plotter, i.e.
    17191748                              what is to be plotted 'colour stacked'
    17201749                              and what 'panelled'
    1721             set_cursor      - only plot a selected part of the data
    1722             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]
    17231752            set_legend      - specify user labels for the legend indeces
    17241753            set_title       - specify user labels for the panel indeces
     1754            set_abcissa     - specify a user label for the abcissa
    17251755            set_ordinate    - specify a user label for the ordinate
    1726             set_abcissa     - specify a user label for the abcissa
    17271756            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
    17281761
    17291762    [Reading files]
    17301763        reader              - access rpfits/sdfits files
     1764            open            - attach reader to a file
     1765            close           - detach reader from file
    17311766            read            - read in integrations
    17321767            summary         - list info about all integrations
     
    17361771        print               - print details about a variable
    17371772        list_scans          - list all scantables created bt the user
     1773        list_files          - list all files readable by asap (default rpf)
    17381774        del                 - delete the given variable from memory
    17391775        range               - create a list of values, e.g.
     
    17421778        execfile            - execute an asap script, e.g. execfile('myscript')
    17431779        list_rcparameters   - print out a list of possible values to be
    1744                               put into \$HOME/.asaprc
     1780                              put into $HOME/.asaprc
    17451781        mask_and,mask_or,
    17461782        mask_not            - boolean operations on masks created with
     
    17581794            ASAP> help average_time
    17591795
     1796
    17601797\end{verbatim}
    17611798
Note: See TracChangeset for help on using the changeset viewer.