Go to the documentation of this file.00001 """
00002 This is the ATNF Single Dish Analysis package.
00003
00004 """
00005 import os
00006 import sys
00007
00008
00009 from asap.env import *
00010
00011 from asap.parameters import *
00012
00013 from asap.logging import *
00014 from asap.utils import *
00015
00016 from asap.utils import _n_bools, _is_sequence_or_number, _to_list
00017
00018 if is_ipython():
00019 from ipysupport import *
00020
00021
00022
00023 if not is_asap_cli():
00024 rcParams['verbose'] = False
00025
00026 setup_env()
00027
00028
00029 if rcParams['useplotter']:
00030 try:
00031 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui']
00032 if gui:
00033 import matplotlib
00034 if 'matplotlib.backends' not in matplotlib.sys.modules:
00035 matplotlib.use("TkAgg")
00036 from asapplotter import asapplotter
00037 from matplotlib import pylab
00038 xyplotter = pylab
00039 plotter = asapplotter(gui)
00040 except ImportError:
00041 asaplog.push( "Matplotlib not installed. No plotting available")
00042 asaplog.post('WARN')
00043
00044 from selector import selector
00045 from asapmath import *
00046 from scantable import scantable
00047 from linecatalog import linecatalog
00048 from asaplinefind import linefinder
00049 from simplelinefinder import simplelinefinder
00050 from interactivemask import interactivemask
00051 from asapfitter import fitter
00052 from opacity import skydip
00053 from opacity import model as opacity_model
00054 from asapgrid import asapgrid, asapgrid2
00055 from edgemarker import edgemarker
00056
00057 from sbseparator import sbseparator
00058 from _asap import srctype
00059
00060 __date__ = '$Date: 2012-09-25 02:36:45 -0600 (Tue, 25 Sep 2012) $'.split()[1]
00061 __version__ = 'trunk'
00062 __revision__ = get_revision()
00063
00064 def welcome():
00065 return """Welcome to ASAP v%s (%s) - the ATNF Spectral Analysis Package
00066
00067 Please report any bugs via:
00068 http://svn.atnf.csiro.au/trac/asap/simpleticket
00069
00070 [IMPORTANT: ASAP is 0-based]
00071 Type commands() to get a list of all available ASAP commands.""" % (__version__,
00072 __date__)