Changeset 18867


Ignore:
Timestamp:
11/26/14 11:45:30 (10 years ago)
Author:
bdef
Message:

CHG: adding compression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/netCDF/export_netCDF.py

    r18865 r18867  
    6060                #treating list as string table
    6161                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)
    6363                        for elt in range(0,val_dim):
    6464                                try:
     
    6868                #treating bool tables as string tables
    6969                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)
    7171                        for elt in range(0,val_shape[0]):
    7272                                ncvar[elt] = str(var[elt])
    7373                #treating dictionaries as string tables of dim 2
    7474                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)
    7676                        for elt in range(0,val_dim):
    7777                                ncvar[elt,0]=dict.keys(var)[elt]
     
    7979                #Now dealing with numeric variables
    8080                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)
    8282                       
    8383                        if istime:
Note: See TracChangeset for help on using the changeset viewer.