save masked

altered save function to output masked arrays

required for saving to netCDF variables
As mentioned elsewhere, we should be able to avoid this.