source: nappy/trunk/nappy/nc_interface/quick_tests.py @ 3415

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/nappy/trunk/nappy/nc_interface/quick_tests.py@3415
Revision 3415, 361 bytes checked in by astephen, 12 years ago (diff)

Some quick test scripts for now.

Line 
1import na_to_nc
2import nc_to_na
3import os
4
5in_dir = "../../data_files"
6out_dir = "../../test_outputs"
7
8for ffi in (1001, 2010, 3010, 4010):
9
10    infile = os.path.join(in_dir, "%s.na" % ffi)
11    outfile = os.path.join(out_dir, "%s.nc" % ffi)
12
13    print "Reading:", infile
14    x = na_to_nc.NAToNC(infile)
15
16    print "Writing:", outfile
17    x.writeNCFile(outfile)
Note: See TracBrowser for help on using the repository browser.