Changeset 1085


Ignore:
Timestamp:
02/06/06 13:36:17 (13 years ago)
Author:
domlowe
Message:

Scanner now picks up long_name and units

Location:
TI02-CSML/trunk/Scanner/csmllibs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmldataiface.py

    r898 r1085  
    311311 
    312312    def getVariableAttribute(self,attName): 
    313         attribValue = self.varobj.attName 
     313         
     314        #atts=self.varobj.getattributes(attName) 
     315        #print atts 
     316        if attName == 'long_name': 
     317            attribValue = self.varobj.long_name 
     318        elif attName == 'units': 
     319            attribValue = self.varobj.units 
     320             
     321             
    314322        return attribValue 
    315323 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfeaturetypes.py

    r1083 r1085  
    8080                #description: need to get the attribute called long_name (?? TODO - is this CF compliant??) 
    8181                #use Ag's getbestname from nappy package? 
     82                desc=DI.getVariableAttribute('long_name') 
    8283                try: 
    8384                    desc=DI.getVariableAttribute('long_name') 
Note: See TracChangeset for help on using the changeset viewer.