netcdf cleanup