Commits
Des Small authored 2bf15217ecf Merge
1 - | import os |
2 - | import sys |
3 - | import inspect |
4 - | import string |
5 - | from casa_stack_manip import stack_frame_find |
6 - | |
7 - | |
8 - | def asap_init(): |
9 - | """ Initialize ASAP....: """ |
10 - | myf=stack_frame_find( ) |
11 - | casapath=os.environ['CASAPATH'] |
12 - | print('*** Loading ATNF ASAP Package...') |
13 - | import asap as sd |
14 - | #print('*** ... ASAP (%s rev#%s) import complete ***' % (sd.__version__,sd.__revision__)) |
15 - | print('*** ... ASAP (rev#%s) import complete ***' % (sd.__revision__)) |
16 - | os.environ['CASAPATH']=casapath |
17 - | from sdimaging_cli import sdimaging_cli as sdimaging |
18 - | from sdfixscan_cli import sdfixscan_cli as sdfixscan |
19 - | from sdaverageold_cli import sdaverageold_cli as sdaverageold |
20 - | from sdbaselineold_cli import sdbaselineold_cli as sdbaselineold |
21 - | from sdbaseline2old_cli import sdbaseline2old_cli as sdbaseline2old |
22 - | from sdcalold_cli import sdcalold_cli as sdcalold |
23 - | from sdcal2old_cli import sdcal2old_cli as sdcal2old |
24 - | from sdcoaddold_cli import sdcoaddold_cli as sdcoaddold |
25 - | from sdfitold_cli import sdfitold_cli as sdfitold |
26 - | from sdflagold_cli import sdflagold_cli as sdflagold |
27 - | from sdflagmanagerold_cli import sdflagmanagerold_cli as sdflagmanagerold |
28 - | from sdgridold_cli import sdgridold_cli as sdgridold |
29 - | from sdlistold_cli import sdlistold_cli as sdlistold |
30 - | from sdmathold_cli import sdmathold_cli as sdmathold |
31 - | from sdplotold_cli import sdplotold_cli as sdplotold |
32 - | from sdreduceold_cli import sdreduceold_cli as sdreduceold |
33 - | from sdsaveold_cli import sdsaveold_cli as sdsaveold |
34 - | from sdscaleold_cli import sdscaleold_cli as sdscaleold |
35 - | from sdstatold_cli import sdstatold_cli as sdstatold |
36 - | myf['sd']=sd |
37 - | myf['sdimaging']=sdimaging |
38 - | myf['sdfixscan']=sdfixscan |
39 - | myf['sdaverageold']=sdaverageold |
40 - | myf['sdbaselineold']=sdbaselineold |
41 - | myf['sdbaseline2old']=sdbaseline2old |
42 - | myf['sdcalold']=sdcalold |
43 - | myf['sdcal2old']=sdcal2old |
44 - | myf['sdcoaddold']=sdcoaddold |
45 - | myf['sdfitold']=sdfitold |
46 - | myf['sdflagold']=sdflagold |
47 - | myf['sdflagmanagerold']=sdflagmanagerold |
48 - | myf['sdgridold']=sdgridold |
49 - | myf['sdlistold']=sdlistold |
50 - | myf['sdmathold']=sdmathold |
51 - | myf['sdplotold']=sdplotold |
52 - | myf['sdreduceold']=sdreduceold |
53 - | myf['sdsaveold']=sdsaveold |
54 - | myf['sdscaleold']=sdscaleold |
55 - | myf['sdstatold']=sdstatold |