Penguinpocalypse climate modeling practice
Summary
Learning Goals
Context for Use
This activity is designed as the second step in an introduction to MATLAB for upper-level undergraduate students who will be using it in a series of climate modeling projects over the course of the term. In this activity, students will get practice with indexing, loops, conditional logic, masks, plotting, and breaking a larger programming challenge into smaller pieces.
It is a lab activity, expected to take 1-3 hours. Students with some programming background will complete it fairly quickly, and may add additional features to their penguin-apocalypse models. Students without any programming experience (except the initial tutorials) will need additional help and encouragement along the way, but will gain a lot of confidence when they can watch their penguin maps update.
Students will need to be pointed to the ncread function to access the land mask.
Description and Teaching Materials
In this upper-level lab activity, students follow the instructions in the pdf handout to develop a model of a penguin-covered ocean surface where penguins flip belly up or down based on the ones around them. It is a lighthearted introduction to model development and programming basics.
A MATLAB script for part 1.3 (the final step) is provided for guidance.
Student instructions for Penguin-pocalypse model assignment (Microsoft Word 2007 (.docx) 11kB Sep18 20)
Reference MATLAB script (Matlab File 2kB Sep18 20)