Ignore:
Timestamp:
04/05/06 17:07:41 (14 years ago)
Author:
domlowe
Message:

basic temporal subsetting implemented, basic spatial part done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/newparser/test.py

    r812 r883  
    1616####################################################### 
    1717# 1. Test parsing from CSML file 
    18 tree = ElementTree(file='example.xml') 
    19 #tree = ElementTree(file='era40gridseries.xml') 
     18#tree = ElementTree(file='example.xml') 
     19tree = ElementTree(file='nagridseries.xml') 
    2020dataset = Dataset() 
    2121 
     
    2727 
    2828#resolve references:  
    29 dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
     29#dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
    3030 
    3131#This creates a new CSML document string from the CSML objects in memory. 
    3232#Hopefully the CSML output should be the same as the CSML it read in. 
    3333csml = dataset.toXML() 
    34  
     34print str(csml) 
     35     
    3536#Tidy up and print the CSML document: 
    36 strCSML= parseString(tostring(csml)).toprettyxml() 
     37#strCSML= parseString(tostring(csml)).toprettyxml() 
     38strCSML=parser_extra.PrettyPrint(csml) 
    3739strCSML=parser_extra.removeInlineNS(strCSML) 
    3840print strCSML 
    3941 
     42 
Note: See TracChangeset for help on using the changeset viewer.