source: branches/Release12/test/file-io.py@ 1603

Last change on this file since 1603 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
2from asap import *
3
4rcParams['verbose'] = 0
5
6
7print "Test of file i/o"
8
9data = scantable('data/tid-t002.rpf')
10
11data.save('output/test.asap',overwrite=True)
12data.save('output/test.fits',format='FITS',overwrite=True)
13data.save('output/test.ascii',format='ASCII',overwrite=True)
14data.save('output/test.sdfits',format='SDFITS',overwrite=True)
15
16data2 = scantable('output/test.sdfits')
17data3 = scantable('output/test.asap')
18
19print "File i/o test finished successfully"
Note: See TracBrowser for help on using the repository browser.