Changeset 1429


Ignore:
Timestamp:
21/08/06 14:12:05 (13 years ago)
Author:
domlowe
Message:

adding placeholders for units

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/parser/API/ops_GridSeriesFeature.py

    r1424 r1429  
    199199        for val in ordinate.axisValues.split(','): 
    200200            vals.append(float(val)) 
    201         nc.addAxis(ordinate.definesAxis,vals,isLon=lon,isLat=lat) 
     201        nc.addAxis(ordinate.definesAxis,vals,isLon=lon,isLat=lat,units='')#to do, units attribute for CF compliance 
    202202    if len(ordinates)==3: 
    203203        axes=['t',axisorder[1],axisorder[2],axisorder[3]] 
    204204    elif len(grid.ordinates)==2: 
    205205        axes=['t',axisorder[1],axisorder[2]] 
    206     nc.addVariable(fulldata,self.id, axes) 
     206    nc.addVariable(fulldata,self.id, axes,units='') #to do, units attribute for CF compliance 
    207207    nc.closeFinishedFile() 
    208208    return pathToSubsetCSML,pathToSubsetNetCDF, totalArraySize 
Note: See TracChangeset for help on using the changeset viewer.