Part 5. Visualizing NEMO output - NOC-MSM/Belize_workshop GitHub Wiki
Part 5. Visualizing NEMO output
Let's check if our NEMO is working by running diagnostic scripts!
To start with this section, you must have your Python container running and be inside the directory Belize_workshop/PYTHON_TOOLS/PYTHON_DIAGNOSTICS.
Running diagnostic scripts
The syntax to run this diagnostic script is:
python [script_name.py] [config_name]
Following the example above, the config you use must have an associated file called BLZ_config.py. To make this easier to understand, see the next example:
python NEMO_surface_var_diag.py BLZ
We are using the BLZ config, therefore, we must have the BLZ_config.py file in our directory.
Once you run the diagnostic script, a prompt will appear.
This prompt will contain instructions on how to use it, but the commands you are interested in are:
a, to add data.pcolor, to plot the data you added.
Use those commands in that order to plot your first figure (you only have to type an 'a', run it, and then type 'pcolor' and run it again).
All the plots you make will be automatically saved inside the FIGURES folder in your Belize_workshop/PYTHON_TOOLS/PYTHON_DIAGNOSTICS directory (the full directory should look like this: Belize_workshop/PYTHON_TOOLS/PYTHON_DIAGNOSTICS/FIGURES).
The output of NEMO is on netCDF format. The python diagnostic script reads it in and plot some variables. You can use a variety of software to explore and visualize your output netCDF files e.g.
- Panoply https://www.giss.nasa.gov/tools/panoply/
- Integrated Data Viewer (IDV) https://www.unidata.ucar.edu/software/idv/