# TimLinHW04 - % % % % % % % % % % % % % % % % BEE 1510...

This preview shows pages 1–2. Sign up to view the full content.

% BEE 1510 Introduction to Computer Programming % Homework Exercise 04: Rainfall Excess and Surface Runoff % Timothy Lin % TA: Celina % % This script file first invokes the functions to read and return air % temperature and precipitation data as two separate, one-dimensional % arrays. Then it uses logical arrays to create two new data arrays: one % for daily rain and one for daily snow (depending on the average daily air % temperature). Next, two logical arrays are created to describe the state % of the soil, frozen or not, and the vegetation canopy, dormant or not. % Next antecedent moisture was calculated from the antecedent moisture % function with inputs of rain and snow melt. Then for each land area, the % daily curve number, maxiumum soil water retention, daily runoff values % and total runoff volume was calculated. Then the runoff values were % summed up and plotted. Finally, all the values were written to a text % file and the nonzero values were written to the Command Window. % Record of revisions: % original code: October 16, 2008 % last modified: October 25, 2008 % % Variable Dictionary % k = snow melt parameter % precip = array of daily precipitation, cm % temp = array of daily temperatures, degrees Celcius

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## TimLinHW04 - % % % % % % % % % % % % % % % % BEE 1510...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online