write_plot_data() writes NetCDF files (rather than crash)