Changeset 1483 for TI02-CSML


Ignore:
Timestamp:
06/09/06 10:00:02 (13 years ago)
Author:
domlowe
Message:

more module madness

Location:
TI02-CSML/trunk/csml
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/CSMLDocument.py

    r1462 r1483  
    11''' CSMLDocument.py - simple implementation to return a CSML document containing a single type of feature''' 
    2 from API import * 
    3 from Parser import * 
    4 import parser_extra 
     2# from API import * 
     3# from Parser import * 
     4# import parser_extra 
    55 
    66class CSMLDocument(object): 
  • TI02-CSML/trunk/csml/API/__init__.py

    r1421 r1483  
    33#import dataiface from scanner 
    44import os, sys 
    5 currentPath=os.getcwd()  
    6 scannerPath=os.sep.join(currentPath.split(os.sep)[:-1]) + '/Scanner' 
    7 sys.path.append(scannerPath) #append the parser path to sys.path  
    8 try: 
    9     import csmllibs.csmldataiface as csmldataiface 
    10 except: 
    11     print 'Could not import CSML data interface. ' 
    12     sys.exit() 
    13      
    14 try: 
    15     import csmllibs.csmltime as csmltime 
    16 except: 
    17     print 'Could not import csmltime. ' 
    18     sys.exit() 
     5# currentPath=os.getcwd()  
     6# scannerPath=os.sep.join(currentPath.split(os.sep)[:-1]) + '/Scanner' 
     7# sys.path.append(scannerPath) #append the parser path to sys.path  
     8# try: 
     9#     import csmllibs.csmldataiface as csmldataiface 
     10# except: 
     11#     print 'Could not import CSML data interface. ' 
     12#     sys.exit() 
     13#      
     14# try: 
     15#     import csmllibs.csmltime as csmltime 
     16# except: 
     17#     print 'Could not import csmltime. ' 
     18#     sys.exit() 
    1919 
    2020 
    2121#import element tree and the parser api 
    2222from cElementTree import * 
    23 import Parser 
    24 import parser_extra 
     23import csml.parser 
    2524import ops_Dataset 
    2625import ops_AbstractFileExtract 
     
    4645 
    4746#Dataset methods: 
    48 Parser.Dataset.parse=ops_Dataset.parse 
    49 Parser.Dataset.getSecurity=ops_Dataset.getSecurity 
    50 Parser.Dataset.getFeatureList=ops_Dataset.getFeatureList 
    51 Parser.Dataset.getFeature=ops_Dataset.getFeature 
    52 Parser.Dataset.getFileExtract=ops_Dataset.getFileExtract 
     47csml.parser.Dataset.parse=ops_Dataset.parse 
     48csml.parser.Dataset.getSecurity=ops_Dataset.getSecurity 
     49csml.parser.Dataset.getFeatureList=ops_Dataset.getFeatureList 
     50csml.parser.Dataset.getFeature=ops_Dataset.getFeature 
     51csml.parser.Dataset.getFileExtract=ops_Dataset.getFileExtract 
    5352 
    5453#AbstractFileExtract methods: 
    55 Parser.AbstractFileExtract.getData=ops_AbstractFileExtract.getData 
     54csml.parser.AbstractFileExtract.getData=ops_AbstractFileExtract.getData 
    5655 
    5756#ArrayGenerator methods: 
    58 Parser.ArrayGenerator.getGeneratedValues=ops_ArrayGenerator.getGeneratedValues 
     57csml.parser.ArrayGenerator.getGeneratedValues=ops_ArrayGenerator.getGeneratedValues 
    5958 
    6059#AbstractFeature methods: 
    61 Parser.AbstractFeature.testmethod=ops_AbstractFeature.testmethod 
    62 Parser.AbstractFeature.getAllowedSubsettings=ops_AbstractFeature.getAllowedSubsettings 
     60csml.parser.AbstractFeature.testmethod=ops_AbstractFeature.testmethod 
     61csml.parser.AbstractFeature.getAllowedSubsettings=ops_AbstractFeature.getAllowedSubsettings 
    6362 
    6463#PointFeature methods: 
    65 Parser.PointFeature.testmethod=ops_PointFeature.testmethod 
    66 #Parser.PointFeature.getAllowedSubsettings=ops_PointFeature.getAllowedSubsettings 
     64csml.parser.PointFeature.testmethod=ops_PointFeature.testmethod 
     65#csml.parser.PointFeature.getAllowedSubsettings=ops_PointFeature.getAllowedSubsettings 
    6766 
    6867#PointSeriesFeature methods: 
    69 Parser.PointSeriesFeature.testmethod=ops_PointSeriesFeature.testmethod 
    70 Parser.PointSeriesFeature.getDomainReference=ops_PointSeriesFeature.getDomainReference 
    71 #Parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement 
    72 #Parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain 
    73 #Parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries 
    74 Parser.PointSeriesFeature.getAllowedSubsettings=ops_PointSeriesFeature.getAllowedSubsettings 
     68csml.parser.PointSeriesFeature.testmethod=ops_PointSeriesFeature.testmethod 
     69csml.parser.PointSeriesFeature.getDomainReference=ops_PointSeriesFeature.getDomainReference 
     70#csml.parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement 
     71#csml.parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain 
     72#csml.parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries 
     73csml.parser.PointSeriesFeature.getAllowedSubsettings=ops_PointSeriesFeature.getAllowedSubsettings 
    7574 
    7675#ProfileFeature methods: 
    77 Parser.ProfileFeature.testmethod=ops_ProfileFeature.testmethod 
     76csml.parser.ProfileFeature.testmethod=ops_ProfileFeature.testmethod 
    7877#ProfileFeature.getAllowedSubsettings=ops_ProfileFeature.getAllowedSubsettings 
    7978 
    8079#ProfileSeriesFeature methods: 
    81 Parser.ProfileSeriesFeature.testmethod=ops_ProfileSeriesFeature.testmethod 
    82 #Parser.ProfileSeriesFeature.getAllowedSubsettings=ops_ProfileSeriesFeature.getAllowedSubsettings 
     80csml.parser.ProfileSeriesFeature.testmethod=ops_ProfileSeriesFeature.testmethod 
     81#csml.parser.ProfileSeriesFeature.getAllowedSubsettings=ops_ProfileSeriesFeature.getAllowedSubsettings 
    8382 
    8483#GridFeature methods: 
    85 Parser.GridFeature.testmethod=ops_GridFeature.testmethod 
    86 #Parser.GridFeature.getAllowedSubsettings=ops_GridFeature.getAllowedSubsettings 
     84csml.parser.GridFeature.testmethod=ops_GridFeature.testmethod 
     85#csml.parser.GridFeature.getAllowedSubsettings=ops_GridFeature.getAllowedSubsettings 
    8786 
    8887#GridSeriesFeature methods: 
    89 Parser.GridSeriesFeature.testmethod=ops_GridSeriesFeature.testmethod 
    90 Parser.GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings 
    91 Parser.GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference 
    92 Parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement 
    93 Parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain 
    94 Parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries 
     88csml.parser.GridSeriesFeature.testmethod=ops_GridSeriesFeature.testmethod 
     89csml.parser.GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings 
     90csml.parser.GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference 
     91csml.parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement 
     92csml.parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain 
     93csml.parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries 
    9594 
    9695#TrajectoryFeature methods: 
    97 Parser.TrajectoryFeature.testmethod=ops_TrajectoryFeature.testmethod 
     96csml.parser.TrajectoryFeature.testmethod=ops_TrajectoryFeature.testmethod 
  • TI02-CSML/trunk/csml/API/ops_AbstractFeature.py

    r1413 r1483  
    11''' ops_AbstractFeature  contains operations for AbstractFeatures''' 
    2 from API import * 
    32import cdtime 
    43 
  • TI02-CSML/trunk/csml/API/ops_AbstractFileExtract.py

    r1413 r1483  
    11''' ops_AbstractFileExtract  contains operations for AbstractFileExtracts''' 
    2 from API import * 
    32import sys 
    43 
  • TI02-CSML/trunk/csml/API/ops_ArrayGenerator.py

    r1366 r1483  
    11''' ops_ArrayGenerator ''' 
    2 from API import * 
    32import sys 
    43import cdtime 
  • TI02-CSML/trunk/csml/API/ops_Dataset.py

    r1438 r1483  
    11''' ops_Dataset  contains operations for root Dataset class''' 
    2 from API import * 
     2#from API import * 
    33import codecs 
    44 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r1429 r1483  
    11''' ops_GridSeriesFeature  contains operations for GridSeriesFeatures''' 
    2 from API import NetCDFWriter 
     2#from API import NetCDFWriter 
    33from CSMLDocument import * 
    44from Scientific.IO.NetCDF import *  #use this instead of cdms for now for it's simple write interface.. 
  • TI02-CSML/trunk/csml/API/ops_PointSeriesFeature.py

    r1355 r1483  
    11''' ops_PointSeriesFeature  contains operations for PointSeriesFeatures''' 
    2 from API import * 
     2 
    33 
    44def testmethod(self): 
  • TI02-CSML/trunk/csml/csmllibs/csmlbuilder.py

    r1462 r1483  
    44from xml.dom.minidom import parseString 
    55from cElementTree import tostring 
    6 import csmllibs 
     6#import csmllibs 
    77 
    88 
  • TI02-CSML/trunk/csml/csmllibs/csmlfeaturetypes.py

    r1470 r1483  
    77#************************************************************************************** 
    88 
    9 import csmllibs 
     9#import csmllibs 
    1010import sys 
    1111 
  • TI02-CSML/trunk/csml/csmllibs/csmlfileextracts.py

    r1462 r1483  
    33#!/usr/bin/env python 
    44import os 
    5 import csmllibs 
     5#import csmllibs 
    66import sys 
    77class fileExtractBuilder(object): 
  • TI02-CSML/trunk/csml/csmllibs/csmlfiles.py

    r1466 r1483  
    11#version 0.1  
    22#Dominic Lowe, BADC 8th December 2005 
    3 import csmllibs 
     3#import csmllibs 
    44import sys 
    55 
  • TI02-CSML/trunk/csml/csmllibs/csmltime.py

    r1470 r1483  
    1111 
    1212#import cdms 
    13 import csmllibs 
     13#import csmllibs 
    1414import datetime 
    1515import sys 
  • TI02-CSML/trunk/csml/parser_extra.py

    r1479 r1483  
    66# Function to resolve references in CSML doc. 
    77 
    8 import Parser 
     8import csml.parser 
    99import sys 
    1010import elementtree.ElementTree as etree 
Note: See TracChangeset for help on using the changeset viewer.