source: trunk/test/file-io.py@ 2269

Last change on this file since 2269 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
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"
[1267]12rc('scantable', storage='disk')
[747]13data = scantable('data/tid-t002.rpf')
[1259]14del data
[1267]15rc('scantable',storage='memory')
[1259]16data = scantable('data/tid-t002.rpf')
[747]17
18data.save('output/test.asap',overwrite=True)
[1478]19data.save('output/testascii',format='ASCII',overwrite=True)
[1487]20data.save('output/test.sdfits',format='SDFITS',overwrite=True)
[1478]21data.save('output/testfits',format='FITS',overwrite=True)
22data.save('output/testclass',format='CLASS',overwrite=True)
[747]23
24data2 = scantable('output/test.sdfits')
25data3 = scantable('output/test.asap')
26
27print "File i/o test finished successfully"
Note: See TracBrowser for help on using the repository browser.