Ignore:
Timestamp:
15/06/04 13:46:45 (15 years ago)
Author:
astephen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/test/testCdmsWrite.py

    r339 r344  
    1 import sys ; sys.path.append("..") 
    2 import naCore, textParser, naFile, general 
    3 reload(naCore) ; reload(textParser) ; reload(naFile) ; reload(general) 
     1import sys  
     2import os 
     3sys.path.append(os.path.join("..", "..")) 
     4import nappy ; reload(nappy) 
    45 
    56for ffi in [1001, 2010, 3010, 4010]: 
    67    print "Reading in NASA Ames 1001:" 
    7     x=general.openNAFile(r'../data_files/%s.na' % ffi) 
     8    infile=os.path.join("..", "data_files", "%s.na" % ffi) 
     9    x=nappy.openNAFile(infile) 
     10    x.readData() 
    811    print "Read file OK." 
    912 
    10     outfile="../output/out%s.nc" % ffi 
     13    outfile=os.path.join("..", "output", "out%s.nc" % ffi) 
    1114    print "Writing output NetCDF file %s" % outfile  
    1215    x.toCdmsFile(outfile) 
Note: See TracChangeset for help on using the changeset viewer.