Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

NCL scripts in Tutorial

F-Colby-UML

New member
Am working through the MPAS tutorial. Everything seems to work fine.

I realize that python is the preferred plot routine but the tutorial uses NCL scripts in several places and there are many NCL scripts out there to make plots.

I have installed NCL using conda and it seems to work. However, I am missing basic functions that the NCL scripts in the tutorial use. Is there a repository of these? I see most of them on the NCL website but there doesn't appear to be a way to download the whole group, and some of the functions in the tutorial scripts are not in the list. For instance,

The beginning of plot_terrain.ncl is:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" On the website
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" On the website
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" Not on the NCL website

and there are other calls, as in gsn_polygon(....) and gsn_polyline(...) and gsn_csm_map(wks,mres)

The distribution I used for ncl was ncl_stable using conda as in (conda create -n ncl_stable -c conda-forge ncl -y)

When I try to run plot_terrain.ncl I get errors which I suspect are related to these missing scripts.

If there is a repository of these scripts I can install them in a folder and modify the scripts if necessary to find them.
Does anyone have such a repository?
Thanks.
 
An addendum to the initial posting.
Some of the scripts may be hidden in my installation even though I cannot find them. Here is what I get for errors when running plot_terrain.ncl

1748631859291.png
 
Did you install NCL following the instruction in the official NCL website?


If so, did you see any error messages when you install NCL?

As for the MPAS post process, we are working to develop a python package for data processing and visualization. It may take some time and we strongly recommend that you use python, either based on available scripts or develop your own scripts.
 
Thanks Ming. I did follow the official NCL website for installation. And am happy to move to python. Will look forward to new python modules.
 
Top