source: branches/Release2.0/test/file-io.py@ 2407

Last change on this file since 2407 was 1038, checked in by mar637, 19 years ago

have to check if output dir is there

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