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

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

View Full Document Right Arrow Icon
% 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online