================================== Plotting MPAS-A Global Simulations ================================== | Plotting with Python ==================== Python is NSF NCAR's primary language for scripting and visualization. See the `MPAS Plotting `_ GitHub repository that hosts examples and tutorials on using Python to create MPAS-A visualizations. There, you can find examples of visualization scripts and references to Python visualization modules, including the 'mpas-patches/mpas_patches.py' script, which can be useful for plotting individual MPAS grid cells (instead of interpolating to a rectangular latitude and longitude grid). | | | NCL Scripts =========== .. note:: NSF NCAR has `discontinued further development of NCL `_ The `NCAR Command Language `_ (NCL) is an interpreted language that may be used for plotting fields in MPAS-Atmosphere's netCDF input and output files. Several example scripts are provided below as a starting point, and users new to NCL may consult the extensive NCL documentation for examples and complete descriptions of all functions and resources. *MPAS-A users wishing to make their NCL scripts available for use by others are encouraged to contact the MPAS-Atmosphere developers directly via "mpas-atmosphere-help AT googlegroups.com".* | | Standard Pressure Level Plots (850, 500, 200 hPa) ------------------------------------------------- These fields are part of the standard model history output. `mpas-a_plevel_hgt_temp.ncl `_ `mpas-a_plevel_vorticity.ncl `_ `mpas-a_plevel_wind_speed.ncl `_ `mpas-a_plevel_w.ncl `_ | | Other Standard Plots -------------------- This data is also part of the standard model history output. `mpas-a_precipitable_water.ncl `_ `mpas-a_olr.ncl `_ | | Interpolating MPAS output to a latitude-longitude mesh ------------------------------------------------------ MPAS's unstructured horizontal mesh can often be problematic for some visualization tools to work with, and makes it more difficult to quickly check model input or output fields when trying to track down problems in the model. For these reasons, it can be helpful to interpolate MPAS fields from their native, unstructured mesh onto a regular, rectangular mesh, such as a regular latitude-longitude grid. The `mpas_to_latlon.ncl `_ script can be used to accomplish this. It is generally run in two stages: #. Specify the resolution of the latitude-longitude grid to which the script will interpolate, and run the script to generate remapping weights (i.e., interpolation weights) that will be used in the second step to actually interpolate from the MPAS mesh to the latitude-longitude grid. #. Set gen_weights = False and run the script to remap any cell-centered field of your choosing from the MPAS mesh to the latitude-longitude grid. | | Generic NCL plotting scripts ---------------------------- Shown below are example plots from each script; please click on the image to download the script. .. image:: ./images/ncl_plots_a.png :width: 450 .. image:: ./images/ncl_plots_b.png :width: 450 | .. image:: ./images/ncl_plots_c.png :width: 450 .. image:: ./images/ncl_plots_d.png :width: 450 | | | `Generic horizontal contour plot `_ `Generic color-filled cell plot `_ `Mesh plot against a map background `_ `Generic vertical cross section `_ | | | | |