Changeset 774


Ignore:
Timestamp:
12/06/05 14:16:50 (19 years ago)
Author:
mar637
Message:

added recalc_azel. fixed missing ()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/doc/cookbook.tex

    r767 r774  
    153153scans.set_fluxunit    scans.set_restfreqs   scans.setif
    154154  ASAP> scans.set_in<TAB>
    155   ASAP> scans.set_instrument
     155  ASAP> scans.set_instrument()
    156156\end{verbatim}
    157157
     
    190190
    191191\begin{verbatim}
    192   ASAP> commands
     192  ASAP> commands()
    193193\end{verbatim}
    194194
     
    305305
    306306\begin{verbatim}
    307   ASAP> list_scans
     307  ASAP> list_scans()
    308308  The user created scantables are:
    309309  ['s', 'scans', 'av', 's2', 'ss']
     
    574574\begin{verbatim}
    575575  ASAP> r = reader('2003-03-16_082048_t0002.rpf')
    576   ASAP> r.summary
     576  ASAP> r.summary()
    577577  ASAP> scan = r.read()
    578578  ASAP> s = r.read(range(100)) # To read in the first 100 integrations
     
    776776
    777777\begin{verbatim}
    778   ASAP> scans.convert_flux                 # If efficency known
     778  ASAP> scans.convert_flux()               # If efficency known
    779779  ASAP> scans.convert_flux(eta=0.48)       # If telescope diameter known
    780780  ASAP> scans.convert_flux(eta=0.48,d=35)  # Unknown telescope
     
    787787corrections for atmospheric opacity and gain-elevation effects.
    788788
    789 {\em Note that currently the elevation is not written correctly into
     789Note that currently the elevation is not written correctly into
    790790Tidbinbilla rpfits files. This means that gain-elevation and opacity
    791 corrections will not work until a work around is implemented.}
     791corrections will not work unless these get recalculated.
     792
     793\begin{verbatim}
     794  ASAP> scans.recalc_azel()                # recalculate az/el based on pointing
     795\end{verbatim}
     796
    792797
    793798Gain-elevation curves for some telescopes and frequencies are known to
     
    898903
    899904\begin{verbatim}
    900   ASAP> ss = scans.copy
     905  ASAP> ss = scans.copy()
    901906\end{verbatim}
    902907
     
    12821287
    12831288In the following section a few examples of end-to-end processing of
    1284 some data in asap are given. 
     1289some data in asap are given.
    12851290
    12861291\subsection{Mopra}
     
    13171322
    13181323\begin{verbatim}
    1319  
     1324
    13201325# Remind ourself the name of the rpfits files
    1321 ls 
     1326ls
    13221327
    13231328# Load data from an rpfits file
     
    13341339d1665.rotate_xyphase(-4)
    13351340
    1336 # Create a copy of the data and set the rest frequency to the 1667 MHz 
     1341# Create a copy of the data and set the rest frequency to the 1667 MHz
    13371342# transition
    13381343d1667 = d1665.copy()
     
    14101415g2 = q.get_scan(range(6,12))  # Rows 6..11
    14111416
    1412 # Align data in velocity 
     1417# Align data in velocity
    14131418g1.freq_align(perif=True)
    14141419g2.freq_align(perif=True)
     
    14971502            poly_baseline   - fit a polynomial baseline to all Beams/IFs/Pols
    14981503            auto_poly_baseline - automatically fit a polynomial baseline
     1504            recalc_azel     - recalculate azimuth and elevation based on
     1505                              the pointing
    14991506            gain_el         - apply gain-elevation correction
    15001507            opacity         - apply opacity correction
     
    16301637% scantable
    16311638\asaprc{scantable.save}{{\bf ASAP} SDFITS FITS ASCII MS2}{Default output
    1632 format when saving} 
     1639format when saving}
    16331640
    16341641\asaprc{scantable.autoaverage}{{\bf True}/False}{Auto averaging on
Note: See TracChangeset for help on using the changeset viewer.