source: nappy/trunk/nappy/nc_interface/quick_tests_nc_to_na.py @ 3441

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

Fixes to make NC to NA route work.

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