[100] | 1 | """
|
---|
| 2 | This is the ATNF Single Dish Analysis package.
|
---|
| 3 |
|
---|
| 4 | """
|
---|
[1824] | 5 | import os
|
---|
| 6 | import sys
|
---|
[226] | 7 |
|
---|
[1824] | 8 | # first import!
|
---|
| 9 | from asap.env import *
|
---|
| 10 | # second import!
|
---|
[1835] | 11 | from asap.parameters import *
|
---|
| 12 | # third import
|
---|
[1824] | 13 | from asap.logging import *
|
---|
| 14 | from asap.utils import *
|
---|
| 15 | # explicitly import 'hidden' functions
|
---|
| 16 | from asap.utils import _n_bools, _is_sequence_or_number, _to_list
|
---|
[1472] | 17 |
|
---|
[1824] | 18 | if is_ipython():
|
---|
| 19 | from ipysupport import *
|
---|
[226] | 20 |
|
---|
[1859] | 21 | # Only use rcParams['verbose'] in standard asap cli mode
|
---|
| 22 | # not in scripts or casapy
|
---|
| 23 | if not is_asap_cli():
|
---|
| 24 | rcParams['verbose'] = False
|
---|
[226] | 25 |
|
---|
[1824] | 26 | setup_env()
|
---|
[226] | 27 |
|
---|
[1824] | 28 | # anything which uses matplotlib has to be imported after this!!!
|
---|
[928] | 29 | if rcParams['useplotter']:
|
---|
[1295] | 30 | try:
|
---|
[1423] | 31 | gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui']
|
---|
| 32 | if gui:
|
---|
[1422] | 33 | import matplotlib
|
---|
[1824] | 34 | if 'matplotlib.backends' not in matplotlib.sys.modules:
|
---|
| 35 | matplotlib.use("TkAgg")
|
---|
| 36 | from asapplotter import asapplotter
|
---|
[1691] | 37 | from matplotlib import pylab
|
---|
[1422] | 38 | xyplotter = pylab
|
---|
[1423] | 39 | plotter = asapplotter(gui)
|
---|
[1295] | 40 | except ImportError:
|
---|
[1861] | 41 | asaplog.push( "Matplotlib not installed. No plotting available")
|
---|
| 42 | asaplog.post('WARN')
|
---|
[285] | 43 |
|
---|
[1824] | 44 | from selector import selector
|
---|
| 45 | from asapmath import *
|
---|
| 46 | from scantable import scantable
|
---|
| 47 | from linecatalog import linecatalog
|
---|
| 48 | from asaplinefind import linefinder
|
---|
| 49 | from simplelinefinder import simplelinefinder
|
---|
| 50 | from interactivemask import interactivemask
|
---|
| 51 | from asapfitter import fitter
|
---|
| 52 | from opacity import skydip
|
---|
| 53 | from opacity import model as opacity_model
|
---|
[2593] | 54 | from asapgrid import asapgrid, asapgrid2
|
---|
[2613] | 55 | from edgemarker import edgemarker
|
---|
[2587] | 56 | #from plotter2 import plotter2
|
---|
[2649] | 57 | from sbseparator import sbseparator
|
---|
[1875] | 58 | from _asap import srctype
|
---|
[1824] | 59 |
|
---|
[574] | 60 | __date__ = '$Date: 2013-07-02 00:38:18 +0000 (Tue, 02 Jul 2013) $'.split()[1]
|
---|
[2818] | 61 | __version__ = '4.1.3a'
|
---|
[1824] | 62 | __revision__ = get_revision()
|
---|
[100] | 63 |
|
---|
[706] | 64 | def welcome():
|
---|
| 65 | return """Welcome to ASAP v%s (%s) - the ATNF Spectral Analysis Package
|
---|
[100] | 66 |
|
---|
[1035] | 67 | Please report any bugs via:
|
---|
[1378] | 68 | http://svn.atnf.csiro.au/trac/asap/simpleticket
|
---|
[100] | 69 |
|
---|
[378] | 70 | [IMPORTANT: ASAP is 0-based]
|
---|
[1824] | 71 | Type commands() to get a list of all available ASAP commands.""" % (__version__,
|
---|
| 72 | __date__)
|
---|