source: branches/Release2.1/test/file-io.py@ 1815

Last change on this file since 1815 was 1262, checked in by mar637, 18 years ago

fix stupidity

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 619 bytes
RevLine 
[747]1#!/usr/bin/env python
2from asap import *
3
[1038]4import os
5outdir = "./output"
6if not os.path.exists(outdir):
7 os.mkdir(outdir)
8
[747]9rcParams['verbose'] = 0
10
11print "Test of file i/o"
[1262]12rc('scantable', storage='disk')
[747]13data = scantable('data/tid-t002.rpf')
[1257]14del data
[1262]15rc('scantable',storage='memory')
[1257]16data = scantable('data/tid-t002.rpf')
[747]17
18data.save('output/test.asap',overwrite=True)
19data.save('output/test.ascii',format='ASCII',overwrite=True)
20data.save('output/test.sdfits',format='SDFITS',overwrite=True)
21
22data2 = scantable('output/test.sdfits')
23data3 = scantable('output/test.asap')
24
25print "File i/o test finished successfully"
Note: See TracBrowser for help on using the repository browser.