updated version of writing_netcdf notebook.