Changeset 4018 for TI02-CSML


Ignore:
Timestamp:
10/06/08 16:34:27 (11 years ago)
Author:
domlowe
Message:

initialise projectionvariables outside loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmlpreservation.py

    r4017 r4018  
    4848    def _buildProjectionVariables(self): 
    4949        '''support for preservation of variables referenced via the CF grid_mapping attribute''' 
     50        projectionVariables=[] 
    5051        if 'grid_mapping' in self.keyVariable.attributes: 
    5152            #then look for coordinates attributes, and from this determine which variables should be preserved. 
    5253            projvars=self.keyVariable.attributes['coordinates'].split(' ')  #TODO , put this section in a try except 
    5354            projvars.append(self.keyVariable.attributes['grid_mapping']) 
    54             projectionVariables=[] 
    5555            for var in projvars: 
    5656                self.di.setVariable(var) 
Note: See TracChangeset for help on using the changeset viewer.