Ignore:
Timestamp:
15/08/05 10:09:38 (14 years ago)
Author:
astephen
Message:

Latest version - for compatibility with web service. Includes multiple file
output on conversion from NetCDF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/naFile2310.py

    r361 r366  
    4242        self._writeCommonHeader() 
    4343        #self.DX.reverse() 
    44         self.file.write(("%s\n") % self.DX[0]) 
     44        self.header.write(("%s\n") % self.DX[0]) 
    4545        self.XNAME.reverse() 
    46         self.file.write("%s\n"*self.NIV % tuple(self.XNAME)) 
     46        self.header.write("%s\n"*self.NIV % tuple(self.XNAME)) 
    4747        self._writeVariablesHeaderSection() 
    4848        self._writeAuxVariablesHeaderSection() 
    4949        self._writeComments() 
     50        lines=self._fixHeaderLength(self.header) 
     51        self.file.writelines(lines) 
    5052 
    5153    def _readData1(self, datalines, ivar_count): 
Note: See TracChangeset for help on using the changeset viewer.