Begin adding code for agent output to netcdf.