Last change
on this file since 2493 was 1487, checked in by Malte Marquarding, 16 years ago |
rename sdfits as inconsistent with other outputs
|
-
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
|
Line | |
---|
1 | #!/usr/bin/env python
|
---|
2 | from asap import *
|
---|
3 |
|
---|
4 | import os
|
---|
5 | outdir = "./output"
|
---|
6 | if not os.path.exists(outdir):
|
---|
7 | os.mkdir(outdir)
|
---|
8 |
|
---|
9 | rcParams['verbose'] = 0
|
---|
10 |
|
---|
11 | print "Test of file i/o"
|
---|
12 | rc('scantable', storage='disk')
|
---|
13 | data = scantable('data/tid-t002.rpf')
|
---|
14 | del data
|
---|
15 | rc('scantable',storage='memory')
|
---|
16 | data = scantable('data/tid-t002.rpf')
|
---|
17 |
|
---|
18 | data.save('output/test.asap',overwrite=True)
|
---|
19 | data.save('output/testascii',format='ASCII',overwrite=True)
|
---|
20 | data.save('output/test.sdfits',format='SDFITS',overwrite=True)
|
---|
21 | data.save('output/testfits',format='FITS',overwrite=True)
|
---|
22 | data.save('output/testclass',format='CLASS',overwrite=True)
|
---|
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.