Commits

castelao  committed 21972c6

A modification to properly save masked values for Masked Arrays.

  • Participants
  • Parent commits baf5d00
  • Branches MaskedArray

Comments (0)

Files changed (1)

         self.dimensions = dimensions
         self.record = record
         self.attributes = kwargs
+        if (hasattr(data, 'mask')) & (hasattr(data, 'fill_value')):
+           self.data[data.mask] = data.fill_value
+           self.attributes['missing_value'] = data.fill_value
 
 
 class NetCDF(object):