NCL Workshop hosted by ResClim/CHESS
This is a community web page for students attending the NCL workshop hosted by ResClim / CHESS (Norwegian Research School on Changing Climate in the coupled Earth System), 8-12 August 2016.
We will use this site to update you with schedule changes, provide sample scripts and data files as needed, and possibly showcase scripts created during the lab sessions.
For more details and registration information, see the ResClim NCL Workshop Page.
- Workshop location
- Workshop schedule
- Ubuntu fix
- Link to NCL graphics lecture scripts and data
- Sample NCL scripts
- How to provide us with sample data files
- Acknowledgments
Workshop location
Høyteknologisenteret / Science Center (Thormølensgate 55)
Computer Lab FLAB3
See attached map
Lunch will be served in the canteen at Høyteknologisenteret Tuesday to Friday.
Workshop schedule
Note: schedule may change slightly to accommodate instructors' and/or students' schedules. We will update this schedule immediately if there are any changes.
Monday, 8 August 2016 | |
Hours not yet determined | Instructors will be on hand to help with installation and related questions |
Tuesday, 9 August 2016 | |
08:30-08:45 | Check in for the workshop |
09:00-10:30 | Lecture: NCL Language Basics |
10:30-10:45 | Break |
10:45-11:15 | Lecture: NCL Language Basics (continued) |
11:15-12:00 | Lecture: NCL File Input/Output |
12:00-13:00 | Lunch break |
13:15-14:00 | Interactive demo |
14:00-17:00 | Hands-on lab |
Wednesday, 10 August 2016 | |
09:00-10:15 | Lecture: NCL Graphics |
10:15-10:30 | Break |
10:30-12:00 | Lecture: NCL Graphics (continued) |
12:00-13:00 | Lunch break |
13:15-14:00 | NCL website tour |
14:00-17:00 | Hands-on lab |
Thursday, 11 August 2016 | |
09:00-10:15 | Lecture: NCL Data Analysis |
10:15-10:30 | Break |
10:30-12:00 | Lecture: NCL Data Analysis (continued) |
12:00-13:00 | Lunch break |
13:00-17:00 | Hands-on lab |
Friday, 12 August 2016 | |
09:00-12:00 | Optional hands-on lab |
12:00-13:00 | Lunch break |
01:00-5:00 | To Be Determined Depending on the students' needs, the instructors may have office hours or leave this time open for extra lectures or lab time. |
Ubuntu fix
If you are having an issue where NCL graphics are not being fully displayed when executed from an Ubuntu system, then try this fix.
Note that "ncl.xq.fix" is just a sample name. You can rename it to whatever you like (but keep the original "ncl" just in case):
wget ftp.ucar.edu:/pub/scd/haley/ncl.redhat.gnu472.xq.fix chmod gou+x ncl.redhat.gnu472.xq.fix mv ncl.redhat.gnu472.xq.fix $NCARG_ROOT/bin/ncl.xq.fix [log out and log back in] ncl.xq.fix myscript.ncl
Sample NCL scripts
- plot.ncl - plot script created during graphics lecture
- ccsm4_wclouds.ncl - fancy plot
Data for fancy plot - Jenny - plot_tmp.ncl
- Yuanchao Fan
- read_indo_clima_file.ncl - the NCL script created during the interactive demo with Dennis and Mary on Tuesday
- indo_clima_panel_plot.ncl - panel plot of three different variables using three different color maps
- indo_clima_animation.ncl - an animation of the same three variables, across all time steps
- Mahmud Hasan
- plot_sst.ncl - reads and plots "sst" from a NetCDF4 file with nested groups
- Detelina Ivanova
- plot_cam_contour.ncl - reads a variable off the N1850 CAM2 file and creates a color contour plot over a cylindrical equidistant (lat/lon) map
- plot_ice_contour.ncl - reads a variable off the N1850 CICE file file and creates a color contour plot over a polar stereographic map
- plot_micom_contour.ncl - reads a variable off the N1850 MICOM file file and creates a color contour plot. This plot is not over a map, because no lat/lon information is provided on the file.
- Stephen Outten
- Sunil Pariyar
- Mathew Reeve
Scripts using gsn_csm to plot WRF data
- plot_hgt_nonnative_zoom_gsn.ncl - zooming in on map area of interest
- plot_hgt_nonnative_zoom_shp_gsn.ncl - zooming in on map area of interest (with shapefile outlines included)
- plot_dbz_native_gsn.ncl - plots reflectivity over the native WRF map projection using gsn_csm_contour_map
- plot_dbz_native_shp_gsn.ncl - plots reflectivity over the native WRF map projection using gsn_csm_contour_map, and adds shapefile outlines
- plot_hgt_native_gsn.ncl - plots terrain over the native WRF map projection using gsn_csm_contour_map
- plot_hgt_native_shp_gsn.ncl - plots terrain over the native WRF map projection using gsn_csm_contour_map, and adds shapefile outlines
- plot_hgt_nonnative_gsn.ncl - plots reflectivity over a lat/lon projection using gsn_csm_contour_map
- plot_hgt_nonnative_shp_gsn.ncl - plots reflectivity over a lat/lon projection using gsn_csm_contour_map, and adds shapefile outlines
Scripts using wrf_xxxx to plot WRF data
- plot_hgt_native_wrf.ncl - plots terrain over the native WRF map projection using wrf_xxxx routines
- plot_hgt_shp_wrf.ncl - plots terrain over the native WRF map projection using wrf_xxxx routines, and adds shapefile outlines
- shapefile_utils.ncl
- needed by the *shp* scripts
- Susana Reuder
- plot_tsw_single.ncl - creates a color contour plot of "tsw"
- plot_tsw_zoom.ncl - creates a color contour plot of "tsw", but zoomed in on a pacific region
- convert_time.ncl - shows how to convert the "%Y%m%d.%f" time to a more standard time format
How to provide us with sample data files
The instructors' main goal for the NCL workshop is to work with students during the hands on labs to help them create NCL scripts that analyze their own data files of interest.
We are happy to provide sample data files for students that don't have any, but find that people get much more out of the workshop if they work with their own data files.
If you would like to share some of your data files with us before or during the workshop, then we can help you by providing some simple NCL scripts that analyze your data. We may also ask if we can use your data files in one or more interactive class demos.
If you have some sample data files to share, either put them somewhere that we can download them, or use our ftp site to upload your data. Then email Mary and Dennis <haley@ucar.edu,shea@ucar.edu> with the name of the files, where they are, and what you'd like to accomplish during the labs.
FTP instructions (do not ftp really large data files):
ftp ftp.cgd.ucar.edu <log in as "anonymous"> <Use email address as password> cd incoming put file1 put file2 . . . quit
Acknowledgments
We would like to acknowledge the follow people for their excellent help in putting this workshop together:
Ragna Breines
ResClim coordinator
Geophysical Institute
University of Bergen
Dr. Hanna Lee
Senior Researcher
UNI Research Climate
Bjerknes Centre for Climate Research
Detelina Ivanova
Nansen Environmental and Remote Sensing Center