Changeset 891


Ignore:
Timestamp:
05/05/06 15:18:40 (13 years ago)
Author:
domlowe
Message:

added comments to CSMLDataHandler.py

Location:
TI03-DataExtractor/branches/csml_hooks
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TI03-DataExtractor/branches/csml_hooks/CSMLDataHandler.py

    r834 r891  
    175175 
    176176    def getDomain(self, datasetGroup=None, dataset=None, variable=None, datasetURI=None): 
    177         """ CSML: Okay, I've not got far with Domains yet, but this may need to call several csmlio methods to get the data it needs. 
     177        """ CSML:      domain=csml.getDomain(strFeatureName) 
     178        at the moment returns something like: 
     179         
     180        domain: {'latitude': [ 90. , 87.5, 85. , 82.5, 80. , 77.5, 75. , 72.5, 70. , 67.5, 65. , 62.5, 60. , 
     181         57.5, 55. , 52.5, 50. , 47.5, 45. , 42.5, 40. , 37.5, 35. , 32.5, 
     182         30. , 27.5, 25. , 22.5, 20. , 17.5, 15. , 12.5, 10. ,  7.5,  5. , 
     183          2.5,  0. , -2.5, -5. , -7.5,-10. ,-12.5,-15. ,-17.5,-20. ,-22.5, 
     184        -25. ,-27.5,-30. ,-32.5,-35. ,-37.5,-40. ,-42.5,-45. ,-47.5,-50. , 
     185        -52.5,-55. ,-57.5,-60. ,-62.5,-65. ,-67.5,-70. ,-72.5,-75. ,-77.5, 
     186        -80. ,-82.5,-85. ,-87.5,-90. ,], 'Trop': [ 0.,], 't': '2783-05-22T00:00:00 2793-03-30T00:00:00 2803-02-06T00:00:00 2891-10-22T00:00:00', 'longitude': [   0.  ,   3.75,   7.5 ,  11.25,  15.  ,  18.75,  22.5 ,  26.25,  30.  , 
     187        33.75,  37.5 ,  41.25,  45.  ,  48.75,  52.5 ,  56.25,  60.  ,  63.75, 
     188        67.5 ,  71.25,  75.  ,  78.75,  82.5 ,  86.25,  90.  ,  93.75,  97.5 , 
     189       101.25, 105.  , 108.75, 112.5 , 116.25, 120.  , 123.75, 127.5 , 131.25, 
     190       135.  , 138.75, 142.5 , 146.25, 150.  , 153.75, 157.5 , 161.25, 165.  , 
     191       168.75, 172.5 , 176.25, 180.  , 183.75, 187.5 , 191.25, 195.  , 198.75, 
     192       202.5 , 206.25, 210.  , 213.75, 217.5 , 221.25, 225.  , 228.75, 232.5 , 
     193       236.25, 240.  , 243.75, 247.5 , 251.25, 255.  , 258.75, 262.5 , 266.25, 
     194       270.  , 273.75, 277.5 , 281.25, 285.  , 288.75, 292.5 , 296.25, 300.  , 
     195       303.75, 307.5 , 311.25, 315.  , 318.75, 322.5 , 326.25, 330.  , 333.75, 
     196       337.5 , 341.25, 345.  , 348.75, 352.5 , 356.25,]} 
     197 
    178198        """ 
    179199         
     
    198218        Returns the full domain listing for a variable returning: 
    199219         
    200         [knownAxisString, id, longName, units, listType, unusedItem,  
    201         listValue-1, listValue-2, ..., listValue-n] 
    202          
     220         
    203221        For example: 
    204222         
     
    328346        """ 
    329347        Returns a list of time step strings based on the selection. 
     348     
     349    CSML: something like: 
     350        timelist = domainref['t'] 
     351#make some selection from the available times/spatialdomain: 
     352timeSelection = timelist.split()[:2] 
     353spatialSubsetDictionary= {} 
     354spatialSubsetDictionary['latitude']=(0.,10.0) 
     355spatialSubsetDictionary['longitude']=(90, 100.0) 
     356 
     357featureValues=csml.getDataForFeature('solar_3', timeSelection, **spatialSubsetDictionary) 
     358     
    330359        """      
    331360        print """CSML: getSelectedTimeSteps(datasetURI, variable, axisSelectionDict) 
Note: See TracChangeset for help on using the changeset viewer.