- Timestamp:
- 09/11/06 23:16:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release2.1/doc/userguide.tex
r1264 r1265 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 your your friendly IT support.} 69 request your 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 … … 1265 1266 } 1266 1267 1267 1268 1269 1268 These functions all take a set of \cmd{kwargs} commands. These can be 1270 1269 used to set colour, linewidth fontsize etc. These are standard … … 1290 1289 \index{Linecatalog}ASAP can load and manipulate line catlogs to 1291 1290 retrieve rest frequencies for \cmd{set\_restfreqs} and for line 1292 identification in the plotter. No line catalogs are built into ASAP, 1293 the user must load a ASCII based table (which can optionally be saved 1294 in an internal format) either of the users own creation or a standard 1295 line catalog such as the JPL line catalog or Lovas. The ATNF asap ftp 1296 area as copies of the JPL and Lovas catalog in the appropriate 1297 format. All line catalogs are loaded into a ``linecatalog'' object. 1291 identification in the plotter. All line catalogs are loaded into a ``linecatalog'' object. 1292 1293 No line catalogs are built into ASAP, the user must load a ASCII based 1294 table (which can optionally be saved in an internal format) either of 1295 the users own creation or a standard line catalog such as the JPL line 1296 catalog or Lovas. The ATNF asap ftp area as copies of the JPL and 1297 Lovas catalog in the appropriate format 1298 (\cmd{ftp://ftp.atnf.csiro.au/pub/software/asap/data}) 1298 1299 1299 1300 \subsection{Loading a Line Catalog} 1300 1301 1301 \index{Linecatalog |loading}The ASCII text line catalog must have at1302 \index{Linecatalog!loading}The ASCII text line catalog must have at 1302 1303 least 4 columns. The first four columns must contain (in order): 1303 1304 Molecule name, frequency in MHz, frequency error and ``intensity'' … … 1330 1331 \end{verbatim} 1331 1332 1333 {\em NOTE:} Due to a bug in ipython, if you do not \cmd{del} the 1334 linecatalog table before quiting asap, you will be left with temporary 1335 files. It is safe to delete these once asap has finished. 1336 1332 1337 \subsection{Line selection} 1333 1338 1334 \index{Linecatalog |line selection}The linecatalog has a number of1339 \index{Linecatalog!line selection}The linecatalog has a number of 1335 1340 selection functions to select a range of lines from a larger catalog 1336 1341 (the JPL catalog has $>$180000 lines for … … 1359 1364 \subsubsection{Plotting linecatalog} 1360 1365 1361 \index{Linecatalog |plotting}1366 \index{Linecatalog!plotting} 1362 1367 1363 1368 The plotter \cmd{plot\_lines} function takes a line catalog as an … … 1385 1390 \subsubsection{Setting Rest Frequencies} 1386 1391 1387 \index{Linecatalog|set_restfreq} 1392 \index{Linecatalog!set\_restfreq}A linecatalog can be used as an 1393 argument for \cmd{set\_restfreqs}. If a personal line catalog has been 1394 used (which has the same size as the number of number of IFs) or 1395 linecatalog selection has been used to reduce the number of entries, 1396 the line catalog can be used directly as an argument to 1397 \cmd{set\_restfreqs}, e.g.: 1398 \begin{verbatim} 1399 ASAP>jpl = linecatalog('jpl.tbl') 1400 ASAP>jpl.set_frequency_limits(23.66,23.75,'GHz') 1401 ASAP>data = scantable('data.rpf') 1402 ASAP>data.set_restfreqs(jpl) 1403 \end{verbatim} 1404 1405 If a larger linecatalog is used, individual elements can be used. Use 1406 the \cmd{summary} to get the index number of the rest frequency you 1407 wish to use. E.g.: 1408 1409 \begin{verbatim} 1410 ASAP>jpl.summary() 1411 ASAP>data.set_restfreqs([jpl[11],[jpl[21]]) 1412 \end{verbatim} 1413 1414 1415 1388 1416 1389 1417 \section{Fitting} … … 1645 1673 1646 1674 \subsection{Disk Based Processing} 1647 \index{Scantable |disk based}1648 1649 Normally scantables exis it entirely in memory during an ASAP1650 session. This has the ad tantage of speed, but causes limits on the1675 \index{Scantable!disk based} 1676 1677 Normally scantables exist entirely in memory during an ASAP 1678 session. This has the advantage of speed, but causes limits on the 1651 1679 size of the dataset which can be loaded. ASAP can use ``disk based'' 1652 1680 scan tables which cache the bulk of the scantable on disk and require 1653 significant ely less memory usage.1681 significantly less memory usage. 1654 1682 1655 1683 To use disk based tables you either need to change the default in your … … 1672 1700 {\bf NOTE: } Currently a bug in ipython means temporary files are not 1673 1701 cleaned up properly when you exit ASAP. If you use disk based scan 1674 tables your directory will be left with 'tabXXXXX _X' directories. These can1702 tables your directory will be left with 'tabXXXXX\_X' directories. These can 1675 1703 be safely removed if ASAP is not running. 1676 1704 … … 1791 1819 1792 1820 \index{Parkes}\index{Polarisation}The following example is processing 1793 of some Parkes polar metric observations of OH masers at1821 of some Parkes polarimetric observations of OH masers at 1794 1822 1.6~GHz. Because digital filters where used in the backend, the 1795 1823 baselines are stable enough not to require a quotient spectra. The … … 1967 1995 \index{Functions!summary}% 1968 1996 \begin{verbatim} 1969 1970 [The scan container] 1997 [The scan container] 1971 1998 scantable - a container for integrations/scans 1972 1999 (can open asap/rpfits/sdfits and ms files) … … 1994 2021 get_abcissa - get the abcissa values and name for a given 1995 2022 row (time) 2023 get_column_names - get the names of the columns in the scantable 2024 for use with selector.set_query 1996 2025 set_freqframe - set the frame info for the Spectral Axis 1997 2026 (e.g. 'LSRK') … … 2008 2037 set_restfreqs - set a list of rest frequencies 2009 2038 flag - flag selected channels in the data 2010 lag_flag - flag specified frequency in the data2011 2039 save - save the scantable to disk as either 'ASAP', 2012 2040 'SDFITS' or 'ASCII' … … 2051 2079 [Selection] 2052 2080 selector - a selection object to set a subset of a scantable 2053 set_scans - set (a list of) scans by index 2054 set_cycles - set (a list of) cycles by index 2081 set_cycles - set (a list of) cycles by index 2055 2082 set_beams - set (a list of) beamss by index 2056 2083 set_ifs - set (a list of) ifs by index … … 2059 2086 set_names - set a selection by name (wildcards allowed) 2060 2087 set_tsys - set a selection by tsys thresholds 2088 set_query - set a selection by SQL-like query, e.g. BEAMNO==1 2061 2089 reset - unset all selections 2062 2090 + - merge to selections … … 2129 2157 arrow - draw arrow annotations either in data or relative 2130 2158 coordinates 2131 set_abcissa - specify a user label for the abcissa 2132 set_ordinate - specify a user label for the ordinate 2133 set_layout - specify the multi-panel layout (rows,cols) 2134 set_colors - specify a set of colours to use 2135 set_linestyles - specify a set of linestyles to use if only 2136 using one color 2137 set_font - set general font properties, e.g. 'family' 2138 set_histogram - plot in historam style 2139 set_mask - set a plotting mask for a specific polarization 2140 text - draw text annotations either in data or relative 2141 coordinates 2159 axhline,axvline - draw horizontal/vertical lines 2160 axhspan,axvspan - draw horizontal/vertical regions 2161 2162 xyplotter - matplotlib/pylab plotting functions 2163 2164 [Reading files] 2165 reader - access rpfits/sdfits files 2142 2166 arrow - draw arrow annotations either in data or relative 2143 2167 coordinates … … 2201 2225 histogram rather than lines.} 2202 2226 2203 {\em MALTE TO FIX}2204 2205 2227 \asaprc{plotter.colours}{}{Set default colours for plotting} 2206 2228
Note:
See TracChangeset
for help on using the changeset viewer.