Changeset 18867
- Timestamp:
 - 11/26/14 11:45:30 (11 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/m/contrib/netCDF/export_netCDF.py
r18865 r18867 60 60 #treating list as string table 61 61 elif val_type==list: 62 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime) )62 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime),zlib=True) 63 63 for elt in range(0,val_dim): 64 64 try: … … 68 68 #treating bool tables as string tables 69 69 elif val_type=='bool': 70 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime) )70 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime),zlib=True) 71 71 for elt in range(0,val_shape[0]): 72 72 ncvar[elt] = str(var[elt]) 73 73 #treating dictionaries as string tables of dim 2 74 74 elif val_type==collections.OrderedDict: 75 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime) )75 ncvar = NCgroup.createVariable(str(field),str,GetDim(var,val_shape,val_dim,istime),zlib=True) 76 76 for elt in range(0,val_dim): 77 77 ncvar[elt,0]=dict.keys(var)[elt] … … 79 79 #Now dealing with numeric variables 80 80 else: 81 ncvar = NCgroup.createVariable(str(field),TypeDict[val_type],GetDim(var,val_shape,val_dim,istime) )81 ncvar = NCgroup.createVariable(str(field),TypeDict[val_type],GetDim(var,val_shape,val_dim,istime),zlib=True) 82 82 83 83 if istime:  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)