source: trunk/python/__init__.py@ 2601

Last change on this file since 2601 was 2593, checked in by Takeshi Nakazato, 12 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

New class asapgrid2 is defined. Difference from asapgrid class is
that input and output is a scantable instance, not a table name.


  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
RevLine 
[100]1"""
2This is the ATNF Single Dish Analysis package.
3
4"""
[1824]5import os
6import sys
[226]7
[1824]8# first import!
9from asap.env import *
10# second import!
[1835]11from asap.parameters import *
12# third import
[1824]13from asap.logging import *
14from asap.utils import *
15# explicitly import 'hidden' functions
16from asap.utils import _n_bools, _is_sequence_or_number, _to_list
[1472]17
[1824]18if 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
23if not is_asap_cli():
24 rcParams['verbose'] = False
[226]25
[1824]26setup_env()
[226]27
[1824]28# anything which uses matplotlib has to be imported after this!!!
[928]29if 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]44from selector import selector
45from asapmath import *
46from scantable import scantable
47from linecatalog import linecatalog
48from asaplinefind import linefinder
49from simplelinefinder import simplelinefinder
50from interactivemask import interactivemask
51from asapfitter import fitter
52from opacity import skydip
53from opacity import model as opacity_model
[2593]54from asapgrid import asapgrid, asapgrid2
[2587]55#from plotter2 import plotter2
[1875]56from _asap import srctype
[1824]57
[574]58__date__ = '$Date: 2012-07-09 06:54:10 +0000 (Mon, 09 Jul 2012) $'.split()[1]
[1824]59__version__ = 'trunk'
60__revision__ = get_revision()
[100]61
[706]62def welcome():
63 return """Welcome to ASAP v%s (%s) - the ATNF Spectral Analysis Package
[100]64
[1035]65Please report any bugs via:
[1378]66http://svn.atnf.csiro.au/trac/asap/simpleticket
[100]67
[378]68[IMPORTANT: ASAP is 0-based]
[1824]69Type commands() to get a list of all available ASAP commands.""" % (__version__,
70 __date__)
Note: See TracBrowser for help on using the repository browser.