source: nappy/trunk/nappy/nc_interface/quick_tests_na_to_nc.py @ 3469

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

Some temporary scripts to test functionality before formalising into unit tests.

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, 1010, 1020, 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.