Changeset 2190 for TI02-CSML/trunk


Ignore:
Timestamp:
20/02/07 14:17:51 (13 years ago)
Author:
domlowe
Message:

sketching out profile series, commiting to avoid clash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/Examples/Parsing/demoCreateV2.py

    r2052 r2190  
    2626 
    2727#create a TimeSeriesDomain (appropriate domain for a PointSeriesFeature 
    28 ptsd=csml.parser.TimeSeriesDomain() 
     28ptsd=csml.parser.TimeSeries() 
    2929#create (and populate) a TimePositionList. Using keyword arguements for conciseness. 
    3030ptsd.time=csml.parser.TimePositionList(frame='#pred20060427001',CONTENT='-18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60') 
     
    5454 
    5555 
     56 
     57#create a profile series feature 
     58psf=csml.parser.ProfileSeriesFeature() 
     59psf.id='profilef' 
     60psf.description=csml.parser.csString('sample profile series feature') 
     61cvg = csml.parser.ProfileSeriesCoverage() 
     62psd=csml.parser.ProfileSeriesDomain() 
     63rs=csml.parser.RangeSet() 
     64gcT=csml.parser.GridCoordinatesTable() 
     65psd.coordTransformTable=gcT 
     66cvg.profileSeriesDomain=psd 
     67psf.value=cvg 
     68fms.append(psf) 
     69             
     70             
    5671#instantiate a FeatureCollection object (and add all featureMembers) 
    5772fc=csml.parser.CSMLFeatureCollection(featureMembers=fms) 
Note: See TracChangeset for help on using the changeset viewer.