Exercise#

Examining the output from your 1 month simulation#

In this exercise, you’ll check that the output from your 1 month simulation has been created and you’ll examine the contents of the output files.

Exercise: Look at the history files from your 1 month simulation.

Use the ncdump -h command to examine the contents of the history files from your simulation.

Optional: If you would like to look at maps of your output you can open up the analysis notebook ~/analysis_notebooks/output/analysis_notebook_output.ipynb. Executing the cells in this notebook will allow you to make a simple plot of a field in the h0 history file. This notebook is currently set to plot the zonal wind field “U” on the model level nearest 500hPa but you can change this by changing the variables varplot and pplot.

If, for some reason, your simulation hasn’t completed, you can see example output at

/scratch/data/exercise_output/

Click here for hints

Your one month simulation should have completed by now. You can go into the directory that contains the history files for the atmosphere by

cd ~/scratch/archive/case01/atm/hist

You should see a NetCDF (.nc) file here if you use the command ls

You can then use the following command to list all the variables that are in the file and their attributes

ncdump -h case01.cam.h0.0001-01.nc | more

You can press enter to continue scrolling down the entries.

Click here for the solution
cd ~/scratch/archive/case01/atm/hist
ncdump -h case01.cam.h0.0001-01.nc | more

Then continue pressing return to scroll down the contents of the file.