---replaced pkl writing of density fluctuations with NetCDF writing.