Changeset 1342


Ignore:
Timestamp:
31/07/06 09:52:45 (13 years ago)
Author:
domlowe
Message:

adding XML version info to CSML

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

Legend:

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

    r1306 r1342  
    119119        #open file, write to it. 
    120120        f = open(self.outputfile, "w") 
     121        f.write('<?xml version="1.0" encoding="UTF-8"?>') 
    121122        f.write(self.strCSML) 
    122123        f.close() 
  • TI02-CSML/trunk/Scanner/csmllibs/csmldataiface.py

    r1338 r1342  
    335335        #subset=getSubsetOfDataForVar(latitude=(0.,10.0), longitude=(90, 100.0)) 
    336336        for key in kwargs: 
    337             if key == 'longitude': 
    338                 print key 
     337            if key == 'longitude':   #this test needs to be more robust... 
     338                print kwargs[key] 
    339339                if kwargs[key][0] > kwargs[key][1]: 
    340340                    #subsetting greenwich meridian around 0 
Note: See TracChangeset for help on using the changeset viewer.