Ignore:
Timestamp:
20/02/08 17:18:00 (12 years ago)
Author:
astephen
Message:

Fixed and broken - got 2110 and 2310 writing from NetCDF. But the solution breaks the basic readNA/writeNA cycle. The reason is that the new code writes the data from NX, DX and X rather than A and NAUXV. Maybe the data really needs to be encoded to NAUXV and A in order for this to work unformly. Hmmmm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/na_file/na_file_2110.py

    r3477 r3482  
    120120            var_string = var_string + (self.format % self.NX[m]) 
    121121 
    122             for a in range(self.NAUXV - 1): 
     122            # Loop through aux vars minus 1 because NX is used as first aux var 
     123            for a in range(self.NAUXV - 1):  
    123124                var_string = var_string + (self.format % self.A[a][m]) 
    124125            self.file.write("%s\n" % var_string.rstrip(" ,")) 
Note: See TracChangeset for help on using the changeset viewer.