Last change
on this file since 2591 was 1757, checked in by Kana Sugimoto, 14 years ago |
New Development: Yes
JIRA Issue: Yes (CAS-2211)
Ready for Test: Yes
Interface Changes: Yes
What Interface Changed: ASAP 3.0.0 interface changes
Test Programs:
Put in Release Notes: Yes
Module(s): all the CASA sd tools and tasks are affected.
Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.
Note you also need to update casa/code/atnf.
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
736 bytes
|
Rev | Line | |
---|
[747] | 1 | #!/usr/bin/env python
|
---|
| 2 | from asap import *
|
---|
| 3 |
|
---|
[1038] | 4 | import os
|
---|
| 5 | outdir = "./output"
|
---|
| 6 | if not os.path.exists(outdir):
|
---|
| 7 | os.mkdir(outdir)
|
---|
| 8 |
|
---|
[747] | 9 | rcParams['verbose'] = 0
|
---|
| 10 |
|
---|
| 11 | print "Test of file i/o"
|
---|
[1267] | 12 | rc('scantable', storage='disk')
|
---|
[747] | 13 | data = scantable('data/tid-t002.rpf')
|
---|
[1259] | 14 | del data
|
---|
[1267] | 15 | rc('scantable',storage='memory')
|
---|
[1259] | 16 | data = scantable('data/tid-t002.rpf')
|
---|
[747] | 17 |
|
---|
| 18 | data.save('output/test.asap',overwrite=True)
|
---|
[1757] | 19 | data.save('output/testascii',format='ASCII',overwrite=True)
|
---|
[747] | 20 | data.save('output/test.sdfits',format='SDFITS',overwrite=True)
|
---|
[1757] | 21 | data.save('output/testfits',format='FITS',overwrite=True)
|
---|
| 22 | data.save('output/testclass',format='CLASS',overwrite=True)
|
---|
[747] | 23 |
|
---|
| 24 | data2 = scantable('output/test.sdfits')
|
---|
| 25 | data3 = scantable('output/test.asap')
|
---|
| 26 |
|
---|
| 27 | print "File i/o test finished successfully"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.