save masked

altered save function to output masked arrays

required for saving to netCDF variables