Ignore:
Timestamp:
30/06/08 11:51:21 (11 years ago)
Author:
domlowe
Message:

Global attribtues now preserved except when they are data dependent CF attributes (which need recalculating). So far this is only implemented for gridseries to gridseries

File:
1 edited

Legend:

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

    r4030 r4033  
    265265        else: 
    266266            nc.addVariable(pv.data, pv.name, pv.axes.keys(),**pv.attributes) 
    267  
     267     
     268    if preservedData.globalAttributes !={}: 
     269        nc.addGlobalAttributes(preservedData.globalAttributes) 
    268270    nc.closeFinishedFile() 
    269271    print 'NetCDF file written to %s'%pathToSubsetNetCDF 
Note: See TracChangeset for help on using the changeset viewer.