To load this Project, start ArcView and select the menu option File / Open Project . A startup script automatically loads the following files into this project:
morbord.shp: polygon coverage of the border of Morocco
morclim.shp: polygon coverage of 0.5 degree cells that contains mean monthly temperature, precipitation, net radiation, soil-water holding capacity data as attributes. Selected datasets from shapefile are displayed in the project as themes "Precip", "Temp.", "Water Holding Cap.", and "Net Rad".
comcells.shp: polygon coverage of 0.5 degree cells in West Africa where the soil-water balance computation can be made.
marcity.shp: A point coverage of Moroccan cities for spatial reference.
prec_tr.txt : table of mean annual precipitation
pevall.txt : table of potential evapotranspiration
balance.ave : calculates the soil-water balance
pevap.ave : calculates the potential evaporation
autoplot.ave : makes bar charts of monthly data and computed results
Internet students can download the necessary files.
The data region used here is centered on Morocco and extends from approximately (14W, 26N) to (1E, 37N), including both the oceans and the land surface. Data from the oceans is included in the climate files to illustrate the climatic differences between the oceans and the land surface. The actual exercise is performed on a more restricted set of land surface cells for which the soil water holding capacity is defined.
The raw data obtained from the University of Delaware were downloaded via ftp in formatted text files. FORTRAN and AML were used to generate a polygon coverages (converted to a shapefile to simplify ftp transfer) of these data. Mean monthly and annual climate data are attributes of the shapefile morclim.shp. The Themes that you see called "Temp" and "Precip" both reference the file morclim.shp.
To view the climate data in the project sbudget.apr: Temperature:
Check the box next to the Theme "Temp." to display the mean annual temperatures
in the 0.5 degree cells.
Precipitation: To view mean annual precipitation data, remove
the next to the Theme "Temp."
and add a next to the Theme
Water-holding capacity estimates have also been attached as an attribute
to the coverage morclim.shp. These values are contained in the field "whold."
To view this data, remove the check mark next to the Theme "Precip" and
check the box next to "Water Holding Cap".
There are 13 fields in the coverage morclim.shp that contain 12 mean monthly and a mean annual value. The mean annual values are displayed by the Theme named "Net Rad."
To view the mean annual net radiation remove the check mark next to the Theme "Water Holding Cap." and check the box next to "Net Rad."
You can see that net radiation has low values in the dry desert regions (inland) and higher values along the coast and in the ocean. Differences are caused by the higher emission of long wave radiation in the desert because surface temperature is higher there, and because much of the incoming energy in the wetter regions is used to transform water into water vapor and thus can't be re-emitted as long wave radiation. Lower water vapor and fewer clouds in the desert regions allow more longwave radiation emitted by the surface to pass freely back out of the atmosphere.
You need to select the cells in comcells.shp at which computations will be made. Use the selection tool and select some computational cells by clicking on them on the View. Click and drag the mouse to select a region of cells. It is suggested that you select 10 cells or less to speed up the computations. If you make a selection and don't like it, use the unselect tool to delete the selection and then repeat the exercise. To orient yourself within Morocco, you may wish to add to the view the theme marcity.shp that you used in Exercise 1. Here is a set of nine cells selected around the city of Marrakech.
To calculate Potential Evaporation, select "Calculate PE" under the
"Programs" Menu. A window will come up asking the user to enter the input
In this window, the information needed is:
Working Directory: defines to which directory the output is written. This is sensed automatically by the program as the location where the files were obtained for setting up the View. Change this directory only if you want the output results written elsewhere.
View: defines which view the program operates on. Make sure this is the same as the name of your view in the title bar at the top of youe View. The default name is wbudget
Theme Name: name of the theme on which computational cells are selected
ID Field: the key field which indexes the computational cells. This is set automatically and you should not need to change it.
Output File Name: the name of the output file that you calculate. Change this name if you repeat the calculations so that you don't overwrite your earlier results. The default output file name is pevmor.txt
After the calculations are complete, you will want to display the results you created. Arcview does not automatically add text files to a project and you have to do that yourself. Make the Tables icon active in the Project window and click the button in the Project window to add the textfile pevmor.txt to the project. When adding the table use the Scroll Bar under List File of Type to select Delimited Text (*.txt) because the default file type that Arcview looks for is a dBase format, or .dbf extension.
Here are some calculated results. In the results table, the first column or field is the time index, in this case, time in months with 1 = January, 2 = February, etc. The remaining fields in the table are the potential evaporation in mm/month computed for each month of the year in each selected cell of the view. To determine which cell the data refer to, make sure the Comcell.shp theme is the only one highlighted in the view, then use Theme/Properties and set the label field to the key field used in this computation (Afpoly_), and then use Theme/Autolabel to label the selected cells. For example, cell 2592 is the upper most cell on the left side of those selected and its field is highlighted in the tabular display shown below.
A chart of the potential evaporation in a particular cell can be constructed
by highlighting the pevmor.txt table, select Table/Chart in the
menu bar, select the field C2592 from "Fields" and Add it
to "Groups", then "Label series using:" Field Index. A bar chart
like the one shown below should then appear.
The formula used for computing the potential evaporation is:
Ep = 1.3 (d / (d+g)) Er
where Ep is the potential evaporation rate in mm/mo., d is the gradient of the saturated vapor pressure curve in kPa/degree C at the prevailing temperature T in degrees C, g is the psychrometric constant in kPa/degree C, and Er is the water evaporation equivalent of the net radiation in mm/day. The values of d and g as a function of temperature are given in Table 4.2.1 p. 4.4 of the Handbook of Hydrology, (McGraw-Hill, 1993, ed. by D.R. Maidment). The value of Er is given by:
Er = 86,400 Rn / L
where Rn is the net radiation in W/m2, L is the latent heat of vaporization of water in J/kg, and 86,400 is the number of seconds in a day. The value of L is given by:
L = 2.501 x 10^6 - 2361 T
where T is the prevailing temperature.
For July, on cell C2592, the input data values for temperature and radiation can be read by highlighting the comcell.shp theme, and using the information tool to click on the cell. The values obtained for July are T = 26.7 degrees C and Rn = 122.13 W/m2. The latent heat of vaporization is given by:
L = 2.501 x 10^6 - 2361 * 26.7 = 2.437 x 10^6 J/kg
The value of Er is given by:
Er = 86,400 * 122.13 / 2.437 x 10^6 = 4.33 mm/day
For a temperature of 26.7 degrees C, the values of d and g are obtained from the Handbook as d = 0.206, g = 0.0671, so the potential evaporation rate for July is found as:
Ep = 1.3 (0.206 / (0.206 + 0.0671)) * 4.33 = 4.24 mm/day, and if this value is multiplied by 31 days in July, the result is 132 mm/mo. The value given for July potential evaporation in unit C2592 in the table pevmor.txt is 131.92 mm/mo., so the computation is thus verified.
Select Run Soil Budget under the Programs menu. You will
be asked whether you wish to continue with selected cells (say yes), and
then you will be prompted to select a control file. Select morbal.ctl.
This file contains a list of the parameters shown in the query window which
now presents to you:
The parameters in this window are:
Working Directory: the directory to which the output files are written
Starting Month for Balancing: first month for water balance computations. The default value is 1 for January.
Number of Years for Balancing: this corresponds to the number of years of data in your climate data file. The default is 1 year.
Ending Month: last month for water balance computations. The default value is 12 for December.
Months Beyond Balance Period: The default value is 0.
Precip Table: The table specifying the precipitation input data (mm/mo.).
Pevap Table: The table specifying the potential evaporation input data (mm/mo.). This table is like the pevmor.txt table computed in the previous exercise.
Surplus Table: The table containing the computed water surplus results (mm/mo.)
Soil Moisture Table: The table containing the soil moisture level at the beginning of each month (mm).
DST Table: The table containing the soil moisture increments from one month to the next (mm/mo.)
Actual Evap. Table: The table containing the actual monthly evaporation (mm/mo.)
Theme to Model: The Model Unit Theme defining the spatial units on which the computation is to be performed.
Cell ID Field: The key field in the Model Unit Theme that indexes the spatial units and is used in the field or column header on all the time series tables of the computed values to indicate the spatial unit to which each time series is applied.
Whold Field: The Field in the Model Unit Theme which specifies the water holding capacity of the soil (mm).
View: The name of the active View from which the program is executed.
Don't change the names of the input files for precipitation or potential evaporation but you can change the names of the output files if you want to run several different cases and compare the results.
Here is an example of the input precipitation and potential evaporation data used in in this computation. The data for cell C2592 are highlighted. You can see that the potential evaporation values are the same as those determined in the previous part of this exercise. The 12 rows in this table contain data for the 12 months, January to December.
Before the calculations are done, you will presented with this message
box, which gives you an opportunity to save the control file you have used
so that if you have made changes to it, you can use the new control file
again later. For the first time you run this exercise, select No.
If you run the exercise twice with the same control file, you will create
duplicates of each output file. If you hit Yes at this point you
will be prompted for the name you wish to assign to your new control file.
Once the water balance calculations are completed you will see a message
box like this. Hit OK, and the program is terminated.
In the example shown, for May in unit C2592. This unit has a water holding capacity of 13mm. In May, 33mm of precipitation produces 27.1 mm of evaporation, a water surplus of 7.2mm, and a change in soil storage of 33 - 27.1 - 7.2 = -1.3mm. The storage at the beginning of the month is 4.0mm, so the storage at the end of the month is 4.0 - 1.3 = 2.7mm. This value is stored as the starting storage in month 6 for June.
The actual calculations are done on a daily basis in the program. Values of the monthly precipitation and potential evaporation are divided by the number of days in the month to give average daily values. The runoff or water surplus in each day is found as product of precipitation and the ratio of actual soil moisture level to the soil moisture capacity. The evaporation in each day is found as the product of the potential evaporation and the ratio of actual soil moisture level to the soil moisture capacity. A trial calculation is done to find the end of day storage and if this exceeds the soil moisture capacity, the excess soil moisture is added to the water surplus and the storage is reset to the soil moisture capacity before the next day's computations are done. This algorithm is limited by the fact that it assumes that a month's rain falls as a gentle mist instead of in concentrated daily amounts with zero rainfall in between. This simplification is offset by allowing a small amount of runoff or water surplus in each day, as occurs with a soil slowly draining to a stream. The algorithm used here can also be applied with daily data files when such data are available and then its daily results are more realistic.
The climate data used are mean monthly values for a year. The computations are done for several such years in sequence until the computed soil moisture levels in each month stabilize to constant values independent of the year they were computed in. These values then represent expected monthly soil moisture levels on average over a number of years.
Plotting a Chart of the Results
A script has been written which makes it easy to create the Charts of the precipitation, potential evaporation, soil moisture, evaporation, and surplus at selected points. To plot these charts, click on the and then click on a cell where the soil water balance has been computed. You should see 5 column charts pop up.
O.K. That's all for now. Have Fun!!
These materials may be used for study, research, and education, but please credit the authors and the Center for Research in Water Resources, The University of Texas at Austin. All commercial rights reserved. Copyright 1997 Center for Research in Water Resources.