Changeset 2126 for TI02-CSML/trunk


Ignore:
Timestamp:
07/02/07 16:58:31 (13 years ago)
Author:
domlowe
Message:

changing paths in config files

Location:
TI02-CSML/trunk/csml
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/DDC/model/is92/cccma.cfg

    r2125 r2126  
    44 
    55[files] 
    6 root: /home/users/domlowe/SVN/csml/DDC/is92/cccma/ 
     6root: /home/users/domlowe/SVN/csml/DDC/model/is92/cccma/ 
    77mapping: onetoseveral 
    8 output: /home/users/domlowe/SVN/csml/DDC/is92/cccma/cccma.xml 
     8output: /home/users/domlowe/SVN/csml/DDC/model/is92/cccma.xml 
    99printscreen:1 
    1010 
  • TI02-CSML/trunk/csml/DDC/model/is92/cccmasubset.py

    r2125 r2126  
    33import csml,sys 
    44 
    5 f='cccma/cccma.xml' 
     5f='DDC/model/is92/cccma.xml' 
    66 
    77#Initialise the CSML container 
    8 csmlContainer=csml.API.csmlContainer.Container(csmlpath='./DDC/subsClim10.xml',docID="subsdoc_clim10", metadata='DDC Subsetted Data') 
     8csmlContainer=csml.API.csmlContainer.Container(csmlpath='./DDC/model/is92/subsClim10.xml',docID="subsdoc_clim10", metadata='DDC Subsetted Data') 
    99 
    1010#Initialise and parse the dataset 
     
    4343#request subsetted data from features (can set paths here) and add to container 
    4444#subset a feature 
    45 csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/subsClim10_1.nc',**subsetDictionary)) 
     45csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/model/is92/subsClim10_1.nc',**subsetDictionary)) 
    4646subsetDictionary['longitude']=(-1,4) 
    47 csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/subsClim10_2.nc',**subsetDictionary)) 
     47csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/model/is92/subsClim10_2.nc',**subsetDictionary)) 
    4848 
    4949 
  • TI02-CSML/trunk/csml/DDC/obs/clim10.cfg

    r2124 r2126  
    44 
    55[files] 
    6 root: /home/users/domlowe/SVN/csml/DDC/clim_10 
     6root: /home/users/domlowe/SVN/csml/DDC/obs/clim_10 
    77mapping: onetoseveral 
    8 output: /home/users/domlowe/SVN/csml/DDC/clim_10.xml 
     8output: /home/users/domlowe/SVN/csml/DDC/obs/clim_10.xml 
    99printscreen:1 
    1010 
  • TI02-CSML/trunk/csml/DDC/obs/clim10subset.py

    r2124 r2126  
    33import csml,sys 
    44 
    5 f='./DDC/clim_10.xml' 
     5f='DDC/obs/clim_10.xml' 
    66 
    77#Initialise the CSML container 
    8 csmlContainer=csml.API.csmlContainer.Container(csmlpath='./DDC/subsClim10.xml',docID="subsdoc_clim10", metadata='DDC Subsetted Data') 
     8csmlContainer=csml.API.csmlContainer.Container(csmlpath='./DDC/obs/subsClim10.xml',docID="subsdoc_clim10", metadata='DDC Subsetted Data') 
    99 
    1010#Initialise and parse the dataset 
     
    4343#request subsetted data from features (can set paths here) and add to container 
    4444#subset a feature 
    45 csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/subsClim10_1.nc',**subsetDictionary)) 
     45csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/obs/subsClim10_1.nc',**subsetDictionary)) 
    4646subsetDictionary['longitude']=(-1,4) 
    47 csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/subsClim10_2.nc',**subsetDictionary)) 
     47csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/obs/subsClim10_2.nc',**subsetDictionary)) 
    4848 
    4949 
  • TI02-CSML/trunk/csml/csmllibs/csmlfiles.py

    r2122 r2126  
    6969            repShapes=[] 
    7070            DI=csml.csmllibs.csmldataiface.DataInterface() 
    71             DI=DI.getUnknownInterfaceType(file) 
     71            DI=DI.getUnknownInterfaceType(repFile.getRepresentativeFileName()) 
    7272            DI.openFile(repFile.getRepresentativeFileName()) 
    7373            repVars=DI.getListofVariables() 
     
    8181            for dim in repDims: 
    8282                DI.setAxis(dim) 
     83                print DI.file 
    8384                repShapes.append(DI.getSizeOfAxis(dim)) 
     85                print dim 
     86                print DI.getSizeOfAxis(dim) 
    8487            DI.closeFile() 
    8588            nextotherfiles=[] 
     
    102105                if compareShapes + compareVars + compareDims == repShapes + repVars + repDims: 
    103106                    #found a match, add relatedFile to representativeFile 
    104                     relfile = csml.csmllibs.csmlfeaturefilemap.relatedFile(otherfile) 
    105                     relfile.setFeatureType(self.ft) 
    106                     repFile.addRelatedFile(relfile) 
     107                    #print 'match between %s and %s'%(repFile.getRepresentativeFileName(), otherfile) 
     108                    #print file 
     109                    #print compareShapes + compareVars + compareDims 
     110                    #print otherfile 
     111                    #print repShapes + repVars + repDims 
     112                    relFile = csml.csmllibs.csmlfeaturefilemap.relatedFile(otherfile) 
     113                    relFile.setFeatureType(self.ft) 
     114                    repFile.addRelatedFile(relFile) 
    107115                else: 
    108116                    #keep this file for the next check 
     
    134142                    continue 
    135143            otherfiles=__lookForSame(repfile, otherfiles) 
     144            #for repf in ffmap.getRepresentativeFiles(): 
     145                #print '******************' 
     146                #print 'representative:' 
     147                #print repf.getRepresentativeFileName() 
     148                #print 'related:' 
     149                #for relf in repf.getRelatedFiles(): 
     150                    #print relf.getRelatedFileName() 
    136151        return ffmap 
    137152                 
Note: See TracChangeset for help on using the changeset viewer.