NumPy
ma.masked_array.dumps
method
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array.