Last change
on this file since 3054 was 747, checked in by phi196, 19 years ago |
Test file i/o
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
485 bytes
|
Line | |
---|
1 | #!/usr/bin/env python
|
---|
2 | from asap import *
|
---|
3 |
|
---|
4 | rcParams['verbose'] = 0
|
---|
5 |
|
---|
6 |
|
---|
7 | print "Test of file i/o"
|
---|
8 |
|
---|
9 | data = scantable('data/tid-t002.rpf')
|
---|
10 |
|
---|
11 | data.save('output/test.asap',overwrite=True)
|
---|
12 | data.save('output/test.fits',format='FITS',overwrite=True)
|
---|
13 | data.save('output/test.ascii',format='ASCII',overwrite=True)
|
---|
14 | data.save('output/test.sdfits',format='SDFITS',overwrite=True)
|
---|
15 |
|
---|
16 | data2 = scantable('output/test.sdfits')
|
---|
17 | data3 = scantable('output/test.asap')
|
---|
18 |
|
---|
19 | print "File i/o test finished successfully"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.