Beruflich Dokumente
Kultur Dokumente
by
Sarada Chidambareswaran
August 2005
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
UMI Number: 1430383
INFORMATION TO USERS
The quality of this reproduction is dependent upon the quality of the copy
submitted. Broken or indistinct print, colored or poor quality illustrations and
photographs, print bleed-through, substandard margins, and improper
alignment can adversely affect reproduction.
In the unlikely event that the author did not send a complete manuscript
and there are missing pages, these will be noted. Also, if unauthorized
copyright material had to be removed, a note will indicate the deletion.
UMI
UMI Microform 1430383
Copyright 2006 by ProQuest Information and Learning Company.
All rights reserved. This microform edition is protected against
unauthorized copying under Title 17, United States Code.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
ACKNOWLEDGEMENTS
I take great pleasure in thanking all the people who contributed invaluably towards
my thesis.
Firstly I would like to thank my thesis advisor, Prof. Doug Noble. 1 could not
have imagined having a better advisor or mentor for my thesis, and without his
Prof. Murray Milne for his for the technical discussions on the
programming part and also for his invaluable suggestions during my thesis. He has
guided me throughout and tried to make my thesis better in all possible ways.
No words o f thanks will be enough for Prof Ralph Knowles, for helping to
supervise me, providing resources and subjects, and offering direction and
suggestions.
support, help and seemingly unlimited belief in me. Thank you Partho.
-Sarada
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
in
TABLE OF CONTENTS
Acknowledgements
List of Tables VI
List of Figures vm
Abstract
Introduction 1
Hypothesis 2
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
IV
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
V
Chapter 7. CONCLUSIONS 97
7.1 Reasons for Dissimilarity between Two Typeso f House
Design When the Climate is Similar. 97
7.1.1 China and Kerala 98
7.1.2 Malaysia and Indonesia 98
BIBILIOGRAPHY 101
APPENDICES 103
1 Program Code 103
2 30 Years o f M ahoney Tables (Paper Presented in
PLEA Conference by John Martin Evans) 154
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
VI
LIST OF TABLES
2. Temperature Table 10
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
vii
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
viii
LIST OF FIGURES
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
ix
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
X
ABSTRACT
Mahoney Tables. The ‘Mahoney Tables’ is a program that takes into consideration
the climatic data o f a place and helps in calculating certain design characteristics o f a
building to save energy. The various climatological data inputs have to be found
from the meteorological station data o f that place and these need to be logically
The program also has the capability to extract the climatic data o f a place from the
In the second part, I have compared the recommendations Mahoney gives for places
in Hot and humid climates, to the vernacular houses existing that regions and have
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
1
Introduction
It is nothing new that our energy resources are depleting at a critical rate and the
need for building energy efficient buildings has never been more profound before.
With this has started an increased awareness to save energy in buildings. Increased
attention is being paid to heating and cooling in buildings. In the past hand
calculation methods were used to calculate the energy transfer process. Nowadays,
computer simulations have been developed for all such building environments.
The fact that computers can be used to create energy tools inspired me to create a
computer program that would not only help architecture students but also give
Tables’ is basically a set o f tables that takes into consideration the climatic data o f a
energy, such as the percentage o f openings, the kind o f overhangs, etc. To find the
mean minimum relative humidity (a.m), rainfall (mm), prevailing winds and
secondary wind.
The computer program provides exactly the same advice as the original tables. The
input data can either be manually found from meteorological tables, entered into the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
2
program and saved into a database for future use or the data can be captured from the
internet. In either case the program saves a lot o f time and effort.
While crafting the computer program, I realized that there seems to be a difference
between the Mahoney recommendations and the actual built work o f a region, so a
set o f comparative case-studies was carried out. By comparing four regions (using
pairs with matching climates), it was demonstrated that there are additional,
sometimes overriding design issues that cause built work to be different from the
Mahoney recommendations and different from the built work in other places with
similar climates.
The software (a CD) and a tutorial (chapter 6) are included in the thesis.
Hypothesis
Mahoney Tables. This program takes different climatic data o f a place as input and
provides the Mahoney recommendations for building a house for that place.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
3
In this chapter I will discuss about the person who created the Mahoney Tables, the
basis o f the tables, reason for computerizing the same and how to fill in the Mahoney
Tables manually and get the results. The chapter also talk about the various climatic
data that has to be used to fill the tables and how to acquire them.
emphasis on the tropics. He has experience working both in the field o f architecture
and statistics. He is very active in the area o f Passive and Low Energy Architecture
(PLEA) and is best known for his work on the M ahoney Tables, (made for the
houses using climatic data o f a place. Carl Mahoney was interested in tropical houses
and had done extensive research on the topic. He decided to make a design support
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
system which would logically give standard recommendations based on the climate
o f a place. The system he created, called the Mahoney Tables, focuses on tropical
The Mahoney Tables are widely used in India, especially by architecture students.
The Tables are also used in Australia, Jordan, Netherlands, England and many other
parts o f the world. M any attempts have been made to computerize the Mahoney
Tables, but none seems to have reached widespread adoption by the public.
The Mahoney Tables currently have to be filled out manually. The 48 various
climatological data inputs have to be found from the meteorological station data o f
that place. Then these need to be logically worked with to arrive at corresponding
parameters, which then define the recommendation for a building in the place. This
method has some problems. First o f all, one has to find the required data, and then
has to do all the given calculations. This can be very time consuming and lots of
mistakes could occur while doing the calculations. The method is also very slow.
In spite o f all these difficulties, the Mahoney Tables are used very widely in India
and many other parts o f Asia. They are used both by architects and are also taught at
the Vth semester and later while doing the site analysis for our thesis in the 10th
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
5
semester, in the Regional Engineering College, Bhopal. Both the times, we had to go
through the process o f selecting a suitable location and gathering the climatic data o f
stations are deliberately made in locations where readings are minimally affected by
than a year’s worth o f data is not valuable) the designer must accept data from the
specific site climate from the regional climate data are rarely large enough to affect
the sketch design in the Mahoney system. Normal conditions can adequately be
defined from the monthly mean minimums and the monthly mean maximum values
for a place. Since the data for the Mahoney Tables are so specific, they cannot be
found easily. However, the computer program that I have created for the Mahoney
Tables has an option to log on to the internet and retrieve all the applicable data for a
place.
In the next chapter, I will discuss about the factors that were taken into consideration
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
1.5 Idea Behind Creating the Mahoney Tables
The main idea behind creating the Mahoney Tables was that, a design solution was
to be produced, to satisfy the social and functional as well as the physical needs of
the occupants within the given topographic, climatic and economic constraints. The
solution had to be structurally sound, constructionally suitable and had to fit into the
to make the recommendations work. It was also necessary to present the information
still take into account all that was relevant. Taking all these factors into account, the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
7
This chapter explains the scope o f Mahoney Tables, i.e. the kind o f climate that the
tables cater to. When the climatic pattern emerging from the data clearly corresponds
the conflicting requirements. The system had to take into account the duration and
severity o f various climatic factors. The Mahoney Tables have been based on such a
system.
This chapter discusses about the composition o f the Mahoney Tables, and the
process o f filling the data and calculating the end results, manually. As we go
through the process, it would be easy to understand the difficulty in filling up the
tables by hand.
For simplicity o f explaining how to fill the tables, I have taken a sample location,
Baghdad, which has a hot-dry type o f climate. I would be filling all the tables with
Baghdad’s climatic data and would be calculating the design recommendations for
this place.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
8
The Mahoney Tables are composed o f a ‘Title Block’ and 4 main ‘Tables’.
Table I is used to record the most essential climatic data, directing and defining the
Table II facilitates the diagnosis o f the climate and develops a series o f climatic
indicators.
recommendations. These tables have specially been developed for tropical climates.
further, in detail.
recommendations (in this case it would be Baghdad). The title block could have the
1. Title Block
Longitude 44 24’ E
Latitude 33 20’N
Altitude 34 M
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
9
2.1.2 Table I
The following four sections will describe how to fill out Table 1 o f the Mahoney
Tables. The first table constitutes three sub-tables. The first one deals with
temperature, the second with relative humidity o f the place and the third with the
rainfall and wind data. The Mahoney Tables requires all o f this data as inputs before
From the meteorological records, the monthly mean maximum air temperature and
the monthly mean minimum air temperature for each month (in degree Celsius) are
filled in the first two lines, corresponding to ‘monthly mean m ax’ and ‘monthly
mean m in’ respectively. The monthly mean range for each month is found by
subtracting the mean minimum temperature from the mean maximum temperature.
Now, the highest monthly mean max temperature (in this case, 43 for the month of
July and August) is called the highest maximum temperature. Similarly, the lowest
o f all the 12 monthly mean min temperature (in this case 4, for the month o f January)
By adding the monthly mean maximum and the monthly mean minimum air
temperature, and dividing the result by 2 the annual mean temperature (AMT) is
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
10
By finding the difference between these two values (deducting the lowest mean
minimum from the highest mean maximum) the annual mean range is found.
2. Temperature Table
Month J F M A M J J A S O N D
monthly 16 18.5 22 29 36 41 43 43 40 34 24.5 17.5
mean
max (°C)
monthly 4 5.5 9 14 20 23 25 24 21 16 10.5 5
mean
min (°C)
monthly 12 13 13 14 16 17.5 18 18 19 18 14 12.5
mean
range
(°C)
Finding out and filling up the temperature table is the first major step in using the
Mahoney Tables. The values calculated in the temperature table will be subsequently
used in other tables. The next step will be to fill out the second part o f Table I, i.e.
relative humidity.
The second part o f Table I, the relative humidity table is filled just like the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
From the meteorological records the monthly mean maxima (early morning
percentage is filled in the first two lines, against ‘monthly mean max a.m (% )’ and
The average humidity for each month is found by adding the monthly maximum
relative humidity (a.m) and monthly mean minimum relative humidity (p.m) and
dividing by two. The averages are entered in the third line, against ‘average’
The humidity group for each month is found according to the humidity group chart.
Month J F M A M J J A S O N D
monthly 87 78 74 68 46 34 32 32 38 50 67 89
mean
max a.m
(%)
monthly 50 41 35 27 18 13 12 13 15 21 39 51
mean
min p.m
(%)
average 68.5 59 54 47 32 23 22 22 26.5 35 53 70
humidity 3 3 3 2 2 1 1 1 1 2 3 3
group
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
12
The relative humidity o f a place determines the human comfort limits for that place.
To set the comfort limits that would influence design changes accordingly; it
Thus, the relative humidity table is filled. After this comes the third most important
From the meteorological tables, the monthly average rainfall values in millimeters
for each month are added in the first row. The total rainfall is also found by adding
all the twelve values. This value is entered in the last column, as shown for Baghdad.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
13
Month J F M A M J J A s o N D Total
Rainfall
24 25 28 15 7 0 0 0 0 3 22 24 148
in mm
Prevailing wind direction North West
This ends the description on how to fill Table I o f the Mahoney Tables. Now we can
2.1.3 TABLE II
The Mahoney Table II has two parts. The first part is the diagnosis or identification
o f thermal stress and the second part is deriving the aridity/ humidity indicators. To
fill the diagnosis table however, we will have to first consult the comfort limit chart,
that quantifies the comfort limits o f a place during day and night, according to the
This is a chart which Mr. Mahoney created by taking into consideration the human
comfort limit according to the humidity groups and the annual temperature o f a
place. The chart below describes the comfort limit during the day and night, for
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
14
Humidity
AMT over 20 °C AMT 15-20 °C AMT below 15 °C
Group
Day Night Day Night Day Night
Comfort
temp temp temp temp temp temp
Limits
°C °C °C °C °C °C
1 26-34 17-25 23-32 14-23 21-30 12-21
2 25-31 17-24 22-30 14-22 20-27 12-20
3 23-29 17-23 21-28 14-21 19-26 12-19
4 22-27 17-21 20-25 14-20 14-20 12-18
This comfort limit chart is used as a re "erence for the diagnosis tables.
Table II o f the Mahoney Tables, is filled by taking into consideration Table I and
also the comfort limit chart described previously. The monthly mean minimum
temperature and the monthly mean maximum temperatures from Table I are entered
in the table, corresponding to the lines named ‘monthly mean m ax’ and ‘monthly
The upper and lower comfort limits for the day are found on the basis o f the comfort
charts. This data is entered in the table II, against the lines named ‘day comfort
upper’ and ‘day comfort lower’ respectively. The upper and lower comfort limit for
night is also found from the com fort lim it chart .This is entered against ‘night
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
15
The comfort limits have to be compared to the monthly means to establish the nature
o f thermal stress to be filled in the last two rows. If the monthly mean maximum
temperature is greater than the day comfort upper, then the thermal stress day is ‘H ’
meaning hot. If the monthly mean maximum temperature is lower than the day
comfort lower, then the thermal stress day is ‘C ’ meaning cold. If it lies between the
day comfort upper and lower, the thermal stress is O ’ meaning optimum or
comfortable.
Similarly, the thermal stress for night is established by comparing the monthly mean
minimum with the night comfort limits. These vales are filled in the last two rows
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
16
Month J F M A M J J A S O N D
Monthly mean 16 18.5 22 29 36 41 43 43 40 34 24.5 17.5
max
Day Comfort 29 29 29 31 31 34 34 34 34 31 29 29
upper
Day Comfort 23 23 23 25 25 26 26 26 26 25 23 23
lower
Monthly mean 4 5.5 9 14 20 23 25 24 21 16 10.5 5
min
Night Comfort 23 23 23 24 24 25 25 25 25 24 23 23
upper
Night Comfort 17 17 17 17 17 17 17 17 17 17 17 17
lower
Thermal Stress C C C 0 H H H H H C 0 C
Day
Thermal Stress C C C C 0 0 H 0 0 C C C
Night
To find out the design recommendations specific to a place, there are two more
tables that have to be completed. The first one is the aridity/humidity indicator chart
and the duration o f both) indicate the remedial action the designer could take. The
Mahoney method developed uses six indicators (three humidity indicators: H I, H2,
H3) and three aridity indicators (A l, A2, A3), to establish the climatic character o f
the place.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
17
This chart, like the comfort limit chart was developed by Carl Mahoney, to establish
the nature o f indictors for the given place. He established a certain combination o f
climatic characteristics that the place must have, to fall into a particular indicator
group.
Monthly
Humidity
Thermal stress Rainfall mean
Meaning Indicator group
range
Day Night
Air H 4
movement HI
H 2-3 <10°C
essential
Air
movement H2 0 4
desirable
Rain
protection H3 >200mm
necessary
Thermal
capacity A1 1-3 >10°C
necessary
Outdoor H 1-2
sleeping A2
H 0 1-2 >10°C
desirable
Protection
A3 C
from cold
The process followed to ascertain the kind o f indicators for a given place, is to check,
for each month, the thermal stress indices (day and night) from the Thermal Stress
Table, the humidity group from the Relative Humidity Table, the total rainfall from
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
18
the Rain and Wind Table and the monthly mean range o f temperatures from the
derivation chart, and place a star in the Aridity/Humidity Count Chart, against the
In the last column, the number o f months in which each indicator is applicable is
As one can see from the aridity humidity count below, Baghdad is a very hot and
arid place.
Month J F M A M J J A S o N D Totals
Humid
0
HI
H2 0
H3 0
Arid * * * * * * * * * * * * 12
A1
A2 * * * * * 5
A3 * * * * 4
The totals from the A ridity/ H um idity chart are taken and the hum idity count chart is
filled as below.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
19
HI H2 H3 A1 A2 A3
0 0 0 12 5 4
It is these indicator totals that decide the climate and hence the appropriate
Layout
Spacing
Air Movement
Openings
Walls
Roofs
Out-door Sleeping
Rain Protection
The specification items are numbered and a brief description is given in Table III.
The detailed explanations are also given separately from the tables.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
20
Mahoney gives for each o f them. These are the detailed explanations that I said is
given along with the briefing in the tables. The category which would be applicable
for a certain climatic region is found by entering the the indicator totals from the
Where the indicator total falls between values given in table III place a star (*)
against the specification item in the same line. There can only be one specification
item recommended under each o f the eight headings. It will be the first one arrived at
when scanning from left to right. In some cases, the first coincidence will select two
items. In this case, if one continues further right, the next indicator will make the
final choice.
There are two alternate building layouts, suggested by the Mahoney Tables. The
optimal arrangement differs from climate to climate. So this table helps in deciding
1. Buildings should be oriented on an east west axis, the long elevations facing north
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
21
Traditionally, the houses in hot-dry climates have less spacing between them, i.e.
they are packed close together for gaining maximum shade. It is however the exact
Building spacing has at least three options, according to the Mahoney Tables.
Space between long rows o f buildings should not be less than five times the height.
4. If wind penetration is needed only for part o f the year, the broad spacing should be
followed, but provision must be made for protection from cold or dusty hot winds.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
22
Air movement here refers to provision for ventilation within the building. Places
with different climates have different internal planning for maximum comfort, either
According to the Mahoney Tables, air movement can be influenced by three broad
planning arrangements.
6. Rooms should be single banked with windows in the north and south walls to
7. Rooms may be double banked, but the plan should allow for temporary cross
restricts planning for cross ventilation, ceiling mounted fans may be used. This
would require a room height o f not less than 2.3 m that would affect the basic built
form.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
23
8. Air movement is never essential, and is desirable for not more than a month,
rooms can be double banked and there is not much need for cross-ventilation.
Openings are very closely linked to planning for air movement within the building.
9. 'Large', between 40 and 80% o f the north and south walls. These need not be fully
glazed, but should be protected from the sun, sky glare and rain, preferably by
11. 'Medium', between 20 and 40% o f the wall area. Openings in the east wall may
be desirable when the cold season is long. In the west walls openings are acceptable
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
24
Walls, which make up most o f the envelope o f the building is a very important
element that has to be carefully considered while designing. The thickness o f walls
and the material used will determine the amount o f insulation provided. Like all
other elements different climates favor different types o f wall. As per the Mahoney
12. External walls should be light with low thermal capacity. Within this category
a) Internal walls should also be light where hot-dry conditions prevail for a short-
time only.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
25
b) Internal walls should be heavy and massive where any occurrence o f hot-dry
conditions is combined with a large annual mean range o f temperature (over 20C)
R oof is another important element in a building. Traditional houses have very light
roofs if they are located in a tropical climate. The roofs here can ‘breathe’, in
contrast to the roofs that are thick and well insulated, which are mostly used in
places with extreme climates. The Mahoney recommendations distinguish two basic
types o f roofs.
14. A light but well insulated roof with low thermal capacity
15. A heavy roof with substantial thermal capacity, giving a time -lag o f at least 8
hours
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
26
Light insulated
0-5 14 roofs
Heavy roofs,
6-12 * 15 over 8 hrs time
lag
has to be given to this aspect depending upon the climate o f the chosen place.
According to the Mahoney Tables, provision for outdoor sleeping is either required
or not; if so:
exposed to the coldest part o f the night sky (the zenith) to increase heat loss by
outgoing radiation
Outdoor sleeping
2-12 * 16
required
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
27
the rain protection table plays a very important part in the Mahoney Tables. The
17. Special protective measures are needed if rain is frequent and heavy- such as
The rain protection table concludes Mahoney Tables III. After this we move on to
Mahoney Tables IV, which gives recommendations for the design o f building
elements.
2.1.5 Table IV
M ahoney Tables IV is an extension o f the Table III, in which each item is further
expanded. Each category in Table IV is filled just like Table III. Where the indicator
total falls between the values given below it, (in the same column) a star is placed
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
28
Items relating to the same features are mutually exclusive - there can be only one
item recommended under four o f the six features (the exceptions being protection o f
Should there be any discrepancy between recommendations o f Table III and IV; the
Like Table III, Table IV is also filled according to the indicator total derived. E.g. If
windows, open atria etc. There are 5 different sub categories for openings.
1. Those that are large, covering 40 to 80% o f wall area. This is applicable when
thermal storage is needed for not more than one month. (A l) and when there is no
2. Medium openings, covering about 20 to 40% o f wall area. This is applicable when
thermal storage is not neeeded for more than one month and there is a cool season. -
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
29
3. Small openings, covering about 15 -25% o f wall area. This is applicable when
4. very small openings, i.e. 10-20% o f wall area, applicable when thermal storage is
needed all year round (11 -12 months) and the cool season is not more than 3
months.
5. Medium size openings are also recommended when thermal storage is required
throughout the year and sun penetration is desirable during a cool season o f more
than 4 months.
0 1 Large: 40-80%
0,1
1-12 Medium: 25-40%
2
2-5
6-10 3 Small: 15-25%
From this table, it can be noted that for Baghdad, the optimum size o f openings in
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
30
considered while designing a climate friendly house. We know that, in hot humid
climates, it is optimal to have about 40-80 % openings. However if all the openings
were placed against the in total disregard o f the prevailing winds, comfort cannot be
achieved, and the openings will be in vain. So care must be taken not only about the
There are two kinds o f positions that openings can placed in, as per the Mahoney
recommendations.
6. When air movement (H I) is essential for three months or more, or for a lesser
period, but thermal storage is needed for less than half a year (A l) the openings
north and south orientation, but in this case the wind direction may take precedence
7. W hen air movement is essential for 1 or two months only and thermal storage is
needed for more than 6 months- or when air flow is not essential, only desirable for 2
months or more (H2), the rooms may be double banked, with the internal walls
having adequate openings. In this case the optimum solar orientation (north and
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
31
Openings, especially if plentiful, must be well protected against the harsh glare o f the
sun or the dusty wind or the pouring rain. The Mahoney Table recommends
14. Complete exclusion o f solar radiation through out the year is recommended,
when there is no cool season, or when it lasts not more than 2 months. If there is a
longer cool season, shading should be done such that sun is admitted during this cool
period.
15. Protection o f openings from rain penetration will be necessary when a rainfall
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
32
The climate o f a place pretty much dictates the kind o f walls and floors o f a
vernacular house. So it becomes important for the Mahoney Tables to classify the
given place accurately so that it is easy to recommend the kind o f wall and flooring
for a house in that climate. According to the Mahoney Tables, there can be two kinds
of walls and floor. One is light with low thermal capacity and the other is heavy with
10. When thermal storage (A l) is required for 2 months or less, a light weight fabric
is recommended. This may be provided by hollow blocks or bricks, with more than
40% void, by a thin solid wall, e.g. 50mm dense concrete, or by sheeted walls
enclosing a cavity (the latter may harbor insects and vermin). Outside surfaces must
be reflective.
11. When thermal storage is required for more than 2 months, a heavy fabric is
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
33
2.1.5.5 Roofs
As per the Mahoney recommendations, there could be three types o f roof. Light roof-
type with reflective surface, light and well insulated roof and heavy roof-type with
requirement is less than 2 months, a light roof must be used. Its time lag should
never exceed 3 hours. It should have a reflective surface and good insulation. A
Light reflective
10- 0-2 12
surface, cavity
12 Light, well insulated
3-12
13
0-5
0,9 * Heavy, over 8 hr time
6-12 14
lag
The Mahoney Tables specify two external features. One is to provide space for
outdoor sleeping, and the other is to provide adequate drainage for rainwater.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
34
When indicator A2 is one or more, space for out-door sleeping, has to be provided.
More often this will be on the roof, in which case the roof finish should be selected
With heavy rainfall (H3) occurring even in one month of the year, special provisions
for roof drainage will be necessary. Stagnant pools must be avoided, (e.g. level
gutters) as these will provide breeding grounds for mosquitoes. In low cost building
spouts at roof level or eaves discharge is acceptable if foot o f the wall is surrounded
by concrete path or apron 0.5 m wide, sloping away from the building.
2.1.6 Summary
The Mahoney Tables should be considered as an aid to sketch design, but not a
mechanically used substitute for thinking. In Table I the dominant features o f the
climate and their duration have been recorded in a simplified form. In Table II the
nature o f the thermal stress has been diagnosed and the duration o f the need for
certain thermal controls has been expressed by the indicators. In Table III these
These could be taken as broad and basic design decisions or only as specifications of
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
35
the required performance. In any case they are to be used as constraints (or aids,
fixed points or starting points) together with many factors other than climatic, in
The method is quick, broad and sketchy. It contains compromises. There will be
instances or periods when the design thus formulated will be less than perfect. This
does not invalidate the method; it just means that climatic design does not end with
There are also some potential problems with this system. That is the Tables do not
and temperate climatic zones. The Tables also do not take into consideration the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
36
I created a program to simplify the process o f acquiring the relevant climatic data o f
a place, and filling it all into the tables, calculating and interpreting the results. This
is called the Mahoney Tables Program. A person using the program would only have
to click on a place in the given map, and the design recommendations for that place
would pop up. If any place is not on the map, one could go and collect the climatic
data and manually fill the tables given in the program, which would save it in the
The Mahoney Plus program is made in Visual Basic. I have chosen this language for
a number o f reasons.
development environment.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
37
views for the management o f the program structure in the large and the
Instead o f manually finding the weather data and filling it in the table, Prof.Milne
came up with a suggestion that if the software could read the weather data off the
World Wide Web it would be much easier for the user. So the program can read
EPW (Energy Plus Weather data) files from the internet. If the place is not in the
given map, then all one would have to do is to click the button saying “other places”,
which would direct them to a web-site that has the climatic data o f most o f the places
in the world. One can then select the place they want, and the climatic information
Weather data for more than 550 locations are now available in EnergyPlus weather
format — more than 275 locations in the USA, 55 locations in Canada, and 230 other
locations throughout the world. This data is very reliable as all the energy programs
use these data for their simulation. If the data is not available on the internet one
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
38
climatic conditions relative to the building models. For most o f the recent energy
simulation programs, the need for more exhaustive weather data has resulted in the
development a new generalized weather data format for use with two major
simulation programs— ESP-r and Energy Plus (Crawley et al. 1999). All the data are
on the data available within the TMY2 weather format but has been rearranged to
facilitate visual inspection o f the data. “The TMY2 data are a strict, position-specific
format— filling missing data with nines and zero values with zeroes. The new
weather data format contains commas to facilitate data reading and analysis with
The weather data for Energy Plus is a text-based format derived from the Typical
sums up all the climatic information. The selection o f typical weather conditions for
and has led various investigators either to run long periods o f observational data or to
select a particular year, which appears to be typical from several years o f data. This
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
39
From these data, only the location, latitude, longitude, altitude, Dry Bulb
Temperature, relative humidity and the precipitation, is extracted and added to the
database. From this the mean maximum and minimum temperature, mean maximum
relative humidity a.m and mean minimum relative humidity p.m, the total
precipitation is calculated and added to the original database schema. Then the
However the Mahoney Tables give the same recommendations for a particular type
consideration many other factors that could influence the type o f building in that
place. To study this, I have considered two distinct building types within the hot-
humid climatic zone. One is the courtyard type o f houses and the other is the house
built on stilts.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
40
I observed that there are many instances where traditional houses do not match the
recommendations o f the Mahoney Tables. I wanted to find out what causes this
study this. There are many places in the world which has similar type o f climates.
Mahoney recommendations for these places are very similar too. However the house
forms in these places are very different from each other. This could be due to
difference in culture o f these places. One solid example is the courtyard type o f
house and the houses built on stilts both found in warm -hum id climatic zones.
To study this further, four different regions were chosen; South-East China,
Malaysia, Indonesia and South India. These places were chosen because all the four
regions have very similar type o f climate. When I input the climatic values for these
four locations in the Mahoney Tables, the design recommendations or all the four
places were same. However in reality, the types o f houses in the locations are very
different. China and Kerala have courtyard type o f houses while Malaysia and
Indonesia has houses built on stilts. Even within the courtyard types there were
houses. The M ahoney Tables do not about houses built on stilts. The comparison
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
41
between all the four types o f houses is given in a tabular form in the comparison
tables, in chapter 5.
4.1 China
Fig. 1. Map o f Asia1
M a .lt A*-
w jiiig 600 M
"iSoKm
A sia
AU9.
[ | Tropical w a t I I Humid subtropical
[ ' • ' Tr opi cal w e t a n d d r y I \ Humid con tin en tal
l"': ' I S e m ia rld Subarctic*
) D ese rt I . . ID Tundra
| Su b trop ical d r y su m m e r W M W \ Highland
Mild winters, early spring and hot summers, and 8 to 12 months growing season.
Abundant rainfall, ranging upwards from 800mm (30”) to more than 80” along the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
42
2
Fig. 2. Climate Graph, Haikou
K12 H aikou
E
E, 200+ 30 D
c 160 (T>
o 20 IQ
“1
120 a>
10 n>
80 V)
0 O
o<D 40 4- -10
0
J FMAMJ J ASOND
Bars depict normal precipitation;
line depicts normal temperatures
The house forms in southern and South-Eastern part o f China is very distinctly
2
Climate Graph, Haiko\i-http://w w w .usda.gov/oce/w aob/jaw f/profiles/graphs/clim ate/kl2.htm l
3
Vernacular Housing, China- www.billhocker.com /china5
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
4.1.2 Layout
These houses are constructed, keeping in mind the hot-humid and rainy climate that
is so typical o f the region. The buildings or the building blocks are generally oriented
on an east-west axis. Although the houses may have a courtyard or could have any
shape that accommodates a common open space, the long axis generally faces north-
south. The existence o f a courtyard depends entirely upon the affluence o f the
family. Also unlike their northern counterparts, the courtyards are very small. They
look like wells from the roof, hence rightly known as skywells rather than
courtyards. Due to the narrow opening, hardly any sunlight enters the interior,
keeping it cool.
The main objective o f the sky well is to flush-out the heat from the interior o f the
building, based on the fact that hot air rises up from the bottom o f the courtyard,
creating a low pressure zone. This sucks in air from the interiors, which in turn
receive cool breezes from outside. Thus a constant air circulation is maintained.
Deep eaves provide sunshade to the interiors. During the rainy season, the courtyards
The rooms are very widely spaced. This ensures a free flow o f air inside. This is very
typical o f most traditional houses in the warm-humid climate. Most activities take
place outside the rooms, in courtyards or other open spaces like verandahs. This
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
44
4.1.5 Openings
Houses o f northeastern Fujian have deep overhang o f the eave, and exposed timber
frame. These eaves provide shade from sunlight and wind driven rain. Verandahs are
largely found in southern china. They serve as covered corridors and also as a buffer
between interior living space and outside working space. They also screen interior
pace from the sun and keep out the wind-blown rain from entering the living space.
Detachable lattice windows give definition to space. These windows are also usually
made o f wood...and the lattice lets in cool air from the outside without letting the
sunlight. One notable feature o f the Chinese house is that the windows facing outside
are very small. However the ones facing the courtyard are comparatively larger. This
is because this part o f China has had a history o f wars. The women therefore usually
stay inside the houses and don’t like to be seen from the outside. They are the people
who utilize the courtyards to the maximum. This introverted nature has led to
designing o f smaller windows that face outside. The traditional courtyard developed
from the Hakkas, where, the courtyard serves a larger community. In both types, a
community is created in which people know each other. Hakka is found principally
in the southwestern Fujian and adjacent areas o f Guangdong and Jinagxi. The Hakka
is a fort-like structure, where very large families lived. It had a single point entry that
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
45
made the building safe. The Hakka courtyard also served as public meeting place. In
both cases, the geometry o f the courtyard creates a high level o f security. It is thus
difficult for strangers to enter the building, as their chances o f being recognized are
very high.
4.1.6 Materials
Houses built along the arable coastal line are o f timber frame construction with
4.1.7 Roofs
Black tile roof features turned up eaves in a swallow tail profile. Traditional style
roofs are flush with gable end walls with no over hang to prevent uplift in the high
winds o f the monsoon season. Black is most definitely not the color that helps keep
out heat...however the black alluvial soil o f the place makes that tile indigenous to
that culture. Thus the heavy roof and the heavy claddings o f the wall, keeps the
stmcture sturdy.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
46
4.2 Malaysia
Fig. 4. Map o f Malaysia4
warm humid conditions. The average air temperature ranges from 70 to 90° F. The
levels reach more than 80%, especially during the hot season. Solar radiation is
strong and often causes sky glare. The wind speed is generally low. They however
become high during the monsoon season, during which there is more than 100 in.
rainfall.
4
Malaysia Map - w w w .w m ich .ed u /../im a g e s/m alaysia.m ap.jpg
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
47
Penang
v iltu* *> r
75 72
The Malaysian house is designed to suit their warm-humid climate. These wooden
houses are built on stilts. This indigenous houseform has been perfected over many
years. The main reason for these houses to be built on stilts is that, plant cover
creates a steeper wind gradient, as compared to open surfaces. Hence plants restrict
air movement around them. If the houses are built on stilts, the windows and other
openings would face open air and hence could get more flow o f breeze. Their life
style also blends in with the type o f their houses. E.g. Using one space for many
purposes. Like the Chinese houses, Malaysian houses also favor the addition system
wherein the house can be extended to accommodate a growing family. There are lots
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
48
The most common houseform is the one characterised by a long gable roof, and it is
also the oldest in Malaysia. Many have survived for more than a century. Malaysian
houses unlike the traditional Chinese and Indian houses, are oriented towards Mecca,
for Religious reasons. The shape o f the roof coupled with the plentiful windows,
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
49
J
Fig. 7. Climatic Design, M alay House
Diagram 2
4.2.3 Spacing
The traditional Malay house has an open interior, which is open and spacious. Since
the spaces are not defined, they are multifunctional. For E.g. during summers, the
open space is used as a bedroom for all the male members o f the family, instead o f
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
50
common space for get together, preparation o f meals, like cutting vegetables etc.
o
Fig. 8. Common Floor Plans, Malay House
TwoCommonFloorPlans
Bed
room
Front
Porch
randomly spaced, without them being too near each other, to promote air flow. This
is because if the houses are spaces evenly next to each other, those in the down-wind
side would not get any breeze at all. The minimal interior partitions also help in
g
Climatic D esign, M alay House- academ ics.hamilton.edu/.../d ra y b ec k /Illustrations.htm l
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
4.2.5 Type of Openings in the House
Since the best way to keep the house well ventilated is to have plentiful doors and
However these large openings also need to be protected against incoming sunlight,
heat, and also glare. Shading o f all vertical surfaces, even the walls have proved to
be beneficial. This is the reason why the roof is so large and also extends well
beyond the wall, as broad overhanging eaves, providing adequate shading to the
walls and windows. This also considerably reduces the sunlight entering the house
The materials used are mainly the locally available bamboo and wood. The walls and
roofs are made from thatched grass. These materials have very low thermal capacity.
4.2.7 Roofs
The roof as mentioned earlier is the most important element o f the house that
controls the solar heat gain. The roof is triangular shaped and has space for
ventilation. Thus the roof also is well cross ventilated. However one o f the problems
faced by the low overhang o f the roofs is that since very little sunshine is let in the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
52
interiors remain a little dark. Most other roof forms are foreign influenced. One
major similarity is the fact that all these roofs are easy to build.
4.2.8 Culture
Culture most certainly influences the Malay houseforms. The east-west orientation is
ensured by insisting that the house face Mecca. There is no rigid layout pattern
between the houses inside a compound. This totally depends o f the lifestyle o f the
people. The site, just like in India is selected by observation and rituals. The houses
are spaced far apart from each other, not only for privacy but also for future
expansion. This is one reason for the good flow o f air in and around the building.
9
Traditional M alay R o o f Form-w w w .badanw arisan.org. m y/projects/
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
53
4.3 Indonesia
Fig. 10. Indonesia M ap10
^ P h ilip p in e s
Nam
,
Jakarta
p i i P l
tr A u stra lia
most o f the regions. Some highland areas are cooler and drier.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
54
I
I
Huir.-dity m
Indonesia also lies in the tropical hot humid equatorial type o f climate. In fact
Indonesia is one o f the countries that the equator passes through. This obviously
means very hot climate and very heavy rainfalls, heavy cloud cover and glare.
Indonesian houses, like its Malaysian counterpart is also built on stilts. The houses
Different tribes o f Indonesia have different basic house forms, as per their tradition
and culture. However the most predominant form is the Dayak long house.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
55
12
Fig. 12. Rice store - Minangkabau architecture
These houses are rectangular in shape with a long axis. These houses too are oriented
east-west. These houses are very decorative, unlike Malaysian houses. The houses
have a spacious interior and they can be used for various purposes. The Indonesian
village is centered more around the society than the individual. This trend is however
changing and more and more houses are built in the ground as opposed to being built
on silts.
4.3.3 Spacing
The traditional houses o f Indonesia do not have any interior partitions. It is one large
hall used for multiple purposes. These interiors are partitioned as and when
12
Rice store - M inangkabau architecture, Pagaruyung near Bukit Tinggi, Sumatra-
http://m em bers, tripod. com /Yves Vanderbeken
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
56
necessary using cloth. This is on o f the best means o f keeping the interiors well-
Since there is only one single hall, the room or rooms are single banked, thus
allowing ample ventilation. The walls are made o f wooden panels and they have
small spaces between them, through which air flows. There are carvings in the
ceilings that accelerate the flow o f air. The floors are also made o f wooden panels
with gaps.
4.3.5 Openings
The openings are very small and insignificant as compared to Malaysian houses.
Very small windows on all the sides admit light to the interior. This is to avoid
incoming solar radiation. However this little light does not affect the occupants as
they use the house mainly for sleeping at night only. Air movement is facilitated
because o f the building materials. There are also special holes in the roofs that can
serve as windows.
4.3.6 Materials
The chief building materials are locally available wood, bamboo and timber. The
roof and thatch is made o f the famous alang-alang grass, which is known to survive
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
57
4.3.7 Roofs
The roofs are steeply inclined to ward off the copious rainwater during the
monsoons. They are also decorated and carved intricately as per their culture and
tradition. Different tribes have different symbols representing their roof form. Thus
the roof forms are distinctly different from that o f the Malaysians.
4.3.8 Culture
The ornaments put onto the external walls o f the house are meant to drive away evil
influences. This is the main difference between the Malaysian and Indonesian
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
58
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
59
fp w tm m r n r tff
hf&
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
60
Kerala was the fourth place I chose. It is a state in India with climatic characteristics
very similar to that o f the Fujian and the Guangdong provinces in China. Just like in
the Eastern Ghats. There is a narrow coastal strip on the west and a wider one on the
east. The west coast experiences heavy rainfall in summer (up to 40”) and the east
coast has a third o f this amount, but very high humidity and very hot summers.
4.4.1 Layout
Topography in Kerala favors a linear and scattered housing pattern along backwaters
which are the traditional rules and regulations for building houses that has evolved
over many years. The main architect decides if the plot is auspicious or not
depending on its shape, orientation etc. After that the building is built. The houses
are very light and the basic plan is rectangular. Houses on an average are one or two
roomed with additional spaces like a verandah, courtyard, cooking and a storage
shed, the plot area depending on land availability. Larger houses are occupied my
higher income groups and joint families e.g. Nairs o f Kerala present an overview o f
rural house types in Kerala. The rich use teak and redwood and other types o f timber,
while the poor use bamboo and matted coconut leaves, for their building. This
provides maximum cross ventilation. The roof slopes towards the side and provides
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
61
shade to both the verandah and also the courtyards. The concept is courtyard is also
more prevalent among the rich. Very large poor families also have courtyard type
houses, wherein the place is used for family gatherings and other festivals.
Tachhushastram also dictates that a house be oriented east-west and that the main
The central courtyard is the focal point o f the house with the main room located in
the w est w ing. Room s in the northern side are used for cooking and southern for
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
62
passengers, used to live in a traditional house boat. Most o f the body is covered by a
high rounded roof o f woven coconut fronds. However these type o f houses has now
become obsolete, and now-a-days such boats are used for promoting tourism.
4.4.2 Spacing
Rooms are widely spaced and have openings facing the courtyard for maximum
ventilation. In houses where there are no courtyards, the windows open towards the
verandah. There is adequate provision for cross ventilation. Many houses have
wooden louvered windows to keep off the rain but to let in sunshine and the breeze.
Courtyards are utilized both in summers and in the rains. In summers they are used
to dry food items, fish etc, and while in rains they are used to collect rain water,
Rooms are usually single banked. These are the best ventilated houses. However
some new houses are double banked to accommodate more rooms. Mostly these are
addendums made to the old single banked houses, to accommodate the growing
needs o f the family. Unlike the Malaysian or the Chinese houses, wherein there is
already provision for expanding the house, the traditional Kerala house does not have
such features.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
63
4.4.4 Openings
Openings are large and plentiful. This is to let in cooling breeze from outside.
W ooden windows guard the openings. Verandahs are deep and act as a buffer to the
rooms in the building and also the courtyard at the center. One disadvantage the deep
verandahs have is that it reduces the amount o f sunlight entering the building.
However, most o f the people, work outside. There is no concept o f staying indoors
unless a person is sick. Both men and women work outside in the fields.
4.4.5 Roofs
Typical houses have steep pyramidal roofs o f thatch or tiles that deal with torrential
downpour. They have a curved ridge from which rafters radiate at both end and
gables projecting over a hipped section. The roofs slope in to a courtyard, protecting
a verandah from rain and sun. This roof is supported at each, comer by a pillar. The
external slope descends low over the outer walls covering another verandah at the
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
64
4.4.6 M aterials
While traditional housing in rural areas used local materials like thatch mud and
bamboo, urban areas, brick, stone and tiles are common. The most widespread
building materials are laterite cut into ashlars blocks, timber, particularly teak,
coconut and jackwood; and burnt bricks. Most roofs are made o f tile or thatch, made
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
65
This chapter shows an overview o f the Mahoney recommendation for a hot and
humid climate, which is typical o f the four places that were chosen before, namely,
Spacing: If wind penetration is needed for only a part o f the year, item 3 is
applicable; however adequate provision must be made for protection from cold and
dusty winds.
Air Movement: Rooms should be single banked with windows in the north and
Openings: Openings should be large, between 40-80% o f the north and south walls.
These need not be fully glazed, but should be protected from the sun, sky-glare and
Openings should be large, 40% to 80% o f wall area. Applicable when thermal
storage is needed for not more than 1 month, and where there is no cold season.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
66
When air movement is essential for 3 months or more, or for a lesser period, but
thermal storage is needed for less than half a year, the openings should be positioned
but in this case the wind direction may take precedence over solar orientation.
there is no cool season or it lasts not more than 2 months. If there is longer cool
season, the shading period should be determined. The sun should be admitted during
a) Internal walls should also be light where hot-dry conditions prevail for a short
time only.
recommended. This may be provided by hollow blocks or bricks with more than
40% void, by a thin solid wall, e.g.50mm dense concrete or by sheeted walls
enclosing a cavity (the latter may harbor insects and vermin). Outside surfaces
should be reflective.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
67
Roof: Light but well insulated roof with low thermal capacityWith a similar air
with an air movement requirement for less than 9 months, and thermal storage is
nee' 25. China ad India Comparison Table continued... ^ its insulation is even
more important. An overall U-value not exceeding 0.8 W/m2 is recommended. This
cavity and a ceiling incorporating at least 25mm insulation and a reflective top.
Rain Protection: Protection from heavy rain is not required in this area.
climate. The chart also compares the differences between courtyard houses in
different regions, and the differences between the houses on stilts in different
regions.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
68
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
69
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
70
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
71
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
72
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
73
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
74
Culture Culture:
This most The ornaments
certainly put onto the
influences the external walls o f
Malay the house are
houseforms. meant to drive
The east-west away evil
orientation is influences.
ensured by These ornaments
insisting that consist o f
the house face anthropomorphic
Mecca. There and zoomorphic
is no rigid representations,
layout pattern carved
between the decorative
houses inside a ornaments, and
compound. wall paintings.
This totally This explains the
depends o f the richly decorated
lifestyle o f the walls.
people. The
site, just like
in India is
selected by
observation
and rituals.
The houses are
spaced far
apart from
each other, not
only for
privacy but
also for future
expansion.
This is one
reason for the
good flow o f
air in and
around the
building______
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
75
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
76
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
77
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
78
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
79
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
80
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
81
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
82
Culture Culture:
Culture most The ornaments
certainly put onto the
influences the external walls o f
Malay the house are
houseforms. meant to drive
The east-west away evil
orientation is influences.
ensured by These ornaments
insisting that consist o f
the house face anthropomorphic
Mecca. There and zoomorphic
is no rigid representations,
layout pattern carved
between the decorative
houses inside a ornaments, and
compound. wall paintings.
This totally This explains the
depends o f the richly decorated
lifestyle o f the walls..
people. The
site, just like
in India is
selected by
observation
and rituals.
The houses are
spaced far
apart from
each other, not
only for
privacy but
also for future
expansion.
This is one
reason for the
good flow o f
air in and
around the
building.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
83
This ends the comparison between the different types o f house types in similar kind
o f climate. In the next chapter we will take a look at the actual computer program
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
84
This chapter gives an overview o f the Mahoney PLUS software and how it works.
http://www-scf.usc.edu/~saradach/Thesis/ThesisSoftware.htm.
One can download the software from this site. Once the program is downloaded,
click on the MT+ .exe file. A splash screen would show up after which the
— i
■ I
■ ■ ■
■
H H H I
lilillliilillllli
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
85
After this screen automatically disappears, screen as in fig 21(a) will appear. This is
the first page o f the application. This page gives a brief description about the
Mahoney Tables and then gives the options for cities in the US. Click on "For some
Continued...
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
86
A
Menu
Exit Application
This would open a page like the one below Fig: 22. You could click on any o f the
places in the map and a report for that place would be generated. The button at the
bottom o f the page, would take you back to the previous page as shown in fig: 21.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
87
. v ■'J j
Uf-ixv^^is 'j:; j:'r::^ r:^^»T-..'••'•;,.>
i r • * ► « ► . • ;
.J ^ f
^ -1^ *V N .*<»•>*«<»*** \ 4,.,
. . . -. **£*" !
If the city you want the recommendations for is not in the map, then you have to
click on ‘For other places outside U S’ button. A warning sign pops up saying that
you should remember to have all the relevant data. And then the page is loaded, that
would look like fig: 21(c). Once you reach here, there are two options.
1. You could collect the data and manually fill it in the data against temperature,
2. You could go to the button on top menu bar saying web tools and click on
‘pick data from the w eb’ button. This is explained in section 5.2
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
88
place like the mean maximum temperature, mean minimum temperature, relative
humidity and precipitation. Once this data is acquired, you can fill in the form as in
fig: 23
WfcTwfc KtfP
LSMMitsS!*!»:*!» I"
IT
r«bu«yS8iii:"SL liiil M
spi -as.*l l « » i iiiiipfiSeplwtvO
dofw p
III
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
89
Once the form is filled, you can click on ‘A dd’ to add the data t your database and
then click on ‘update’. This would update your database with the new set o f data you
just input. Once this is done, you can retrieve the data anytime you want. After this
you can click on ‘Generate Report’ button at the lower right hand comer o f the
screen and the report is generated. The report generation pages are shown in fig: 27,
6.2 Web-Tools
This is the second option that was mentioned you had, if a particular place is not in
the map or is outside the US. You can go to Web-Tools, Pick Data from Web
R elevan t Informc
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
90
G t E n & fg y fitu s
Weather Data
Fzstmrdatator tiw>$%§4 hnsx wewsfhius
^ d t b e r f s-rm sl - tr w & * h m V f b s y s t ^ y s sf> th e - U S A , *-fj i ^ y a S ^ n s in
Cd^d-d^, dfnl X3»3 ?SS^g'dSthrt^hstsd?.hdift'vffel.
WiMltSSM&>8i-S
£
ksy
<byEmttti
Vmk$
* US.MH-mUM
S9,Ll-&
&$&*&
n£
Wealhar Dat**Funna!. Os^htllsuo
T h* a * ? * i V v m r ^ P U f i >$. * u n - z u z t U n r M *h$
Typical v«3> (?m?;*Ktyitw'h-irmat.
* Ddt-x —<3 4m<>r^Aim«f tUs-
e ?i n 1
H * <•>v < N < * .« * * . *
* "•■•■ *bou* ? M t c n s r ^ T ^
* Ausniwr ■
”- >?& ^oov^-'SisSn,
-■ywi'-F- h*;w. m;4tMmr CBiyO-SiSi)
You can browse within this link, and click on any EPW file and the program reads
the data from the web. This page would look like fig: 26
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
91
F TSBT G «1«
One the data is read, you could click on ‘Add to database button’. The program
would read the EPW format and filter out all the irrelevant data and add the required
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
92
.= - *1
.
i j j p l l f i i i i p i s - y M .
*****
ehiDsi^e£>Dtt&wCer^dde
T h u i j i ^ i %t»u «• h i i l f ^ i *•»■ * H 1H 21 f c l^ * i i k O i i t U l v i i n M i i i«i>i x \ n% - \ ili«< 1 2 l i m i i i l i s i p * . i » hilluw%
-I II " " it « 14 T, 21 2 - - I S 2 2 2n ‘>4 2 : \ S I a 'i " ,<>4
I V l U l H ’l l t l U f * 111 t l * * i ; i ‘M» i •‘ l l l l j i l . M i l 1 *l l l o l l t l t E V Hit *.I ll U U J l ! I l l »'l I h r 1 2 l l i n S l t l l ' . , l l •* ,\'i J i i l l o V . \
iiv - o '\- 4 i i ° * n i : « i* v , «»- \ 11 M r , . : : .1
Htnmety*•*
t f n i i t n h i v iii |n * j f »-ii1 ii!»*« w« i ii u i i ii r l i l \ h:*- i n m i \ iim ■»% **i ili»* 11 h u m t h 't u i* .i% IhIIcjv. •;
"8 * " *ti. " 2. *4i. m'>, ?5 8i» 8" 8i» 82 811
ll'uruili^* 111|ic ji ^iinj;o«al«i iiAi>irlilv m^-m irt i.\ 1*1111 ovci rit*« 12 lutiiiMic .110 .»« Inlioivc
{, 4 *4 4 " *2 ‘".1 « 58 nil a s 1,^
The first page o f the report gives all the weather data manually inputted or extracted
from the EPW files. Then you should click on ‘Next Page o f report’. This would take
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
Fig. 28. Mahoney Table R eport Page-2
I t l l f l »'*, I I 'I I *1 I III I M l*t*| * | i t V ill * » f |l u ' l l l i t IM ‘ 1 I • llx i a ' i i i j v . i H . % i||.< l • ! , ' » «| f j | . M i n i • i j i i . |l% *'l> M i'i i l l i i i * ' 11 ^ i 'i %l
M M M M ................ I..
You can click on the detail buttons to view details about different category. E.g.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
Fig. 29. Categories Explained
Opsnmgs BelatedOetafe
W h e n a ir m o v e m e n t i s e s s e n tia l f o r 1 o r 2 m o n th s o n ly a n d m , .
‘ I' .' .' S.
t h e r m a l s t o r a g e is n e e d e d f o r m o r e t h a n 6 m o n th s o r w h e n a ir
tl -.v u i - c . - . I ' j - i - i r,;-•:
i ■■' ii..? i n - " 1 -1 ' i I' ' '! vvi-i. -ii" \ v . i l . - ,t .<■ n -.l-
r . ' n ‘ li f - : n - t l r . ; t m r . i , ' n . ' - n ! and OetoiseoOwwnjs
: . ’ -th= :1-1 U lr t - l ■ - - .■ ■ i. f- ■; v.-.:i .
■\ 1115 .1 n u n - J.15 i l l 11
D c to lr o n R o o f
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
95
C**w.
ppl
iliis&i
. k i j I M ilk'* ] i j . . . ll
__
■M M
You can close the detail and the image boxes by clicking the ‘close button’. I have
laHMBidbWwlidM
j 4»*-b? r '.*?iik t« 4-:lx■.:r liMi
m«f*Jttu*x2i2aUlla£Mi&d»& .. . ~*
...........
Tools D atab ase W eb Tools Help
R elevant Information
About Box
You can go to the top menu and click on ‘Help’, and then ‘Instructions to use various
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
96
^jWSMIMlIjjM
?v*& t'^oK^UK
' # ■v - 4^1 '£*•>’ £
■ O H B M H *»«««» q
The help page looks like fig: 20(1). On the left bar there are links to various
With this I believe that this Mahoney Tables + Program will be very useful to both
students and architects alike. In the next chapter I will conclude this thesis with a
summary o f what I have learnt and the future work that can be done to make this
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
97
7. CONCLUSIONS
The computer version o f the Mahoney Tables was tested by some MBS students and
friends. The program can be very helpful to students because the meteorological data
o f a place can be downloaded from the internet. Even if the data is entered manually,
it can be saved in the internal database for future use. Mahoney Plus program exactly
reflects Mr. M ahoney’s recommendations for the given climate. According to the
program, two places in a similar type o f climate have the same recommendations.
However in reality, two different places with the same kind o f climate could have
totally different building types. This issue is not addressed by Mr. Mahoney, and I
have not addressed it in the program either. I have however studied the reasons for
studying warm-humid climate because I come from such an environment m yself and
I have taken two examples from hot and humid regions o f the world, and compared
their house forms. One set is South East China and Kerala, with their courtyard type
houses and the other set is Malaysia and Indonesia with their houses built on stilts.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
98
Courtyard type houses in Kerala developed mainly due to economic reasons.. .the
richer the family, the bigger the house and hence a courtyard. The windows are big
and open towards the outside. However, the houses in China were developed due to
political reasons. Here, the courtyard type o f house is closed and with blank outer
walls, it is very introvert, and seems to protect the inhabitants from the outside
world.
The main difference between M alay and Indonesian houses is that a M alay house is
more society oriented. An Indonesian house is more personal. People stay indoors,
after work. The orientation o f the Malay house is based on religion, which says that
the house should be oriented in the direction o f the Mecca. So the house is generally
oriented in the east-west direction i.e. the long axis faces east-west. The houses are
spaced far apart for future expansion which allows ample air circulation. Indonesian
houses on the other hand has mixed religions and the houses are oriented towards
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
99
8. FUTURE WORK
Although the Mahoney plus software runs well, there are some drawbacks to the
program. The program could be improved in various areas, like testing it in various
platforms and making it compatible with them, the program interface and further
now it is equipped to run only on Windows 2000/XP versions. I have also not tested
the program using Netscape as the internet browser. It runs well when internet
explorer is the default browser. The program could be made into an online tool
where one would not have to download the program into the personal computer. It
The program also has only an option o f using temperature in degree Celsius. It would
The program should have an option o f extracting EPW files from the host computer
if someone has saved it there, and be able to use it to calculate the recommendations.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
100
Besides this it could be programmed to read not just EPW files but other formats as
well like TMY. The EPW files are currently available mainly for only US cities and
some other important places o f the world. Modifying the program to accept other
Right now the program best works for hot and humid climates and continental type
o f climates only. If one could incorporate the recommendations for very cold parts o f
the world, for e.g. add chill factor into account, it would be the best and would
make the user interface better. More pictures could be added. Sections and 3-D
details o f the recommendations would make the program clearer. Expanding on the
point I just made, the program would be just grand if it could show a 3D model o f
how the basic built form would look like for a particular place that is input and also
The Mahoney tables are designed mainly for a houses/ residential buildings. It could
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
101
9. BIBILIOGRAPHY
Balwant Singh Saini., c l 980, Building in hot dry climates, Chichester [Eng.] ; New
York : J. Wiley
Blaser, Werner., 1924, c l 995, Courtyard house in China : tradition and present
B a se l; Boston : Birkhauser
Schaewen, Deidi von, 1941, Indian style: landscapes, houses, interiors, details. Koln:
London: Taschen, c2001.
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
102
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
103
10. APPENDICES
O p tio n E x p lic it
P u b lic d ire c tio n A s In te g e r
P riv a te S u b c m d _ p la c e s _ in _ U S _ C lic k ()
d ire c tio n = 0
F r m _ p la c e s _ U S .V is ib le = T r u e
f r m _ p la c e s _ n o t_ U S .V is ib le = F a ls e
f r m m a in .V is ib le = F a ls e
E nd Sub
P riv a te S u b c m d _ p la c e s _ n o t_ U S _ C lic k ()
d ire c tio n = 1
f r m m a i n .V i s i b l e = F a ls e
M s g B o x " P l e a s e r e m e m b e r to h a v e a ll t h e r e l e v a n t d a t a !" , v b l n f o r m a t i o n , " I m p o r t a n t I n f o r m a t i o n "
f r m _ p la c e s _ n o t_ U S .V is ib le = T r u e
F rm _ p la c e s _ U S . V is ib le = F a ls e
E nd Sub
P riv a te S u b F o r m _ L o a d ()
f r m _ m a in .V is ib le = T r u e
F r m _ p la c e s _ U S .V is ib le = F a ls e
f r m _ p la c e s _ n o t_ U S .V is ib le = F a ls e
E nd Sub
O p tio n E x p lic it
P riv a te S u b c m d _ b a c k _ C lic k ()
F r m _ p la c e s _ U S .V is ib le = F a ls e
f r m m a in .V is ib le = T ru e
f r m _ p la c e s _ n o t_ U S .V is ib le = F a ls e
E nd Sub
P r iv a te S u b F o r m _ U n lo a d ( C a n c e l A s In te g e r)
E x itP ro g r a m
E nd Sub
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
104
P r iv a te S u b I m a g e l_ M o u s e D o w n ( B u tto n A s In te g e r, S h if t A s In te g e r, X A s S in g le , Y A s S in g le )
D im fim c _ r e tu m A s B o o le a n
D im c o u n t A s In te g e r
D im e n d _ o f_ d b A s In te g e r
D im re c o rd _ p o s itio n A s In te g e r
D im h i t r e s u l t A s B o o le a n
h it_ r e s u lt = F a ls e
A d o d c 1 .R e c o rd s e t.M o v e L a s t
e n d _ o f _ d b = A d o d c 1 .R e c o r d s e t . A b s o l u t e P o s i t i o n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
105
E nd Sub
P r iv a te S u b I m a g e l_ M o u s e M o v e ( B u tt o n A s I n te g e r, S h if t A s In te g e r, X A s S in g le , Y A s S in g le )
L a b e l 1 .C a p tio n = X
L a b e l4 . C a p tio n = Y
I f (X > 5 4 0 A n d X < 9 6 0 A n d Y > 4 3 9 5 A n d Y < 4 7 1 0 ) O r _
(X > 1 8 6 0 A n d X < 2 2 3 5 A n d Y > 2 0 5 5 A n d Y < 2 2 6 5 ) O r _
(X > 2 6 7 0 A n d X < 3 4 0 5 A n d Y > 2 9 1 0 A n d Y < 3 2 5 5 ) O r _
(X > 3 5 8 5 A n d X < 4 1 7 0 A n d Y > 1 8 0 0 A n d Y < 2 0 1 0 ) O r _
(X > 2 8 8 0 A n d X < 3 8 4 0 A n d Y > 7 5 0 A n d Y < 9 9 0 ) O r _
(X > 2 5 5 0 A n d X < 3 3 0 0 A n d Y > 1185 A n d Y < 14 2 5 ) O r _
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
106
P r iv a te S u b m n u _ a b o u t_ b o x _ C lic k (In d e x A s In te g e r)
M s g B o x " M a h o n e y T a b l e s A p p l i c a t i o n 1 .0 : S a r a d a C h i d a m b a r e s w a r a n " , v b O K O n l y , " A b o u t
B ox"
E nd Sub
N o t fro m U S
O p tio n E x p lic it
D im la s t_ in d e x A s In te g e r
P u b lic f o r r e p o r t A s In te g e r
P riv a te S u b c m d _ a d d _ C lic k ()
A d o d c 1 .R e c o r d s e t.M o v e L a s t
O n E rro r G o T o a d d err
A d o d c 1 .R e c o r d s e t. A d d N e w
T e x t 1 .T e x t = " "
T e x t2 .T e x t = " "
T e x t3 .T e x t = " "
T e x t4 .T e x t = " "
T e x t5 .T e x t = " "
T e x t 6.T e x t = ""
T e x t7 .T e x t = ""
T e x t 8.T e x t = " "
T e x t9 .T e x t = ""
T e x t l O . T e x t = ""
T e x tl l.T e x t = " "
T e x tl2 .T e x t = ""
T e x tl3 .T e x t = ""
T e x t 1 4 .T e x t = ""
T e x tl5 .T e x t = " "
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
107
E x it S u b
a d d e rr:
M s g B o x E r r .D e s c r ip tio n
E nd Sub
P riv a te S u b c m d _ b a c k _ C lic k ()
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
108
f r m _ p la c e s _ n o t_ U S .V is ib le = F a ls e
F r m _ p la c e s _ U S .V is ib le = F a ls e
f r m m a i n . V is ib le = T ru e
E nd Sub
P riv a te S u b c m d _ c lo s e _ C lic k ()
E x itP ro g r a m
E nd Sub
End If
E nd Sub
End If
E nd Sub
P riv a te S u b c m d _ n e x t_ C lic k ()
'f o r m _ p l a c e s _ n o t _ U S _ f l a g _ = 1
D im n a m e _ o f _ p la c e A s S trin g
D im c o u n t A s In te g e r
D im e n d _ o f_ d b A s In te g e r
D im re c o rd _ p o s itio n A s In te g e r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
109
D im fu n c _ re tu m A s B o o le a n
n a m e _ o f j p l a c e = T e x t 1 .T e x t
'r e l o a d t h e d a t a b a s e
A d o d c 1 .R e f r e s h
A d o d c 1 .R e c o r d s e t.M o v e L a s t
e n d o f d b = A d o d c 1 .R e c o r d s e t A b s o l u t e P o s i t i o n
A d o d c 1 .R e c o rd s e t.M o v e F irs t
P riv a te S u b c m d _ u p d a te _ C lic k ()
O n E rro r G o T o ad d err
A d o d c 1 .R e c o rd s e t.U p d a te
E x it S u b
a d d e rr:
M s g B o x E r r .D e s c r ip tio n
E nd Sub
P riv a te S u b F o r m _ L o a d ()
A d o d c 1 .R e c o r d s e t.M o v e L a s t
l a s t i n d e x = fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.A b s o lu te P o s itio n
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.A b s o lu te P o s itio n = 1
E nd Sub
P r iv a te S u b m n u _ a b o u t_ C lic k (In d e x A s In te g e r)
M s g B o x " M a h o n e y T a b l e s A p p l i c a t i o n 1 .0 : S a r a d a C h i d a m b a r e s w a r a n " , v b O K O n l y , " A b o u t B o x "
E nd Sub
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
110
P riv a te S u b m n u _ a d d _ C lic k ()
O n E rro r G o T o ad d err
A d o d c 1 .R e c o r d s e t. A d d N e w
T e x t 1.T e x t = " "
T e x t2 .T e x t = " "
T e x t3 .T e x t = " "
T e x t4 .T e x t = " "
T e x t5 .T e x t = " "
T e x t6.T e x t = " "
T e x t 7 . T e x t = ""
T e x t 8. T e x t = " "
T e x t9 .T e x t = " "
T e x tlO .T e x t = " "
T e x t l l . T e x t = ""
T e x tl2 .T e x t = " "
T e x t l 3 . T e x t = ""
T e x t 1 4 .T e x t = ""
T e x tl5 .T e x t = " "
T e x t l 6.T e x t = ""
T e x tl7 .T e x t = " "
T e x t l 8.T e x t = " "
T e x tl9 .T e x t = " "
T e x t2 0 .T e x t = " "
T e x t2 1 .T e x t = " "
T e x t 22 . T e x t = " "
T e x t2 3 .T e x t = " "
T e x t2 4 .T e x t = " "
T e x t2 5 .T e x t = ""
T e x t2 6 .T e x t = " "
T e x t2 7 .T e x t = " "
T e x t2 8 .T e x t = " "
T e x t2 9 .T e x t = " "
T e x t3 0 .T e x t = " "
T e x t3 2 .T e x t = " "
T e x t3 3 .T e x t =
T e x t3 4 .T e x t = " "
T e x t3 5 .T e x t = ""
T e x t3 6 .T e x t = " "
T e x t3 7 .T e x t = " "
T e x t3 8 .T e x t = ""
T e x t3 9 .T e x t = " "
T e x t4 0 .T e x t = " "
T e x t4 1 .T e x t = ""
T e x t4 2 .T e x t = " "
T e x t4 3 .T e x t = ""
T e x t4 4 .T e x t = ""
T e x t4 5 .T e x t = " "
T e x t4 6 .T e x t = " "
T e x t4 7 .T e x t = ""
T e x t4 8 .T e x t = " "
T e x t 4 9 . T e x t = ""
T e x t5 0 .T e x t = " "
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
Ill
T e x t5 1 .T e x t = " "
T e x t5 2 .T e x t = " "
T e x t5 3 .T e x t = " "
T e x t5 4 .T e x t =
T e x t5 5 .T e x t = " "
T e x t5 6 .T e x t = " "
T e x t5 7 .T e x t = " "
T e x t5 8 .T e x t = " "
T e x t5 9 .T e x t = " "
T e x t6 0 .T e x t = " "
E x it S u b
a d d e rr:
M s g B o x E r r .D e s c r ip tio n
E nd Sub
c u r r i n d e x = A d o d c 1 .R e c o r d s e t . A b s o l u t e P o s i t i o n
L o a d fr m jib p ro p e rtie s
fr m d b p r o p e r tie s .V is ib le = T ru e
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
112
F o r c o u n t = 1 T o la s t_ in d e x S te p 1
A d o d c 1 .R e c o r d s e t . A b s o l u t e P o s i t i o n = c o u n t
d b _ e n trie s = d b _ e n trie s & c o u n t & " & T e x tl.T e x t & v b C rL f & " "
N ext count
f r m _ d b p r o p e r tie s .tx tb o x _ p la c e s .T e x t = d b e n t r i e s
A d o d c 1 .R e c o r d s e t . A b s o l u t e P o s i t i o n = c u r r i n d e x
E nd Sub
P riv a te S u b m n u _ u p d a te _ C lic k ()
O n E rro r G o T o ad d err
A d o d c 1 .R e c o rd s e t.U p d a te
E x it S u b
a d d e rr:
M s g B o x E r r .D e s c r ip tio n
E nd Sub
F o rm R ep o rt F o rm
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
f r m r e p o r t . V is ib le = F a ls e
E nd Sub
P riv a te S u b C o m m a n d 2 _ C lic k ()
f f m _ r e p o r t_ p g l. V is ib le = T ru e
End Sub
P riv a te S u b C o m m a n d 3 _ C lic k ()
I f f r m m a i n . d ire c tio n = 0 T h e n
f r m r e p o r t . V is ib le = F a ls e
F r m _ p la c e s _ U S .V is ib le = T r u e
E ls e lf f r m m a in .d ir e c tio n = 1 T h e n
frm _ re p o rt.V is ib le = F a ls e
' M a k e s u r e th a t r ig h t p la c e in th e d a ta b a s e is f o c u s s e d
' R im th e p re v io u s fin d m o d u le
f r m _ p l a c e s n o t U S . A d o d c 1 .R e c o rd s e t. A b s o lu te P o s itio n = f r m _ p la c e s _ n o t_ U S .f o r _ r e p o r t
f r m _ p la c e s _ n o t_ U S .V is ib le = T r u e
E nd If
E nd Sub
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
113
P riv a te S u b F o rm _ L o a d ()
'D i m d b A s C o n n e c t i o n
'S e t d b = N e w C o n n e c t i o n
' L o a d th e d a ta b a s e
'd b . O p e n " P R O V I D E R = M i c r o s o f t . J e t . O L E D B . 3 . 5 1 ; D a t a
S o u rc e = C :\T h e s is _ d a ta b a s e _ s a ra d a \d b . m d b "
E nd Sub
P r iv a te S u b m n u _ b o x _ C lic k (In d e x A s In te g e r)
M s g B o x " M a h o n e y T a b l e s A p p l i c a t i o n 1 .0 : S a r a d a C h i d a m b a r e s w a r a n " , v b O K O n l y , " A b o u t B o x
It
E nd Sub
P r iv a te S u b m n u _ p rin t_ C lic k ( In d e x A s In te g e r)
O n E rro r R esu m e N e x t
W ith C o m m o n D ia lo g l
.P r in te r D e f a u lt = T r u e
.F la g s = c d lP D D is a b le P r in tT o F ile O r c d lP D N o P a g e N u m s
' C h e c k fo r a n y s e le c tio n
' I f th e re a re n o s e le c tio n s th e n h id e th e s e le c tio n b u tto n
' F o r n o w w e w ill ta k e th e d e fa u lt c o n d itio n a s - n o s e le c tio n m a d e
.F la g s = .F la g s O r c d lP D N o S e le c tio n
.C a n c e lE rro r = T ru e
.S h o w P rin te r
I f E rr = 0 T h en
P r in te r .P r in t tx tb o x _ te m p .T e x t
E nd If
E n d W ith
E nd Sub
P r iv a te S u b m n u _ s a v e _ C lic k (In d e x A s In te g e r)
D im F ile n a m e A s S trin g
I f S a v e T e x tC o n tro l(T e x tl, C o m m o n D ia lo g l, F ile n a m e ) T h e n
M s g B o x " T h e file : " & F il e n a m e & " h a s b e e n s a v e d a s a t e x t file . N o I m a g e s h a s b e e n a tta c h e d to
it"
E nd If
E nd Sub
C D .F i l t e r = " T e x t f i l e s |* .t x t "
C D .F ilte r ln d e x = 1
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
114
file n u m = F r e e F ile ()
O p e n F ile n a m e F o r O u tp u t A s # file n u m
P r in t # file n u m , T B .T e x t
C lo s e # f ile n u m
S a v e T e x tC o n tro l = T m e
E x itN o w :
E n d F u n c tio n
M a in M o d u le
O p tio n E x p lic it
D im m o n th ly _ m e a n _ ra n g e (1 2 ) A s D o u b le
D im m o n th ly _ m e a n _ m a x (l 1) A s D o u b le
D im m o n th ly _ m e a n _ m in (l 1) A s D o u b le
D im m o n th ly _ m e a n _ m a x _ a m ( l 1) A s D o u b le
D im m o n th ly _ m e a n _ m a x _ p m (l 1) A s D o u b le
D im m o n th ly _ r a in f a ll_ m m (l 1) A s D o u b le
D im H l_ c o u n te r A s In te g e r
D im H 2 _ c o u n te r A s In te g e r
D im H 3 _ c o u n te r A s In te g e r
D im A l_ c o u n te r A s In te g e r
D im A 2 _ c o u n te r A s In te g e r
D im A 3 _ c o u n te r A s In te g e r
D i m r e p o r t _ n u m b e r ( 8) A s I n t e g e r
D im d e ta il_ re p o rt_ n u m b e r( 7 ) A s In te g e r
D im p i c o b je c tl a y o u t A s P ic tu re
D im p ic o b je c t_ s p a c in g A s P ic tu re
D im p i c o b je c ta ir m o v e m e n t A s P ic tu re
D im p ic o b je c t_ r a in p r o te c tio n A s P ic tu re
D im p ic o b je c t o p e n in g A s P ic tu re
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
115
f r m _ d e t a ils _ w a lls .R ic h T e x tB o x l .T e x t = w a ll
E n d F u n c tio n
F u n c tio n P o p u la te F R M _ D E T A I L S _ R O O F S ( r o o f A s S trin g )
frm _ d e ta ils _ ro o f s .R ic h T e x tB o x l.T e x t = r o o f
E n d F u n c tio n
F u n c tio n P o p u la te F R M _ D E T A I L S _ O U T D O O R ( o u td o o r A s S trin g )
f f m _ d e ta ils _ o u td o o r .R ic h T e x tB o x l.T e x t = o u td o o r
E n d F u n c tio n
F u n c tio n P o p u la te F R M _ D E T A IL S _ R A IN P R O T E C T IO N (p ro te c t A s S trin g )
fr m _ d e ta ils _ ra in p ro te c tio n .R ic h T e x tB o x l.T e x t = p ro te c t
E n d F u n c tio n
F u n c tio n P la c e s In U S M o d u le (n a m e _ o f_ th e _ U S _ p la c e A s S trin g , e n d i n d e x A s In te g e r)
D im h i t r e s u l t A s B o o le a n
D im fu n c _ re tu m A s B o o le a n
D im c o u n t A s In te g e r
D im r e c o rd _ p o s itio n A s In te g e r
h it_ r e s u lt = F a ls e
'E v e r y t h i n g g e t s a d d e d h e r e
For count = 1 T o end in d e x S te p 1
F r m _ p la c e s _ U S .A d o d c l.R e c o r d s e t.A b s o lu te P o s itio n = c o u n t
I f F r m _ p la c e s _ U S .T e x tl.T e x t = n a m e _ o f_ th e _ U S _ p la c e T h e n
re c o rd _ p o s itio n = c o u n t
h itr e s u lt = T ru e
E nd If
N ext count
I f h it_ re s u lt = T ru e T h e n
frm _ re p o rt. V is ib le = T ru e
fu n c _ re tu rn = G e n e ra te R e p o rt(re c o rd _ p o s itio n )
E lse
M s g B o x " D a ta U n a v a ila b le " , v b C ritic a l, " R e m in d e r"
End If
E n d F u n c tio n
F u n c tio n G e n e r a te R e p o rt(re c o rd s e t_ n u m A s In te g e r) A s B o o le a n
' A d d th e g e n e r a te r e p o r t c o d e h e re
f r m _ re p o rt.A d o d c l.R e c o rd s e t. A b s o lu te P o s itio n = r e c o r d s e t n u m
D im c o u n t A s In te g e r
m o n th ly _ m e a n _ m a x (0 ) = fr m _ re p o rt.L a b e l2 . C a p tio n
m o n t h ly _ m e a n _ m a x ( l) = f r m _ r e p o r t.L a b e l3 .C a p tio n
m o n th ly _ m e a n _ m a x (2 ) = f r m r e p o r t.L a b e M . C a p tio n
m o n th ly _ m e a n _ m a x (3 ) = fr m _ re p o rt.L a b e l5 . C a p tio n
m o n th ly _ m e a n _ m a x ( 4 ) = f r m _ r e p o r t.L a b e l6.C a p tio n
m o n th ly _ m e a n _ m a x ( 5 ) = f r m _ r e p o r t.L a b e l7 .C a p tio n
m o n t h l y _ m e a n _ m a x ( 6) = f f m _ r e p o r t . L a b e l 8 . C a p t i o n
m o n th ly _ m e a n _ m a x ( 7 ) = f f m _ r e p o r t.L a b e l9 .C a p tio n
m o n t h l y _ m e a n _ m a x ( 8) = f r m r e p o r t . L a b e l l O . C a p t i o n
m o n t h l y _ m e a n _ m a x ( 9 ) = f r m j r e p o r t . L a b e l l 1. C a p t i o n
m o n th ly _ m e a n _ m a x ( 1 0 ) = f im _ r e p o r t.L a b e ll2 .C a p tio n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
116
m o n t h l y m e a n m a x a m ( O ) = f r m _ r e p o r t.L a b e l2 6 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( l) = f r m _ r e p o r t.L a b e l2 7 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( 2 ) = f r m _ r e p o r t.L a b e l2 8 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( 3 ) = f r m _ r e p o r t.L a b e l2 9 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( 4 ) = f r m _ r e p o r t.L a b e l3 0 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m (5 ) = f r m _ r e p o r t.L a b e l3 1 .C a p tio n
m o n t h l y _ m e a n _ m a x _ a m ( 6) = f r m _ r e p o r t . L a b e l 3 2 . C a p t i o n
m o n th ly _ m e a n _ m a x _ a m ( 7 ) = f r m _ r e p o r t.L a b e l3 3 .C a p tio n
m o n t h l y _ m e a n _ m a x _ a m ( 8) = f r m _ r e p o r t . L a b e l 3 4 . C a p t i o n
m o n th ly _ m e a n _ m a x _ a m ( 9 ) = f r m _ r e p o r t.L a b e l3 5 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( 1 0 ) = f r m _ r e p o r t.L a b e l3 6 .C a p tio n
m o n th ly _ m e a n _ m a x _ a m ( l 1) = fr m _ re p o rt.L a b e l3 7 . C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( 0 ) = f r m _ r e p o r t.L a b e l3 8 .C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( l) = fr m _ re p o rt.L a b e l3 9 . C a p tio n
m o n th ly _ m e a n _ m a x _ p m (2 ) = fr m re p o rt.L a b e W O . C a p tio n
m o n th ly _ m e a n _ m a x _ p m (3 ) = fr m _ re p o rt.L a b e l4 1 . C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( 4 ) = f r m _ r e p o r t.L a b e l4 2 .C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( 5 ) = f n n _ r e p o r t.L a b e l4 3 .C a p tio n
m o n t h l y _ m e a n _ m a x _ p m ( 6) = f r m _ r e p o r t . L a b e l 4 4 . C a p t i o n
m o n th ly _ m e a n _ m a x _ p m ( 7 ) = f r m _ r e p o r t.L a b e l4 5 .C a p tio n
m o n t h l y _ m e a n _ m a x _ p m ( 8) = f r m _ r e p o r t . L a b e l 4 6 . C a p t i o n
m o n th ly _ m e a n _ m a x _ p m ( 9 ) = f r m _ r e p o r t.L a b e l4 7 .C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( 1 0 ) = f h n _ r e p o r t.L a b e l4 8 . C a p tio n
m o n th ly _ m e a n _ m a x _ p m ( l 1) = fir m _ r e p o r t.L a b e l4 9 .C a p tio n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
117
m o n th ly _ r a in f a l l_ m m ( l 1) = f r m _ r e p o r t.L a b e l6 1 .C a p tio n
F o r c o u n t = 0 T o 11 S te p 1
m o n th ly _ m e a n _ ra n g e (c o u n t) = m o n th ly _ m e a n _ m a x (c o u n t) - m o n th ly _ m e a n _ m in (c o u n t)
N ext count
D im s o rt_ a rra y (1 2 ) A s D o u b le
D im te m p A s D o u b le
D im ite ra tio n s A s In te g e r
D im m o n th ly _ m e a n _ m a x _ h ig h e s t A s D o u b le
D im m o n th ly m ean m in lo w e s t A s D o u b le
D im a v e r a g e _ m e a n _ te m p A s D o u b le
D im a v e r a g e m e a n r a n g e A s D o u b le
' C o p y th e a r r a y to b e s o r te d in to th e s o rt a r r a y
F o r c o u n t = 0 T o 11 S te p 1
s o rta rra y (c o u n t) = m o n th ly m e a n m a x (c o u n t)
N ext count
' S o r t th e s o r t a r r a y ( r e m e m b e r : m a x h a s th e i n d e x 11 a n d m i n h a s t h e i n d e x : 0 )
ite ra tio n s = 11
F o r c o u n t = 1 T o ite ra tio n s S te p 1
I f s o rt a rra y (c o u n t) < s o rt_ a rra y (c o u n t - 1) T h e n
s o r t_ a r r a y ( c o u n t) = te m p
s o rt_ a rra y (c o u n t) = s o rt_ a rra y (c o u n t - 1)
s o rt_ a rra y (c o u n t - 1) = te m p
E nd If
ite r a tio n s = ite ra tio n s - 1
N ext count
m o n th ly _ m e a n _ m a x _ h ig h e s t = s o rt_ a rra y (l 1)
'f r m r e p o r t . L a b e l l . C a p t i o n = " m o n t h l y _ m e a n _ m a x _ h i g h e s t : " +
C S tr(m o n th ly _ m e a n _ m a x _ h ig h e s t)
'f r m r e p o r t . L a b e l l . V is ib le = T m e
F o r c o u n t = 0 T o 11 S te p 1
s o rt_ a rra y (c o u n t) = m o n th ly _ m e a n _ m in (c o u n t)
N ext count
' S o r t th e s o r t a r r a y ( r e m e m b e r : m a x h a s th e i n d e x 11 a n d m i n h a s th e i n d e x : 0 )
ite ra tio n s = 11
F o r c o u n t = 1 T o ite ra tio n s S te p 1
I f s o rt a rra y (c o u n t) < s o rt_ a rra y (c o u n t - 1 ) T h e n
s o r t_ a r r a y ( c o u n t) = te m p
s o r ta r r a y ( c o u n t) = s o rt_ a rra y (c o u n t - 1)
s o rt_ a rra y (c o u n t - 1) = te m p
End If
ite r a tio n s = ite ra tio n s - 1
N ext count
m o n t h l y _ m e a n _ m i n _ l o w e s t = s o r t _ a r r a y ( 0)
'f r m _ r e p o r t . L a b e l 2 . C a p t i o n = " m o n t h l y _ m e a n _ m i n _ l o w e s t : " + C S t r ( m o n t h l y _ m e a n _ m i n _ l o w e s t )
'f r m _ r e p o r t . L a b e l 2 . V i s i b l e = T m e
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
118
a v e r a g e m e a n t e m p = (m o n th ly _ m e a n _ m a x _ h ig h e s t + m o n th ly _ m e a n _ m in _ lo w e s t) / 2
'f r m _ r e p o r t . L a b e l 3 . C a p t i o n = " a v e r a g e m ean te m p : " + C S tr ( a v e r a g e jm e a n t e m p )
'f r m _ r e p o r t . L a b e l 3 . V i s i b l e = T r u e
'f r m _ r e p o r t .L a b e l l . C a p t i o n = a v e r a g e m e a n t e m p
'f r m r e p o r t .L a b e l l . V is ib le = T m e
a v e ra g e _ m e a n _ ra n g e = m o n th ly m ean m ax h ig h e s t - m o n th ly _ m e a n _ m in _ lo w e s t
'f r m _ r e p o r t . L a b e l 3 . C a p t i o n = " a v e r a g e m ean ra n g e : " + C S tr(a v e ra g e m ean ra n g e )
'f r m _ r e p o r t . L a b e l 3 . V i s i b l e = T m e
D im a v e r a g e _ re la tiv e _ h u m d ity (1 2 ) A s D o u b le
D im h u m id ity _ g r o u p (1 2 ) A s In te g e r
F o r c o u n t = 0 T o 11 S te p 1
a v e r a g e r e la tiv e h u m d ity ( c o u n t) = (m o n th ly _ m e a n _ m a x _ a m (c o u n t) +
m o n th ly _ m e a n _ m a x _ p m (c o u n t)) / 2
'S e l e c t C a s e a v e r a g e r e l a t i v e j h u m d i t y ( c o u n t )
' C ase av erag e re la tiv e h u m d ity (c o u n t) < 3 0 :
' h u m id ity _ g r o u p (c o u n t) = 1
' C ase a v e ra g e re la tiv e h u m d ity (c o u n t) > = 3 0 A n d a v erag e re la tiv e h u m d ity ( c o u n t) < 5 0 :
' h u m id ity g ro u p (c o u n t) = 2
' C a s e a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) > = 5 0 A n d a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) < 7 0 :
' h u m id ity g ro u p (c o u n t) = 3
' C a s e a v e ra g e _ re la tiv e _ h u m d ity (c o u n t) > = 7 0 :
1 h u m id ity g ro u p (c o u n t) = 4
'E n d S e l e c t
I f a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) < 3 0 T h e n
h u m id ity g r o u p (c o u n t) = 1
E nd If
I f a v e ra g e _ re la tiv e _ h u m d ity (c o u n t) > = 3 0 A n d a v e ra g e re la tiv e h u m d ity (c o u n t) < 5 0 T h e n
h u m id ity g r o u p (c o u n t) = 2
E nd If
I f a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) > = 5 0 A n d a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) < = 7 0 T h e n
h u m id ity _ g r o u p (c o u n t) = 3
E nd If
I f a v e r a g e _ re la tiv e _ h u m d ity (c o u n t) > 7 0 T h e n
h u m id ity _ g r o u p (c o u n t) = 4
E nd If
N ext count
'f r m r e p o rt.L a b e M .C a p tio n = " a v e r a g e _ re la tiv e _ h u m d ity f o r fe b : " +
C S t r ( a v e r a g e _ r e l a t i v e _ h u m d i t y ( 1) )
'f r m r e p o r t .L a b e M . V i s i b l e = T m e
D im m o n th ly _ d a y _ c o m fo rt_ u p p e r (1 2 ) A s In te g e r
D im m o n th ly _ d a y _ c o m fo rt_ lo w e r (1 2 ) A s In te g e r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
119
D im m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(1 2 ) A s In te g e r
D im m o n th ly _ n ig h t_ c o m fo rt_ lo w e r( 1 2 ) A s In te g e r
F o r c o u n t = 0 T o 11 S te p 1
1M o n th ly d a y c o m fo rt u p p e r
I f h u m id ity g ro u p (c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 3 4
E l s e lf h u m id ity g r o u p ( c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 31
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v erag e m ean te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 2 9
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v e ra g e m ean te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 2 7
E l s e lf h u m id ity g r o u p ( c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e ra g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 3 2
E l s e lf h u m id ity _ g r o u p (c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e r a g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 3 0
E l s e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e ra g e m ean te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 2 8
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v e ra g e m ean te m p < 2 0 A n d a v e ra g e m ean t e m p ■>
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 2 5
E l s e lf h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e ra g e m ean te m p < 15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 21
E l s e lf h u m id ity g r o u p ( c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p < 15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 20
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e m ean te m p < 15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 19
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v e ra g e m ean te m p < 15 T h e n
m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) = 1 8
End If
' M o n th ly d a y c o m fo rt lo w e r
I f h u m id ity g ro u p (c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 2 6
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e m ean te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r(c o u n t) = 2 5
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 2 3
E l s e lf h u m id ity _ g r o u p (c o u n t) = 4 A n d a v e ra g e m ean te m p > = 2 0 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 22
E l s e lf h u m id ity g ro u p (c o u n t) = 1 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e m ean te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 2 3
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e m ean te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 22
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e _ m e a n _ te m p > =
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
120
15 Then
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 21
E l s e lf h u m id ity _ g r o u p (c o u n t) = 4 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e m ean te m p > =
15 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 20
E l s e lf h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e r a g e _ m e a n _ te m p < 1 5 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 21
E l s e lf h u m id ity _ g r o u p (c o u n t) = 2 A n d a v e ra g e m ean te m p < 1 5 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r (c o u n t) = 20
E l s e l f h u m id ity _ g r o u p ( c o u n t) = 3 A n d a v e r a g e _ m e a n _ te m p < 15 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r(c o u n t) = 1 9
E l s e lf h u m id ity _ g r o u p (c o u n t) = 4 A n d a v e ra g e _ m e a n _ te m p < 1 5 T h e n
m o n th ly _ d a y _ c o m fo rt_ lo w e r(c o u n t) = 1 8
E nd If
' M o n th ly n ig h t c o m fo rt u p p e r
I f h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e r a g e jm e a n te m p > = 2 0 T h e n
m o n th ly n ig h tc o m fo rtu p p e r(c o u n t) = 25
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v erag e m ean te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 2 4
E l s e lf h u m id ity g r o u p ( c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 2 3
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v e ra g e m ean te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 21
E l s e lf h u m id ity g r o u p ( c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e r a g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 2 3
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e ra g e m ean te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 22
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e r a g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) =21
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v erag e m ean te m p < 2 0 A n d a v e r a g e m ean te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 20
E ls e lf h u m id ity g ro u p (c o u n t) = 1 A n d a v e ra g e m ean te m p < 15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 21
E l s e lf h u m id ity _ g r o u p (c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p < 15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 20
E l s e lf h u m id ity _ g r o u p (c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p < 15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 19
E l s e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v e ra g e m ean te m p < 15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ u p p e r(c o u n t) = 1 8
E nd If
' M o n th ly n ig h t c o m f o r t lo w e r
I f h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 17
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e _ m e a n _ te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 1 7
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v e ra g e m ean te m p > = 2 0 T h e n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
121
m o n th ly _ n ig h t_ c o m fo rt_ lo w e r(c o u n t) = 17
E ls e lf h u m id ity g ro u p (c o u n t) = 4 A n d a v erag e m ean te m p > = 2 0 T h e n
m o n th ly _ n ig h t_ c o m fo rt_ lo w e r(c o u n t) = 1 7
E l s e lf h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 14
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e m ean te m p < 2 0 A n d a v e r a g e m ean te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 14
E l s e lf h u m id ity _ g r o u p (c o u n t) = 3 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e ra g e _ m e a n _ te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 1 4
E l s e lf h u m id ity g r o u p ( c o u n t) = 4 A n d a v e ra g e _ m e a n _ te m p < 2 0 A n d a v e ra g e m ean te m p > =
15 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) = 1 4
E l s e lf h u m id ity _ g r o u p (c o u n t) = 1 A n d a v e ra g e _ m e a n _ te m p < 1 5 T h e n
m o n th ly _ n ig h t_ c o m f o rt_ lo w e r(c o u n t) =12
E ls e lf h u m id ity g ro u p (c o u n t) = 2 A n d a v e ra g e m ean te m p < 1 5 T h e n
m o n th ly _ n ig h t_ c o m fo rt_ lo w e r(c o u n t) = 12
E ls e lf h u m id ity g ro u p (c o u n t) = 3 A n d a v erag e m ean te m p < 1 5 T h e n
m o n th ly _ n ig h t_ c o m fo rt_ lo w e r(c o u n t) = 12
E l s e lf h u m id ity g r o u p ( c o u n t) = 4 A n d a v e ra g e _ m e a n _ te m p < 1 5 T h e n
m o n th ly _ n ig h t_ c o m fo rt_ lo w e r(c o u n t) =12
End If
N ext count
'f r m _ r e p o r t . L a b e l 6 . C a p t i o n = m o n t h l y _ n i g h t _ c o m f o r t _ l o w e r ( l )
'f r m _ r e p o r t . L a b e l 6 . V i s i b l e = T r u e
'f r m _ r e p o r t . L a b e l 7 . C a p t i o n = m o n t h l y _ n i g h t _ c o m f o r t _ u p p e r ( l )
'f f m _ r e p o r t . L a b e l 7 . V i s i b l e = T r u e
'f f m _ r e p o r t . L a b e l 8 . C a p t i o n = m o n t h l y _ d a y _ c o m f o r t _ l o w e r ( l )
'f r m _ r e p o r t . L a b e l 8 . V i s i b l e = T m e
'f r m _ r e p o r t . L a b e l 9 . C a p t i o n = m o n t h l y _ d a y _ c o m f o r t _ u p p e r ( l )
'f r m _ r e p o r t . L a b e l 9 . V i s i b l e = T m e
' T h e rm a l s tre s s
D im m o n th ly _ th e r m a l_ s tr e s s _ d a y ( 1 2 ) A s S trin g
D im m o n th ly _ th e rm a l_ s tre s s _ n ig h t(1 2 ) A s S trin g
F o r c o u n t = 0 T o 11 S te p 1
I f monthly_mean_max(count) >= m onthly_day_comfort_lower(count) And
m o n th ly _ m e a n _ m a x (c o u n t) < = m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) T h e n
m o n th ly _ th e rm a l_ s tre s s _ d a y (c o u n t) = " C o m fo rta b le "
E l s e lf m o n th ly m ean m a x (c o u n t) < m o n th ly _ d a y _ c o m fo rt_ lo w e r(c o u n t) T h e n
m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " C o ld "
E ls e lf m o n th ly m ean m a x (c o u n t) > m o n th ly _ d a y _ c o m fo rt_ u p p e r (c o u n t) T h e n
m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " H o t"
E nd If
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
122
H I c o u n te r = 0
H 2 _ c o u n te r = 0
H 3 _ c o u n te r = 0
A l_ c o u n te r = 0
A 2 _ c o u n te r = 0
A 3 _ c o u n te r = 0
F o r c o u n t = 0 T o 11 S te p 1
I f ( m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " H o t" A n d h u m id ity g ro u p ( c o u n t) = 4 ) O r _
(m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " H o t" A n d ( h u m id ity g ro u p (c o u n t) = 2 O r
h u m id ity g ro u p (c o u n t) = 3 ) _
A n d m o n th ly _ m e a n _ ra n g e (c o u n t) < 1 0 ) T h e n
H lc o u n te r = H lc o u n te r + 1
E nd If
I f m o n th ly _ th e rm a l_ s tre s s _ d a y (c o u n t) = " C o m fo rta b le " A n d h u m id ity g ro u p (c o u n t) = 4 T h e n
H 2 _ c o u n te r = H 2 _ c o u n te r + 1
E nd If
I f m o n th ly _ r a in f a ll_ m m (c o u n t) > = 2 0 0 T h e n
H 3 _ c o u n te r = H 3 _ c o u n te r + 1
E nd If
I f ( h u m id ity _ g ro u p (c o u n t) = 1 O r h u m id ity _ g r o u p (c o u n t) = 2 O r h u m id ity g ro u p (c o u n t) = 3 )
A n d (m o n th ly _ m e a n _ ra n g e (c o u n t) > 1 0 ) T h e n
A l c o u n t e r = A l_ c o u n te r + 1
E nd If
I f (m o n th ly _ th e r m a l_ s tr e s s _ n ig h t( c o u n t) = " H o t" A n d ( h u m id ity g ro u p ( c o u n t) = 1 O r
h u m id ity g ro u p (c o u n t) = 2 )) O r _
(m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " H o t" A n d m o n th ly _ th e r m a l_ s tr e s s _ n ig h t( c o u n t) =
" C o m fo rta b le " A n d _
(h u m id ity g ro u p (c o u n t) = 1 O r h u m id ity g ro u p (c o rm t) = 2 ) A n d m o n th ly m ean ra n g e (c o u n t) >
10) T h e n
A 2 _ c o im te r = A 2 _ c o u n te r + 1
E nd If
I f m o n th ly _ th e r m a l_ s tr e s s _ d a y ( c o u n t) = " C o ld " T h e n
A3_counter = A3_counter + 1
E nd If
N ext count
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
123
1M O D U L E # 4 O P E N IN G S
I f A l c o u n t e r = 0 O r A l_ c o u n te r = 1 A n d A 3 _ c o u n te r = 0 T h e n
re p o rt_ n u m b e r (3 ) = 9
E ls e lf (A l c o u n t e r = 11 O r A l _ c o u n t e r = 1 2 ) A n d ( A 3 ^ c o u n t e r = 0 O r A 3 _ c o u n t e r = 1 ) T h e n
re p o rt_ n u m b e r(3 ) = 1 0
E ls e lf ( H l c o u n te r > = 0 A n d H l_ c o u n te r < = 1 2 ) O r (H 2 _ c o u n te r > = 0 A n d H 2 _ c o u n te r < = 1 2 ) O r
(H 3 _ c o u n te r > = 0 A n d H 3 _ c o u n te r < = 1 2 ) T h e n
r e p o r t _ n u m b e r ( 3 ) = 11
E nd If
' # M O D U L E O P E N IN G S D E T A IL S - S IZ E
I f (A l_ c o u n te r = 0 O r A l c o u n te r = 1) A n d A 3 _ c o u n te r = 0 T h e n
d e t a i l _ r e p o r t _ n u m b e r ( 0) = 1
E ls e lf (A l_ c o u n te r = 0 O r A l c o u n te r = 1) A n d (A 3 _ c o u n te r > = 1 A n d A 3 _ c o u n te r < = 1 2 ) T h e n
detail_report_number(0) = 2
E ls e lf A l c o u n t e r > = 2 A n d A lc o u n te r < = 5 T h e n
d e ta ilre p o rtn u m b e r(O ) = 2
E ls e lf A l c o u n t e r > = 6 A nd A lc o u n te r < = 1 0 T hen
d e ta ilre p o rtn u m b e r(O ) = 3
E l s e l f ( A l _ c o u n t e r = 11 O r A l c o u n te r = 1 2 ) A n d (A 3 _ c o u n te r > = 0 A n d A 3 _ c o u n te r < = 3 ) T h e n
d e ta il_ re p o rt_ n u m b e r( 0 ) = 4
E ls e lf ( A l c o u n te r = 11 O r A l _ c o u n t e r = 1 2 ) A n d ( A 3 _ c o u n te r > = 4 A n d A 3 _ c o u n te r < = 1 2 )
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
124
T hen
d e ta ilre p o rtn u m b e r(O ) = 5
E nd If
' # M O D U L E O P E N IN G S D E T A IL S - P O S IT IO N
I f H l c o u n t e r > = 3 A n d H l_ c o u n te r < = 1 2 T h e n
d e ta ilre p o rtn u m b e r(l) = 6
E ls e lf (H l c o u n te r = 1 O r H l c o u n te r = 2 ) A n d ( A l_ c o u n te r > = 0 A n d A l c o u n te r < = 5 ) T h e n
d e ta ilre p o rtn u m b e r(l) = 6
E ls e lf (H l_ c o u n te r = 1 O r H l c o u n te r = 2 ) A n d ( A l c o u n te r > = 6 A n d A l c o u n te r < = 1 2 ) T h e n
d e ta il_ re p o rt_ n u m b e r(l) = 7
E ls e lf H I c o u n te r = 0 A n d (H 2 _ c o u n te r > = 2 A n d H 2 _ c o u n te r < = 1 2 ) T h e n
d e ta ilre p o rtn u m b e r(l) = 7
E nd If
' # M O D U L E O P E N IN G S D E T A IL S - P R O T E C T IO N
I f A 3 _ c o u n te r > = 0 A n d A 3 _ c o u n te r < = 2 T h e n
d e t a i l _ r e p o r t _ n u m b e r ( 2) = 8
E l s e lf H 3 _ c o u n te r > = 2 A n d H 3 _ c o u n te r < = 1 2 T h e n
d e ta il_ re p o rt_ n u m b e r( 2 ) = 9
E nd If
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
125
E nd If
' M O D U L E # 7 O U T D O O R S L E E P IN G
I f A 2 _ c o u n te r > = 2 A n d A 2 _ c o u n te r < = 1 2 T h e n
r e p o r t _ n u m b e r ( 6) = 1 6
End If
' M O D U L E # O U T D O O R S L E E P IN G D E T A IL S
I f A 2 _ c o u n te r > = 1 A n d A 2 _ c o u n te r < = 1 2 T h e n
d e ta il_ re p o rt_ n u m b e r( 5 ) = 1 5
End If
’M O D U LE # 8 R A IN P R O T E C T IO N
I f H 3 _ c o u n te r > = 3 A n d H 3 _ c o u n te r < = 1 2 T h e n
re p o rt_ n u m b e r(7 ) = 1 7
E nd If
' M O D U L E # R A IN P R O T E C T IO N D E T A IL S
I f H 3 _ c o u n te r > = 1 A n d H 3 _ c o u n te r < = 1 2 T h e n
d e t a i l _ r e p o r t _ n u m b e r ( 6) = 1 6
E nd If
G e n e r a te T e x t
G e n e r a te R e p o rt = T m e
E n d F u n c tio n
F u n c tio n E x itP ro g ra m ()
U n lo a d frm _ d b p ro p e rtie s
U n lo a d fr m _ m a in
U n lo a d frm _ p la c e s _ n o t_ U S
U n lo a d F rm _ p la c e s _ U S
U n lo a d fr m _ re p o rt
U n lo a d frm _ re p o rt_ p g l
U n lo a d f r m i m a g e v i e w e r
U n lo a d fr m _ d e ta ils _ o p e n in g
U n lo a d f r m d e t a i l s o u t d o o r
U n lo a d fr m d e ta ils ra in p ro te c tio n
U n lo a d f r m d e t a i l s r o o f s
U n lo a d I r m d e t a i l s w a l l s
U n lo a d frm _ d a ta _ fro m _ w e b
U n lo a d fr m S p la s h
E n d F u n c tio n
F u n c tio n G e n e ra te T e x t()
D im r e p o r t _ p a g e l_ te m p A s S trin g
D im r e p o r t_ p a g e l_ h u m A s S trin g
D im r e p o r t _ p a g e l _ r w A s S trin g
D im c o u n t A s In te g e r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
126
D im r e p o r t_ s p a c in g 2 A s S trin g
D im r e p o r t_ s p a c in g 3 A s S trin g
D im r e p o r t a i r m o v e m e n t l A s S trin g
D im r e p o r t_ a ir m o v e m e n t2 A s S trin g
D im re p o rt_ a ir m o v e m e n t3 A s S trin g
D i m r e p o r t _ o p e n in g s l A s S trin g
D im r e p o r t_ o p e n in g s 2 A s S trin g
D im r e p o rt_ o p e n in g s 3 A s S trin g
D i m r e p o r t w a l l s l A s S trin g
D im r e p o rt_ w a lls 2 A s S trin g
D im r e p o r t r o o f l A s S trin g
D im r e p o rt_ r o o f2 A s S trin g
D im r e p o r t_ o u t d o o r l A s S trin g
D im r e p o r t_ r a in p r o te c tio n l A s S trin g
D im d e ta ilr e p o r t_ o p e n in g s _ s iz e l A s S trin g
D im d e ta ilre p o rt_ o p e n in g s _ s iz e 2 A s S trin g
D im d e ta ilre p o rt_ o p e n in g s _ s iz e 3 A s S trin g
D im d e ta ilr e p o r t_ o p e n in g s _ s iz e 4 A s S trin g
D im d e ta ilr e p o r t_ o p e n in g s _ s iz e 5 A s S trin g
D im d e ta ilr e p o r t_ o p e n in g s _ p o s itio n l A s S trin g
D im d e ta ilre p o rt_ o p e n in g s _ p o s itio n 2 A s S trin g
D im d e ta il r e p o r t o p e n i n g s j p r o t e c t i o n l A s S trin g
D im d e ta ilre p o rt_ o p e n in g s _ p ro te c tio n 2 A s S trin g
D im d e ta ilr e p o r t_ w a lls l A s S trin g
D im d e ta ilre p o rt_ w a lls 2 A s S trin g
D i m d e t a i l r e p o r t r o o f s l A s S trin g
D im d e ta ilre p o rt_ ro o f s 2 A s S trin g
D im d e ta ilre p o rt_ ro o f s 3 A s S trin g
D im d e ta ilr e p o r t_ o u td o o r l A s S trin g
D im d e ta ilr e p o r t r a in p r o t e c tio n l A s S trin g
D im p o p u la te s trin g o p e n in g s s iz e A s S trin g
D im p o p u la te s tr in g _ o p e n in g s _ p o s itio n A s S trin g
D im p o p u la te s tr in g _ o p e n in g s _ p r o te c tio n A s S trin g
D im p o p u la te s trin g w a ll A s S trin g
D im p o p u la te s tr in g r o o f A s S trin g
D im p o p u la te s tr in g o u td o o r A s S trin g
D im p o p u la te s tr in g r a in p r o te c tio n A s S trin g
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
127
m o n th s ."
d e ta ilr e p o r t_ o p e n in g s _ s iz e 5 = " M e d iu m s iz e o p e n in g s a re r e c o m m e n d e d a ls o w h e n th e r m a l s to ra g e
is r e q u i r e d th r o u g h o u t th e y e a r a n d s u n p e n e t r a t i o n is d e s ir a b l e d u r in g a c o o l s e a s o n o f m o r e th a n f o u r
m o n th s ."
d e ta ilr e p o r t_ o p e n in g s _ p o s itio n l = " W h e n a ir m o v e m e n t is e s s e n tia l fo r 3 m o n th s o r m o re , o r fo r a
le s s e r p e r io d , b u t th e r m a l s to r a g e is n e e d e d f o r le s s th a n h a l f a y e a r , th e o p e n in g s s h o u ld b e p o s itio n e d
s o a s to d ir e c t th e b r e e z e a t th e o c c u p a n ts . F ir s t p r e f e r e n c e is n o r th - s o u th o r ie n ta tio n , b u t in th is c a s e
th e w in d d ire c tio n m a y ta k e p r e c e d e n c e o v e r s o la r o r ie n ta tio n ."
d e ta ilr e p o r t_ o p e n in g s _ p o s iti o n 2 = " W h e n a ir m o v e m e n t is e s s e n tia l f o r 1 o r 2 m o n th s o n ly a n d
t h e r m a l s to r a g e is n e e d e d f o r m o r e th a n 6 m o n th s o r w h e n a ir f lo w is n o t e s s e n t i a l o n l y d e s i r a b l e f o r
tw o m o n th s o r m o re -th e r o o m s m a y b e d o u b le b a n k e d w ith in te r n a l w a lls h a v in g a d e q u a te o p e n in g s .
I n th is c a s e th e o p tim u m s o la r o r ie n ta tio n ( n o r th a n d s o u th ) s h o u ld ta k e p r e c e d e n c e o v e r o rie n ta tio n
fo r w in d ."
d e t a i l r e p o r t _ o p e n i n g s _ p r o t e c t i o n l = " C o m p l e t e e x c l u s i o n o f s o l a r r a d i a t i o n t h r o u g h - o u t t h e y e a r is
r e c o m m e n d e d , w h e n th e r e is n o c o o l s e a s o n o r i t la s t s n o t m o r e t h a n 2 m o n t h s . I f th e r e is l o n g e r c o o l
s e a s o n , th e s h a d in g p e r io d s h o u ld b e d e te rm in e d . T h e s u n s h o u ld b e a d m itte d d u r in g th e c o o l p e rio d ."
d e ta ilre p o rt_ o p e n in g s _ p ro te c tio n 2 = " P r o te c tio n o f o p e n in g s fr o m r a in p e n e tr a tio n w ill b e
n e c e s s a ry w h e n ra in fa ll e x c e e d in g 200 m m o c c u rs in m o re th a n 1 m o n th ."
d e t a i l r e p o r t w a l l s l = " W h e n t h e r m a l s to r a g e is r e q u i r e d f o r 2 m o n th s o r le s s , a lig h t - w e i g h t f a b r ic
is r e c o m m e n d e d . T h i s m a y b e p r o v id e d b y h o llo w b lo c k s o r b r ic k s w ith m o r e th a n 4 0 % v o id , b y a
th in s o lid w a ll, e .g .5 0 m m d e n s e c o n c r e te o r b y s h e e te d w a lls e n c lo s in g a c a v ity (th e la tte r m a y h a rb o r
in s e c ts a n d v e r m in ) . O u ts id e s u r f a c e s s h o u ld b e re f le c tiv e ."
d e t a i l r e p o r t _ w a l l s 2 = " W h e n t h e r m a l s t o r a g e i s r e q u i r e d f o r m o r e t h a n 2 m o n t h s , a h e a v y f a b r i c is
r e c o m m e n d e d . S o lid b r ic k s , b lo c k s , c o n c r e te o r a d o b e o f a b o u t 3 0 0 m m th ic k n e s s s h o u ld s a tis f y th e
r e q u ir e m e n ts . A le s s e r th ic k n e s s , d o w n to 1 0 0 m m is s a tis f a c to r y , i f it is in s u la te d o n th e o u ts id e ."
d e ta i l r e p o r t r o o f s 1 = " W ith a n a ir m o v e m e n t r e q u ir e m e n t f o r 1 0 to 1 2 m o n th s , i f th e th e r m a l
s to r a g e r e q u ir e m e n t is le s s th a n 2 m o n th s , a lig h t r o o f s h o u ld b e u s e d . I ts tim e la g s h o u ld n e v e r
e x c e e d 3 h rs . it s h o u ld h a v e a r e fle c tiv e s u rfa c e a n d g o o d in s u la tio n . A c a v ity w ith in th e r o o f o r a
r o o f - c e il in g c o m b in a tio n is a d v a n ta g e o u s . T h e r o o f - c e il in g o v e r a ll U - v a lu e s h o u ld b e in th e r e g io n o f
lW /m 2 degC "
d e ta ilre p o rt_ ro o f s 2 = " W ith a s im ila r a ir m o v e m e n t r e q u ire m e n t, i f th e th e rm a l s to ra g e re q u ire m e n t
is m o re th a n 3 m o n th s - o r w ith a n a ir m o v e m e n t r e q u ir e m e n t f o r le s s th a n 9 m o n th s , a n d th e rm a l
s to r a g e is n e e d e d f o r le s s th a n 5 m o n th s - th e r o o f s s h o u ld s till b e lig h t b u t its in s u la tio n is e v e n m o r e
im p o r ta n t. A n o v e r a ll U - v a lu e n o t e x c e e d in g 0 .8 W /m 2 is r e c o m m e n d e d . T h is p e r f o r m a n c e c o u ld b e
p r o v id e d b y a n e x te r n a l s h e e t w ith a r e f le c tiv e s u rfa c e , a c a v ity a n d a c e ilin g in c o r p o r a tin g a t le a s t
2 5 m m in s u la tio n a n d a re fle c tiv e to p .( a lu m in u m fo il fo r in s ta n c e )"
d e ta ilre p o rt_ ro o f s 3 = " In a ll o th e r c a s e s a m a s s iv e r o o f s h o u ld b e u s e d w ith a tim e la g o f h o u rs o r
m o re ."
d e t a i lr e p o r t_ o u td o o r l = " W h e n th e p la c e is w a r m w ith le s s r a in f a ll, s p a c e f o r o u t - d o o r s le e p in g h a s
t o b e p r o v id e d . M o r e o f te n th is w ill b e o n th e r o o f in w h ic h c a s e th e r o o f f in i s h s h o u ld b e s e le c te d to
w ith s ta n d fo o t- tra ffic ."
r e p o r t_ r a in p r o te c tio n l = " W ith h e a v y ra in f a ll o c c u r rin g e v e n in o n e m o n th o f th e y e a r s p e c ia l
p r o v i s i o n s f o r r o o f d r a i n a g e w i l l b e n e c e s s a r y . S t a g n a n t p o o l s m u s t b e a v o id e d . ( E .g . le v e l g u tte r s ) a s
th e s e w ill p ro v id e b re e d in g g ro u n d s fo r m o s q u ito e s . I n lo w c o s t b u ild in g s p o u ts a t r o o f le v e l o r e a v e s
d is c h a r g e is a c c e p ta b le i f th e f o o t o f th e w a lls is s u r r o u n d e d b y a c o n c r e te p a t h o r a p r o n 0 . 5m w id e ,
s lo p in g a w a y f r o m th e b u ild in g s "
For count = 0 T o 6 S te p 1
I f d e ta il_ re p o rt_ n u m b e r( c o u n t) = 1 T h e n
p o p u l a t e s t r i n g o p e n i n g s s i z e = d e ta ilre p o rt_ o p e n in g s _ s iz e 1
E l s e lf d e ta il re p o rt n u m b e r(c o u n t) = 2 T h e n
p o p u la te s tr in g _ o p e n in g s _ s iz e = d e ta ilre p o rt_ o p e n in g s _ s iz e 2
E l s e lf d e ta il_ re p o rt_ n u m b e r( c o u n t) = 3 T h e n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
128
p o p u la te s tr in g _ o p e n in g s _ s iz e = d e ta ilre p o rt_ o p e n in g s _ s iz e 3
E ls e lf d e ta ilre p o rtn u m b e r(c o u n t) = 4 T h e n
p o p u la te s tr in g o p e n i n g s s iz e = d e ta ilre p o rt_ o p e n in g s _ s iz e 4
E ls e lf d e ta ilre p o rtn u m b e r(c o u n t) = 5 T h e n
p o p u l a t e s t r i n g o p e n i n g s s i z e = d e ta ilre p o rt_ o p e n in g s _ s iz e 5
E ls e lf d e ta ilre p o rtn u m b e r( c o u n t) = 6 T hen
p o p u la te s tr in g _ o p e n in g s _ p o s itio n = d e ta ilre p o rt_ o p e n in g s _ p o s itio n l
E ls e lf d e ta ilr e p o rtn u m b e r( c o u n t) = 7 T h e n
p o p u la te s tr in g _ o p e n in g s _ p o s itio n = d e ta ilre p o rt_ o p e n in g s _ p o s itio n 2
E l s e l f d e ta il_ re p o rt_ n u m b e r( c o u n t) = 8 T hen
p o p u la te s tr in g _ o p e n in g s _ p ro te c tio n = d e ta ilre p o rt_ o p e n in g s _ p ro te c tio n 1
E l s e lf d e ta il_ re p o rt_ n u m b e r( c o u n t) = 9 T h e n
p o p u la te s tr in g _ o p e n in g s _ p ro te c tio n = d e ta ilre p o rt_ o p e n in g s _ p ro te c tio n 2
E l s e l f d e ta il_ re p o rt_ n u m b e r( c o u n t) = 1 0 T h e n
p o p u la te s trin g w a ll = d e ta ilre p o rtw a lls l
E ls e lf d e ta ilre p o rtn u m b e r(c o u n t) = 1 1 T h e n
p o p u la te s tr in g w a ll = d e ta ilre p o rt_ w a lls 2
E l s e lf d e ta il_ re p o rt_ n u m b e r( c o u n t) = 1 2 T h e n
p o p u la te s tr in g ro o f = d e ta ilre p o rtro o fs 1
E l s e l f d e ta il_ re p o rt_ n u m b e r( c o u n t) = 1 3 T h e n
p o p u la te s tr in g _ ro o f = d e ta ilre p o rt_ ro o f s 2
E l s e lf d e ta il_ re p o rt_ n u m b e r( c o u n t) = 1 4 T h e n
p o p u la te s tr in g _ r o o f = d e ta ilre p o rt_ ro o f s 3
E l s e l f d e ta il_ re p o rt_ n u m b e r( c o u n t) = 15 T h e n
p o p u la te s tr in g _ o u td o o r = d e ta ilr e p o r to u td o o r l
E ls e lf d e ta ilre p o rtn u m b e r( c o u n t) = 1 6 T h e n
p o p u la te s trin g ra in p ro te c tio n = d e ta ilre p o rtra in p ro te c tio n l
E nd If
N ext count
P o p u la te F R M D E T A IL S O P E N IN G p o p u la te s tr in g o p e n in g s s iz e ,
p o p u la te s tr in g _ o p e n in g s _ p o s itio n , _
p o p u la te s trin g _ o p e n in g s _ p ro te c tio n
P o p u la te F R M _ D E T A IL S _ W A L L S p o p u la te s tr in g w a ll
P o p u la te F R M D E T A IL S R O O F S p o p u la te s trin g ro o f
P o p u la te F R M D E T A IL S O U T D O O R p o p u la te s tr in g o u td o o r
P o p u la te F R M _ D E T A IL S _ R A IN P R O T E C T IO N p o p u la te s tr in g r a in p r o te c tio n
r e p o r t_ p a g e l_ te m p = " T e m p e ra tu re in d e g re e c e n tig ra d e (m o n th ly m e a n m a x ) o v e r th e 12 m o n th s
a re a s fo llo w s : " & v b C r L f & " "
F o r c o u n t = 0 T o 11 S te p 1
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
129
r e p o r t_ p a g e l_ h u m = " H u m id ity in p e rc e n ta g e (% ) ( m o n th ly m e a n m a x a m ) o v e r th e 12 m o n th s a re
a s fo llo w s : " & v b C r L f & " "
F o r c o u n t = 0 T o 11 S te p 1
If count < 1 1 T hen
r e p o r t_ p a g e l_ h u m = r e p o r t_ p a g e l_ h u m & m o n th ly _ m e a n _ m a x _ a m (c o u n t) & ", "
E lse
r e p o r t_ p a g e l_ h u m = r e p o r t_ p a g e l_ h u m & m o n th ly _ m e a n _ m a x _ a m (c o u n t)
E nd If
N ext count
' PA G E 2 REPO RT
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
130
r e p o r t a ir m o v e m e n tl = " R o o m s s h o u ld b e s in g le b a n k e d w ith w in d o w s in th e n o r th a n d s o u th
w a lls to e n s u r e a ir - m o v e m e n t b y a m p le c r o s s v e n tila tio n ."
re p o rt_ a ir m o v e m e n t2 = " R o o m s m a y b e d o u b le b a n k e d b u t p la n s h o u ld a llo w fo r te m p o ra ry c ro s s
v e n t i l a t i o n ( e .g . la r g e in t e r - c o n n e c t i n g d o o r s ) . I f w i n d is u n r e l i a b l e , o r s ite li m i t a t i o n s r e s t r i c t p la n n in g ,
fo r c ro s s -v e n tila tio n , c e ilin g m o u n te d fa n s m a y b e c o n s id e re d . T h is w o u ld re q u ire a r o o m h e ig h t o f
n o t le s s t h a n 2 .7 5 m , w h ic h m ig h t a f f e c t th e b a s ic b u ilt fo r m ."
r e p o r t _ a i r m o v e m e n t 3 = " I f a i r m o v e m e n t is n e v e r e s s e n t i a l , a n d is d e s i r a b l e f o r n o t m o r e t h a n a
m o n th , r o o m s c a n b e d o u b le b a n k e d a n d th e r e is n o t m u c h n e e d f o r c r o s s - v e n tila tio n ."
r e p o r t o p e n in g s l = " O p e n in g s s h o u ld b e la rg e , b e tw e e n 4 0 - 8 0 % o f th e n o r th a n d s o u th w a lls .
T h e s e n e e d n o t b e f u lly g la z e d , b u t s h o u ld b e p ro te c te d fr o m th e s u n , s k y -g la re a n d ra in , p re fe r a b ly b y
h o r iz o n ta l o v e r h a n g ."
r e p o r t_ o p e n in g s 2 = " O p e n in g s h a v e to b e v e r y s m a ll, le s s th a n 2 0 % o f th e w a ll."
r e p o r t_ o p e n in g s 3 = " O p e n in g s h a v e to b e m e d iu m , b e tw e e n 2 0 -4 0 % o f th e w a ll a re a . O p e n in g s in
th e e a s t w a ll m a y b e d e s ir a b le w h e r e c o ld s e a s o n is lo n g . I n w e s t w a ll o p e n in g s a r e a c c e p ta b le in
m o d e r a te o r c o ld c lim a te s , b u t u n d e r n o c ir c u m s ta n c e s in th e tr o p ic s ."
re p o r t o u td o o r l = " It s h o u ld b e p r o v id e d o n ro o fs b a lc o n ie s o r in p a tio s , s o th a t th e s le e p e rs a re
e x p o s e d to th e c o ld e s t p a r t o f th e n ig h t s k y , (th e z e n ith ) to in c re a s e h e a t lo s s b y o u tg o in g r a d ia tio n ."
r e p o r t r a i n p r o t e c t i o n l = " S p e c ia l p r o te c tiv e m e a s u r e s a r e n e e d e d i f r a in is f r e q u e n t a n d h e a v y - s u c h
a s d e e p v e r a n d a h s , w id e o v e r - h a n g s , c o v e r e d p a s s a g e s ."
'D i m p i c o b j e c t _ l a y o u t A s P i c t u r e
’D i m p i c o b j e c t s p a c i n g A s P i c t u r e
'D i m p i c o b j e c t _ a i r m o v e m n t A s P i c t u r e
'D i m p i c o b j e c t _ r a i n p r o t e c t i o n A s P i c t u r e
D im im a g e _ p a th A s S trin g
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
131
D im im a g e _ la y o u t A s S trin g
D im im a g e s p a c in g A s S trin g
D im im a g e _ a ir m o v e m e n t A s S trin g
D im i m a g e r a i n p r o t e c t i o n A s S trin g
D im im a g e o p e n in g A s S trin g
D im fW id th A s D o u b le , fH e ig h t A s D o u b le
' S e t a ll th e im a g e n a m e s h e re
im a g e j p a t h = A p p .P a th & " \T h e s is _ im a g e s \"
I f re p o rtn u m b e r(O ) = 1 T h e n
' L o a d te x t
fr m _ r e p o r t_ p g l.tx tb o x _ la y o u t.T e x t = r e p o r t l a y o u t l
’L o a d i m a g e
i m a g e l a y o u t = im a g e _ p a th & " E A S T - W E S T A X I S .g if 1
S e t p ic o b je c tl a y o u t = L o a d P ic tu re (im a g e _ la y o u t)
S e t f r m _ r e p o r t _ p g l . P i c t u r e 1 .P i c t u r e = p i c o b j e c t l a y o u t
'S t r e t c h t h e i m a g e
W ith f r m _ r e p o r t_ p g 1 .P ic tu re 1
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t _ p g l .p i c _ l a y o u t .P a i n t P i c t u r e f r m _ r e p o r t _ p g l .P i c t u r e 1, 0 , 0 ,
fW id th / 4 , fH e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f f m _ r e p o r t _ p g 1 .P i c t u r e 1 . V i s i b l e = F a l s e
E ls e lf re p o rtn u m b e r(O ) = 2 T h e n
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ la y o u t.T e x t = re p o rt_ la y o u t2
' L o a d Im ag e
im a g e la y o u t = im a g e _ p a th & " C O U R T Y A R D S .g if1
S e t p ic o b je c t_ la y o u t = L o a d P ic tu r e ( im a g e la y o u t)
S e t f r m _ r e p o r t _ p g l . P i c t u r e 1 .P i c t u r e = p i c o b j e c t _ l a y o u t
'S t r e t c h t h e i m a g e
W ith f r m _ r e p o r t_ p g l. P ic tu re 1
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
fHeight = .ScaleHeight
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t_ p g l.p ic _ la y o u t.P a in tP ic tu r e f r m _ r e p o r t_ p g l.P ic tu r e 1, 0 , 0 ,
f W id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
132
f r m _ r e p o r t _ p g l . P i c t u r e 1.V is ib le = F a ls e
E lse
f r m _ r e p o r t_ p g l.tx tb o x _ la y o u t.T e x t = " T h e r e a r e n o s u g g e s tio n s ."
E nd If
If re p o rtn u m b e r(l) = 3 T h en
' L o a d te x t
frm _ re p o rt_ p g l.tx tb o x _ s p a c in g .T e x t = r e p o r ts p a c i n g l
'L o a d i m a g e
im a g e _ s p a c in g = im a g e _ p a th & " W I D E S P A C I N G .g if 1
S e t p i c o b je c ts p a c i n g = L o a d P ic tu re (im a g e _ s p a c in g )
S e t fr m _ re p o rt_ p g l.P ic tu re 2 . P ic tu re = p ic o b je c t_ s p a c in g
'S t r e t c h t h e i m a g e
W ith fr m _ re p o rt_ p g l.P ic tu re 2
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t_ p g l.p ic _ s p a c in g .P a in tP ic tu r e f r m _ r e p o r t_ p g l.P ic tu r e 2 , 0 , 0,
fW id th / 4 , fH e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
fr m _ r e p o r t_ p g l.P ic tu r e 2 . V is ib le = F a ls e
E ls e lf re p o r tn u m b e r ( l) = 4 T h e n
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ s p a c in g .T e x t = re p o rt_ s p a c in g 2
' L o a d Im ag e
im a g e s p a c in g = im a g e _ p a th & " W I N D P R O T E C T I O N .g if '
S e t p ic o b je c t_ s p a c in g = L o a d P ic tu re (im a g e _ s p a c in g )
S e t ff m _ re p o rt_ p g l.P ic tu re 2 . P ic tu re = p ic o b je c ts p a c i n g
'S t r e t c h t h e i m a g e
W ith frm _ re p o rt_ p g l.P ic tu re 2
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
fr m _ r e p o r t_ p g l.p ic _ s p a c in g .P a in tP ic tu r e fr m _ r e p o r t_ p g l.P ic tu r e 2 , 0 , 0 ,
f W id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
fr m _ r e p o r t_ p g l.P ic tu r e 2 . V is ib le = F a ls e
E ls e lf re p o rt n u m b e r(l) = 5 T h e n
f h n _ r e p o r t_ p g l.tx tb o x _ s p a c in g .T e x t = re p o rt_ s p a c in g 3
' L o a d Im ag e
im a g e _ s p a c in g = im a g e _ p a th & " N A R R O W S P A C I N G .g if '
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
S e t p ic o b je c t s p a c in g = L o a d P ic tu r e ( im a g e s p a c in g )
S e t f r m _ re p o rt_ p g l.P ic tu re 2 .P ic tu re = p ic o b je c ts p a c i n g
'S t r e t c h t h e i m a g e
W ith frm _ re p o rt_ p g l.P ic tu re 2
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t_ p g l.p ic _ s p a c in g .P a in tP ic tu r e fr m r e p o r t_ p g 1.P ic tu r e 2 , 0 , 0 , _
f W id th / 4 , fH e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 2 . V is ib le = F a ls e
E nd If
I f re p o rt_ n u m b e r (2 ) = 6 T hen
' L o a d te x t
f f m _ r e p o r t_ p g l.tx tb o x _ a ir m o v e m e n t.T e x t = re p o r t_ a ir m o v e m e n tl
'L o a d i m a g e
im a g e a i r m o v e m e n t = im a g e _ p a th & " S I N G L E B A N K E D .g if '
S e t p ic o b je c t_ a ir m o v e m e n t = L o a d P ic tu re (im a g e _ a irm o v e m e n t)
S e t f r m _ r e p o r t_ p g l.P ic tu r e 3 .P ic tu r e = p i c o b je c ta ir m o v e m e n t
'S t r e t c h t h e i m a g e
W ith f r m _ re p o rt_ p g l.P ic tu re 3
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ re p o rt_ p g l.p ic _ a ir m o v e m e n t.P a in tP ic tu r e fr m _ re p o rt_ p g l.P ic tu re 3 , 0 , 0 , _
f W id th / 4 , fH e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 3 . V is ib le = F a ls e
E ls e lf re p o rt_ n u m b e r(2 ) = 7 T h e n
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ a ir m o v e m e n t.T e x t = re p o rt_ a ir m o v e m e n t2
' L o a d Im ag e
im a g e a irm o v e m e n t = im a g e _ p a th & " D O U B L E B A N K E D C R O S S V E N T .g if'
Set picobject airmovement = LoadPicture(image_airmovement)
S e t fr m _ r e p o r t_ p g l.P ic tu r e 3 .P ic tu r e = p i c o b je c ta ir m o v e m e n t
'S t r e t c h t h e i m a g e
W ith ffm _ re p o rt_ p g l.P ic tu re 3
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
134
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t_ p g l.p ic _ a ir m o v e m e n t.P a in tP ic tu r e f r m r e p o r t p g 1 ,P ic tu re 3 , 0 , 0 ,
fW id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 3 . V is ib le = F a ls e
E ls e lf re p o rt_ n u m b e r(2 ) = 8 T hen
f r m _ r e p o r t_ p g l.tx tb o x _ a ir m o v e m e n t.T e x t = re p o rt_ a ir m o v e m e n t3
' L o a d Im a g e
im a g e a ir m o v e m e n t = im a g e _ p a th & " D O U B L E B A N K E D .g if "
S e t p ic o b je c t a irm o v e m e n t = L o a d P ic tu re (im a g e _ a irm o v e m e n t)
S e t fr m _ r e p o r t_ p g l.P ic tu r e 3 .P ic tu r e = p ic o b je c ta ir m o v e m e n t
'S t r e t c h t h e i m a g e
W ith f r m _ re p o rt_ p g l.P ic tu re 3
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f tm _ re p o rt_ p g l.p ic _ a irm o v e m e n t.P a in tP ic tu re fr m _ re p o rt_ p g l.P ic tu re 3 , 0, 0,
f W id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 3 . V is ib le = F a ls e
E lse
f h n _ r e p o r t_ p g l.tx tb o x _ a ir m o v e m e n t.T e x t = " N o s u g g e s tio n s "
E nd If
I f re p o rt_ n u m b e r (3 ) = 9 T h e n
' L o a d te x t
fr m _ re p o rt_ p g l.tx tb o x _ o p e n n in g s .T e x t = r e p o r to p e n in g s l
'L o a d i m a g e
im a g e o p e n in g = im a g e _ p a th & " M O S T O P E N IN G S .g if'
S e t p ic o b je c to p e n in g = L o a d P ic tu re (im a g e o p e n in g )
S e t f r m _ r e p o r t_ p g l.P ic tu r e 5 .P ic tu r e = p ic o b je c t o p e n in g
'S t r e t c h t h e i m a g e
W ith f r m _ re p o rt_ p g l.P ic tu re 5
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ re p o rt_ p g l.p ic _ o p e n in g .P a in tP ic tu r e f f m _ r e p o rt_ p g l.P ic tu re 5 , 0 , 0 , _
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
135
f W id th / 4 , fH e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 5 . V is ib le = F a ls e
E l s e lf re p o rt_ n u m b e r(3 ) = 10 T h e n
' L o a d te x t
fr m _ r e p o r t_ p g l.tx tb o x _ o p e n n in g s .T e x t = re p o rt_ o p e n in g s 2
' L o a d Im ag e
im a g e _ o p e n in g = im a g e _ p a th & " M O D E R A T E O P E N I N G S .g if 1
S e t p ic o b je c t o p e n in g = L o a d P ic tu r e ( im a g e o p e n in g )
S e t f r m _ r e p o r t_ p g l.P ic tu r e 5 .P ic tu r e = p ic o b je c t_ o p e n in g
'S t r e t c h t h e i m a g e
W ith frm _ re p o rt_ p g l.P ic tu re 5
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
End If
E n d W ith
fr m _ re p o rt_ p g l.p ic _ o p e n in g .P a in tP ic tu r e fr m _ re p o rt_ p g l.P ic tu re 5 , 0 , 0 , _
fW id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
f r m _ r e p o r t_ p g l.P ic tu r e 5 . V is ib le = F a ls e
E l s e l f r e p o r t _ n u m b e r ( 3 ) = 11 T h e n
f r m _ r e p o rt_ p g l.tx tb o x _ o p e n n in g s .T e x t = re p o rt_ o p e n in g s 3
' L o a d im a g e
im a g e _ o p e n in g = im a g e _ p a th & " L E A S T O P E N IN G S .g if1
S e t p ic o b je c t o p e n in g = L o a d P ic tu r e ( im a g e o p e n in g )
S e t fr m _ r e p o r t_ p g l.P ic tu r e 5 .P ic tu r e = p ic o b je c t o p e n in g
'S t r e t c h t h e i m a g e
W ith f f m _ re p o rt_ p g l.P ic tu re 5
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
ff m _ re p o rt_ p g l.p ic _ o p e n in g .P a in tP ic tu r e fr m _ re p o rt_ p g l.P ic tu re 5 , 0 , 0 , _
f W id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
fr m _ r e p o r t_ p g l.P ic tu r e 5 .V is ib le = F a ls e
E lse
f r m _ r e p o r t_ p g l.tx tb o x _ o p e n n in g s .T e x t = " N o s u g g e s tio n s f o r o p e n in g s a re a v a ila b le f o r th e d a ta
th a t y o u h a v e p ro v id e d ."
E nd If
I f re p o rt_ n u m b e r(4 ) = 12 T h e n
' L o a d te x t
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
136
I f re p o rt_ n u m b e r(5 ) = 14 T h e n
1L o a d te x t
fn n _ r e p o r t_ p g l.tx tb o x _ r o o f .T e x t = r e p o r t r o o f l
'L o a d i m a g e
E ls e lf re p o rt_ n u m b e r (5 ) = 15 T h e n
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ r o o f .T e x t = re p o rt_ r o o f2
' L o a d Im a g e
End If
I f r e p o r t _ n u m b e r ( 6) = 1 6 T h e n
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ o u te rs le e p in g .T e x t = r e p o r t o u t d o o r l
'L o a d i m a g e
E lse
' L o a d te x t
f h n _ r e p o r t _ p g l .t x t b o x _ o u t e r s l e e p i n g .T e x t = " O u t d o o r s le e p in g a r e a is n o t r e c o m e n d e d . "
' L o a d Im ag e
End If
I f re p o rt_ n u m b e r (7 ) = 1 7 T h e n
' L o a d te x t
fr m _ r e p o r t_ p g l.tx tb o x _ ra in p ro te c tio n .T e x t = re p o rt_ r a in p ro te c tio n l
'L o a d i m a g e
' L o a d Im a g e
im a g e _ ra in p ro te c tio n = im a g e _ p a th & " R A I N P R O T E C T I O N .g if '
S e t p ic o b je c t_ r a in p ro te c tio n = L o a d P ic tu r e ( im a g e r a in p r o te c tio n )
S e t fr m _ r e p o r t_ p g l.P ic tu r e 4 .P ic tu r e = p ic o b je c tr a i n p r o te c ti o n
'S t r e t c h t h e i m a g e
W ith fr m _ re p o rt_ p g l.P ic tu re 4
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m _ r e p o r t_ p g l.p ic _ r a in p r o te c tio n .P a in tP ic tu r e f r m _ r e p o r t_ p g l.P ic tu r e 4 , 0 , 0 , _
f W id th / 4 , f H e ig h t / 3 , 0 , 0 , fW id th , fH e ig h t, v b S r c C o p y
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
137
f r m _ r e p o r t_ p g l.P ic tu r e 4 . V is ib le = F a ls e
E lse
' L o a d te x t
f r m _ r e p o r t_ p g l.tx tb o x _ r a in p r o te c tio n .T e x t = " P r o te c tio n f r o m h e a v y r a in is n o t r e q u ir e d in th is
a re a ."
E nd If
E n d F u n c tio n
F u n c tio n Im a g e V ie w F o rm R e s iz e ()
D im b a s e n u m A s In te g e r
b ase_ n u m = 120
ff m _ im a g e _ v ie w e r. W id th = f r m _ im a g e _ v ie w e r .P ic tu r e l.W id th + (b a s e num * 8)
fr m _ im a g e _ v ie w e r.H e ig h t = f r m i m a g e v i e w e r .P i c t u r e l .H e i g h t + (b a s e num * 20)
f r m i m a g e v i e w e r . F r a m e l . W id th = f r m _ im a g e _ v ie w e r .P ic tu r e l.W id th + (b a s e num * 4)
f r m i m a g e v i e w e r . F r a m e l . H e i g h t = f r m _ i m a g e _ v i e w e r . P i c t u r e 1 .H e i g h t + ( b a s e num * 6)
f r m _ i m a g e _ v i e w e r . C o m m a n d l . T o p = f r m i m a g e v i e w e r . P i c t u r e 1 .H e i g h t + ( b a s e n u m * 10)
f r m _ im a g e _ v ie w e r.C o m m a n d l. W id th = fr m im a g e v ie w e r .W id th - ( b a s e num * 4)
E n d F u n c tio n
D B p ro p e rtie s
O p tio n E x p lic it
P r iv a te S u b c m d _ c lo s e _ p ro p e rtie s _ C lic k ( )
U n lo a d M e
End Sub
P riv a te S u b F o rm _ L o a d ()
' a d d th e p o p u la te c o d e h e re
End Sub
r o p o r t p a g e -1
O p tio n E x p lic it
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
138
End Sub
P r iv a te S u b C o m m a n d l_ C lic k ( )
f r m _ r e p o r t_ p g l. V is ib le = F a ls e
E nd Sub
P riv a te S u b C o m m a n d 2 _ C lic k ()
E x itP ro g r a m
E nd Sub
P riv a te S u b C o m m a n d 3 _ C lic k ()
I f f r m m a i n . d ire c tio n = 0 T h e n
f r m r e p o r t.V i s ib le = F a ls e
f r m _ r e p o r t_ p g l. V is ib le = F a ls e
F r m _ p la c e s _ U S .V is ib le = T m e
E ls e lf frm m a in .d ir e c tio n = 1 T h e n
fr m _ re p o rt. V is ib le = F a ls e
f r m _ r e p o r t_ p g l. V is ib le = F a ls e
f r m _ p l a c e s _ n o t _ U S .A d o d e l . R e c o r d s e t . A b s o l u t e P o s i t i o n = f r m _ p l a c e s _ n o t _ U S . f o r _ r e p o r t
f r m _ p la c e s _ n o t_ U S .V is ib le = T m e
E nd If
E nd Sub
P riv a te S u b m n u _ s a v e _ C lic k ()
C o m m o n D ia lo g l.S h o w S a v e
End Sub
W ith f r m _ im a g e _ v ie w e r .P ic tu r e 1
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
fH e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
139
E nd If
E n d W ith
f r m i m a g e v i e w e r . P i c t u r e 1 .W id th = fW id th
f r m _ im a g e _ v ie w e r .P ic tu r e l. H e ig h t = fH e ig h t
Im a g e V ie w F o rm R e s iz e
E nd Sub
P r iv a te S u b p ic _ a ir m o v e m e n t_ M o u s e M o v e ( B u tto n A s In te g e r, S h ift A s I n te g e r, X A s S in g le , Y A s
S in g le )
p ic _ a ir m o v e m e n t.T o o lT ip T e x t = " C lic k h e r e to s e e th e e n tir e p ic tu r e "
E nd Sub
P riv a te S u b p ic _ la y o u t_ C lic k ( )
D im fW id th A s D o u b le , fH e ig h t A s D o u b le
frm _ im a g e _ v ie w e r. V is ib le = T ru e
f r m _ i m a g e _ v i e w e r . P i c t u r e l . P i c t u r e = f r m _ r e p o r t _ p g l . P i c t u r e 1 .P i c t u r e
W ith fr m _ im a g e _ v ie w e r.P ic tu re 1
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
fH e ig h t = .S c a le H e ig h t
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = ,S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m i m a g e v i e w e r . P i c t u r e l . W id th = fW id th
f tm _ im a g e _ v ie w e r .P ic tu r e l. H e ig h t = f H e ig h t
Im a g e V ie w F o rm R e s iz e
E nd Sub
P r iv a te S u b p ic _ la y o u t_ M o u s e M o v e ( B u tto n A s In te g e r, S h if t A s In te g e r, X A s S in g le , Y A s S in g le )
'p i c l a y o u t . M o u s e P o i n t e r = 10
p ic la y o u t.T o o lT ip T e x t = " C lic k h e r e to s e e th e e n tir e p ic tu r e "
E nd Sub
P riv a te S u b p ic _ o p e n in g _ C lic k ( )
D im fW id th A s D o u b le , fH e ig h t A s D o u b le
fr m _ im a g e _ v ie w e r.V is ib le = T m e
f r m _ im a g e _ v ie w e r .P ic tu r e l. P ic tu r e = f r m _ r e p o r t_ p g l.P ic tu r e 5 .P ic tu r e
W ith f r m _ im a g e _ v ie w e r.P ic tu re l
I f .A u to S iz e T h e n
fW id th = .S c a le W id th
f H e ig h t = .S c a le H e ig h t
E lse
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
140
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
E nd If
E n d W ith
f r m i m a g e v i e w e r . P i c t u r e l . W id th = fW id th
fr m _ im a g e _ v ie w e r .P ic tu r e l.H e ig h t = fH e ig h t
Im a g e V ie w F o rm R e s iz e
End Sub
P r iv a te S u b p ic _ o p e n in g _ M o u s e M o v e ( B u tto n A s In te g e r, S h if t A s In te g e r, X A s S in g le , Y A s S in g le )
p ic o p e n in g .T o o lT ip T e x t = " C lic k h e r e to s e e th e e n tir e p ic tu r e "
E nd Sub
W ith f r m _ im a g e _ v ie w e r.P ic tu re l
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
fH e ig h t = .S c a le H e ig h t
E lse
f W id th = ,S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
End If
E n d W ith
f r m _ im a g e _ v ie w e r .P ic tu r e l.W id th = fW id th
fr m _ im a g e _ v ie w e r .P ic tu r e l. H e ig h t = fH e ig h t
Im a g e V ie w F o rm R e s iz e
E nd Sub
P riv a te S u b p ic _ s p a c in g _ C lic k ()
D im fW id th A s D o u b le , fH e ig h t A s D o u b le
frm im a g e v ie w e r .V is ib le - T r u e
f r m i m a g e v i e w e r .P i c t u r e l .P i c t u r e = f r m _ r e p o r t_ p g l.P ic tu r e 2 .P ic tu r e
W ith f r m _ im a g e _ v ie w e r.P ic tu re l
I f .A u to S iz e T h e n
f W id th = .S c a le W id th
fH e ig h t = .S c a le H e ig h t
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
141
E lse
f W id th = .S c a le X ( .P ic tu r e .H e ig h t, v b H im e tr ic , .S c a le M o d e )
f H e ig h t = .S c a le Y ( .P ic tu r e .W id th , v b H im e tr ic , .S c a le M o d e )
End If
E n d W ith
f r m i m a g e v i e w e r . P i c t u r e l . W id th = fW id th
f r m _ im a g e _ v ie w e r . P ic tu r e 1.H e i g h t = f H e ig h t
Im a g e V ie w F o rm R e s iz e
E nd Sub
P r iv a te S u b p ic _ s p a c in g _ M o u s e M o v e ( B u tto n A s In te g e r, S h if t A s In te g e r, X A s S in g le , Y A s S in g le )
p ic _ s p a c in g .T o o lT ip T e x t = " C lic k h e r e to s e e th e e n tir e p ic tu r e "
E nd Sub
Im a g e V ie w e r p a g e
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
f r m i m a g e v i e w e r . V i s i b l e = F a ls e
E nd Sub
O p e n in g D e ta ils
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
fr m _ d e ta ils _ o p e n in g .V is ib le = F a ls e
E nd Sub
W a ll D e ta ils
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
fr m _ d e ta ils _ w a lls . V is ib le = F a ls e
E nd Sub
R o o f D e ta ils
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
fr m _ d e ta ils _ r o o f s .V is ib le = F a ls e
E nd Sub
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
frm d e ta ils o u td o o r.V is ib le = F a ls e
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
142
E nd Sub
O p tio n E x p lic it
P riv a te S u b C o m m a n d l_ C lic k ( )
f r m d e t a i l s r a i n p r o t e c t i o n . V i s i b l e = F a ls e
E nd Sub
D a ta F r o m W e b
O p tio n E x p lic it
D im a c c e s s F la g A s In te g e r
D im in te rc e p t A s In te g e r
P riv a te S u b c m d _ a d d _ to _ d b _ C lic k ()
D im s tr tx t U R L A s S trin g
D im s tr b u f f e r A s S trin g
'D i m d o n e A s B o o l e a n
D im l o c a t i o n d e m a r k c o u n t e r A s In te g e r
D im lo c a tio n _ c o u n te r A s In te g e r
D im m a rk l A s L o n g
D im m a rk 2 A s L o n g
D im a u x A s L o n g
D im a u x l A s L o n g
D im a u x 2 A s L o n g
D im s ta rt_ p o in t A s L o n g
D im e n d _ p o in t A s L o n g
D im fo rc e d lo o p c o n d itio n l A s In te g e r
D im fo rc e d lo o p c o n d itio n A s In te g e r
D im c o m m a _ c o u n te r A s In te g e r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
143
D im o ld _ m o n th A s In te g e r
D im t h i s m o n t h A s S trin g
D im th is _ d a y A s S trin g
D im th is _ h o u r A s S trin g
D im t m p h o l d e r A s S trin g
D im n u m _ th is _ h o u r A s In te g e r
D im n u m th is d a y A s In te g e r
D im n u m t h i s m o n t h A s In te g e r
D im d b t_ h r A s D o u b le
D im m in _ m a x _ h r A s D o u b le
D im p r c p t_ h r A s D o u b le
D im d b t(2 4 ) A s D o u b le
D im n u m A s D o u b le
D im m in _ m a x (2 4 ) A s D o u b le
D im s u m _ m in _ m a x _ a m A s D o u b le
D im s u m _ m in _ m a x _ p m A s D o u b le
D im s u m _ m in _ m a x _ a m _ a v g A s D o u b le
D im s u m _ m in _ m a x _ p m _ a v g A s D o u b le
D im s u m _ p re c ip ia tio n A s D o u b le
D im s u m _ p re c ip ia tio n _ a v g A s D o u b le
D im s u m d b t m a x A s D o u b le
D im s u m d b t m in A s D o u b le
D im e n trie s A s In te g e r
D im i A s In te g e r
D im j A s In te g e r
in te rc e p t = 1
c m d _ a d d _ to _ d b . E n a b le d = F a ls e
c m d g o to .E n a b le d = F a ls e
c m d _ c lo s e .E n a b le d = F a ls e
P r o g r e s s B a r l. V is ib le = T m e
s tr_ tx t_ U R L = tx t U R L .T e x t
I f tx t_ U R L .T e x t = "" T h e n
M s g B o x " E i th e r c lic k o n a U R L th a t is s u p p lie d in th e b r o w s e r w in d o w o r in s e r t y o u o w n U R L " ,
v b C ritic a l
E x it S u b
E nd If
I f R ig h t$ ( s tr _ tx t_ U R L , 4 ) = " .e p w " O r R ig h t$ ( s tr _ tx t_ U R L , 4 ) = " .E P W " T h e n
' D o n o th in g
E lse
M s g B o x " P le a s e m a k e s u r e t h a t i t is a n U R L t h a t e n d s w i t h .E P W o r .e p w " , v b C r i t i c a l
t x t U R L .S e t F o c u s
E x it S u b
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
144
E nd If
W e b B r o w s e r l.N a v ig a te tx t_ U R L .T e x t
' O n ly i f th e b r o w s e r is r e a c h a b le
I f a c c e s s F la g = 0 T h e n
M s g B o x " L o c a t i o n i s u n r e a c h a b l e !" , v b C r i t i c a l
tx t_ U R L . S e tF o c u s
E x it S u b
E nd If
' M a in c o d e h e re
s tr _ b u f f e r = I n e t l .O p e n U R L ( tx t_ U R L .T e x t)
' p a rs e th e m a s te r s trin g
m a rk l = 0
m a rk 2 = 0
lo c a tio n _ d e m a rk _ c o u n te r = 0
lo c a tio n c o u n te r = 0
aux = 0
Do
aux = m a rk l
m a r k l = I n S tr ( a u x + 1, s tr b u f f e r ,
If m a rk l = 0 T h en
E x it D o ' S a fe g u a rd
E lse
lo c a tio n _ d e m a r k _ c o u n te r = lo c a t i o n d e m a r k c o u n t e r + 1
E nd If
I f lo c a tio n d e m a rk c o u n te r = 3 T h e n
s ta t e = M id ( s tr _ b u f f e r , a u x + 1, ( m a r k l - ( a u x + 1 )))
lo c a tio n _ c o u n te r = lo c a tio n c o u n t e r + 1
E ls e lf lo c a tio n _ d e m a rk _ c o u n te r = 7 T h e n
la titu d e = M i d ( s tr _ b u f f e r , a u x + 1, ( m a r k l - ( a u x + 1 )))
lo c a tio n c o u n te r = lo c a tio n c o u n te r + 1
E ls e lf lo c a tio n _ d e m a r k _ c o u n te r = 9 T h e n
m a rk 2 = In S tr(a u x + 1, s tr_ b u ff e r , C h r(1 3 ) )
a ltitu d e = M i d ( s tr _ b u f f e r , m a r k l + 1, ( m a r k 2 - ( m a r k l + 1 )))
E x it D o
E nd If
m a r k 2 = I n S t r ( m a r k l + 1, s tr _ b u f f e r ,
I f m a rk 2 = 0 T h e n
E x it D o ' S a fe g u a rd
E lse
lo c a tio n _ d e m a r k _ c o u n te r = lo c a tio n _ d e m a r k _ c o u n te r + 1
E nd If
I f lo c a tio n d e m a rk c o u n te r = 2 T h e n
c ity = M i d ( s tr _ b u f f e r , m a r k l + 1, ( m a r k 2 - ( m a r k l + 1 )))
lo c a tio n c o u n te r = lo c a tio n c o u n te r + 1
E ls e lf lo c a tio n d e m a rk c o u n te r = 4 T h e n
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
145
c o u n tr y = M id ( s tr _ b u f f e r , m a r k l + 1, ( m a r k 2 - ( m a r k l + 1 )))
lo c a tio n _ c o u n te r = lo c a tio n _ c o u n te r + 1
E ls e lf lo c a tio n _ d e m a rk _ c o u n te r = 8 T hen
l o n g itu d e = M id ( s tr _ b u f f e r , m a r k l + 1, ( m a r k 2 - ( m a r k l + 1 )))
lo c a tio n c o u n te r = lo c a tio n c o u n te r + 1
E nd If
m a rk l = m a rk 2
P r o g r e s s B a r l. V a lu e = 2 0
' M a k e s u r e th a t th e u s e r is n o t r e - e n te r in g th e s a m e p la c e
fr m jp la c e s _ n o t_ U S . A d o d c 1.R e c o rd s e tM o v e F irs t
P r o g r e s s B a r l. V a lu e = 3 0
c o m m a c o u n te r = 0
fo rc e d lo o p c o n d itio n l = 1
fo rc e d lo o p c o n d itio n = 1
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
146
th is m o n th = 1
th is _ d a y = 1
th is _ h o u r = 1
s u m d b tm a x = 0
s u m d b tm in = 0
s u m m in m a x a m = 0
s u m _ m in _ m a x _ p m = 0
s u m m in m a x a m a v g = 0
s u m _ m in _ m a x _ p m _ a v g = 0
s u m _ _ p re c ip ia tio n = 0
s u m _ p re c ip ia tio n _ a v g = 0
Do
a u x = s ta r t_ p o in t
e n d _ p o in t = I n S tr(s ta rt_ p o in t, s tr_ b u ff e r , C h r(1 3 ) , v b B in a r y C o m p a r e )
c o m m a c o u n te r = 0
Do
a u x = I n S tr ( a u x + 1, s t r _ b u f f e r , v b B i n a r y C o m p a r e )
c o m m a c o u n te r = c o m m a _ c o u n te r + 1
'I f th is m o n th = 1 2 A n d th is _ d a y = 31 A n d t h i s h o u r = 2 3 T h e n
' M s g B o x " Y a H o o " , v b O K O n ly
'E n d I f
If com m a c o u n te r = 1 T h e n
' th is m o n th
a u x l = In S tr(a u x + 1, s t r _ b u f f e r , v b B i n a r y C o m p a r e )
th is m o n t h = M id ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
n u m _ th is _ m o n th = C ln t( th is m o n th )
E ls e lf c o m m a c o u n te r = 2 T h e n
' th is _ d a y
a u x l = I n S tr ( a u x + 1, s t r _ b u f f e r , v b B i n a r y C o m p a r e )
t h i s _ d a y = M i d ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
n u m _ th is _ d a y = C ln t( th is d a y )
E ls e lf c o m m a _ c o u n te r = 3 T h e n
' th is hour
a u x l = In S tr(a u x + 1, s t r b u f f e r , v b B in a ry C o m p a re )
th is h o u r = M id ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
num th is h o u r = C ln t(th is h o u r)
' P ic k o th e r in fo r m a tio n h e re
' dbt
E ls e lf c o m m a _ c o u n te r = 6 T hen
a u x l = I n S tr ( a u x + 1, s tr _ b u f f e r , v b B in a ry C o m p a re )
t m p h o l d e r = M id ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
d b t_ h r = C D b l( tm p h o ld e r )
' m ean_m ax_am / pm
E ls e lf c o m m a c o u n te r = 8 T hen
a u x l = I n S tr ( a u x + 1, s tr b u f f e r , v b B in a ry C o m p a re )
tm p h o l d e r = M id ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
m in _ m a x _ h r = C D b l( tm p h o ld e r )
' m o n th ly ra in fa ll
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
E ls e lf c o m m a c o u n te r = 2 8 T h e n
a u x l = I n S tr ( a u x + 1, s t r b u f f e r , v b B i n a r y C o m p a r e )
tm p h o l d e r = M id ( s tr _ b u f f e r , a u x + 1, a u x l - ( a u x + 1 ) )
p r c p t h r = C D b l(tm p _ h o ld e r)
E x it D o
E nd If
L o o p U n til f o r c e d l o o p c o n d i t i o n l = 0
' L o o k a h e a d o ld m o n th c a lc u la tio n
c o m m a c o u n te r = 0
s ta rt_ p o in t = e n d _ p o in t + 2
Do
a u x 2 = I n S t r ( s ta r t_ p o in t + 1, s tr b u f f e r , v b B i n a r y C o m p a r e )
c o m m a c o u n te r = c o m m a _ c o u n te r + 1
'I f th is m o n th = 1 2 A n d th is d a y = 3 1 A n d th is _ h o u r = 2 3 T h e n
1 M s g B o x " Y a H o o " , v b O K O n ly
'E n d I f
If num th is m o n th = 1 2 A n d n u m th is d a y = 31 A n d n u m th is hour = 24 T hen
o ld _ m o n th =12
E x it D o
E lse
I f c o m m a _ c o u n te r = 1 T h e n
' o ld m o n th
a u x l = I n S tr ( a u x 2 + 1, s t r _ b u f f e r , v b B i n a r y C o m p a r e )
t m p _ h o l d e r = M id ( s tr _ b u f f e r , a u x 2 + 1, a u x l - ( a u x 2 + 1 ))
o l d m o n t h = C In t(tm p _ h o ld e r)
E x it D o
E nd If
E nd If
L o o p U n til fo rc e d lo o p c o n d itio n l = 0
' S e t c o n d itio n s
I f n u m _ th is _ h o u r = 2 4 T h e n
I f o ld _ m o n th = n u m _ th is _ m o n th T h e n
' F IN D D B T E N T R IE S
d b t(n u m _ th is _ h o u r - 1) = d b th r
e n trie s = 2 3
' s o r t 2 4 e n trie s
' fin d th e m a x im u m a n d m in im u m
F o r i = 0 T o 23
F o r j = 0 T o e n trie s - 1
I f d b t( j) > d b t(j + 1) T h e n
n u m = d b t(j)
d b t(j) = d b t(j + 1)
d b t(j + 1) = num
E nd If
N ext
e n trie s = e n trie s -1
N ext
n u m = d b t(2 3 )
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
148
s u m _ d b t_ m a x = s u m _ d b t_ m a x + n u m
n u m = d b t(O )
s u m _ d b t_ m in = s u m d b t m i n + n u m
' F IN D M IN M A X E N T R IE S
m in _ m a x (n u m _ th is _ h o u r - 1) = m in _ m a x _ h r
F o r i = 0 T o 23
I f i < 12 T h e n
s u m m in m a x a m = s u m _ m in _ m a x _ a m + m i n m a x ( i )
E lse
s u m _ m in _ m a x _ p m = s u m _ m in _ m a x _ p m + m i n m a x ( i )
E nd If
N ext i
n u m = s u m _ m in _ m a x _ a m /1 2
s u m _ m in _ m a x _ a m _ a v g = s u m _ m in _ m a x _ a m _ a v g + n u m
s u m _ m in _ m a x _ a m = 0
n u m = s u m _ m in _ m a x _ p m / 12
s u m _ m in _ m a x _ p m _ a v g = s u m _ m in _ m a x _ p m _ a v g + n u m
s u m _ m in _ m a x _ p m = 0
' P R E C IP IT A T IO N E N T R IE S
s u m _ p re c ip ia tio n = s u m _ p re c ip ia tio n + p rc p t_ h r
s u m _ p re c ip ia tio n = s u m _ p re c ip ia tio n / 2 4
s u m _ p re c ip ia tio n _ a v g = s u m _ p re c ip ia tio n _ a v g + s u m _ p re c ip ia tio n
s u m _ p re c ip ia tio n = 0
I f n u m _ th is _ m o n th = 1 2 A n d n u m t h i s d a y = 31 A n d n u m _ th is _ h o u r = 2 4 T h e n
s u m _ d b t_ m a x = s x u n _ d b t_ m a x / n u m t h i s d a y
lo c a l_ m o n th ly _ m e a n _ m a x ( n u m _ th is _ m o n th - 1) = sum dbt m ax
s u m _ d b t_ m a x = 0
s u m d b t m i n = s u m _ d b t_ m in / n u m _ th is _ d a y
lo c a l_ m o n th ly _ m e a n _ m in (n u m _ th is _ m o n th - 1) = s u m d b tm in
s u m _ d b t_ m in = 0
s u m _ m in _ m a x _ a m _ a v g = s u m _ m in _ m a x _ a m _ a v g / n u m t h i s d a y
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (n u m _ th is _ m o n th - 1) = s u m _ m in _ m a x _ a m _ a v g
s u m m i n m a x a m a v g = 0
s u m _ m in _ m a x _ p m _ a v g = s u m _ m in _ m a x _ p m _ a v g / n u m _ th is _ d a y
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( n u m _ th is _ m o n th - 1) = s u m _ m in _ m a x _ p m _ a v g
s u m _ m in _ m a x _ p m _ a v g = 0
E ls e lf o ld _ m o n th < > n u m _ th is _ m o n th T h e n
s u m _ d b t_ m a x = s u m _ d b t_ m a x / n u m _ th is _ d a y
lo c a l_ m o n th ly _ m e a n _ m a x ( n u m _ th is _ m o n th - 1) = s u m d b tm a x
s u m d b tm a x = 0
s u m _ d b t_ m in = s u m _ d b t_ m in / n u m t h i s d a y
lo c a l_ m o n th ly _ m e a n _ m in (n u m _ th is _ m o n th - 1) = s u m _ d b t_ m in
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
149
s u m d b tm in = 0
s u m m i n m a x a m a v g = s u m m i n m a x a m a v g / num th is day
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (n u m _ th is _ m o n th - 1) = s u m _ m in _ m a x _ a m _ a v g
s u m m i n m a x a m a v g = 0
s u m _ m in _ m a x _ p m _ a v g = s u m _ m in _ m a x _ p m _ a v g / n u m t h i s d a y
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( n u m _ th is _ m o n th - 1) = s u m _ m in _ m a x _ p m _ a v g
s u m _ m in _ m a x _ p m _ a v g = 0
s u m _ p re c ip ia tio n _ a v g = s u m _ p re c ip ia tio n _ a v g / n u m _ th is _ d a y
lo c a l_ m o n th ly _ ra in fa ll_ m m (n u m _ th is _ m o n th - 1) = s u m _ p re c ip ia tio n _ a v g
s u m _ p re c ip ia tio n _ a v g = 0
E nd If
E lse
d b t(n u m _ th is _ h o u r - 1) = d b t_ h r
m in _ m a x (n u m _ th is _ h o u r - 1) = m in m a x h r
s u m _ p re c ip ia tio n = s u m _ p re c ip ia tio n + p r c p t h r
End If
I f n u m t h i s m o n t h = 1 2 A n d th is _ d a y = 31 A n d th is h o u r = 2 4 T h e n
fo rc e d lo o p c o n d itio n = 0
End If
L o o p U n til fo rc e d lo o p c o n d itio n = 0
P r o g r e s s B a r l. V a lu e = 6 0
’ c o n n e c t to d a ta b a s e
’ T h e c o n n e c tio n s tr in g h a s a lr e a d y b e e n c r e a te d in th e d e s ig n v ie w
fr m _ p la c e s _ n o t_ U S . A d o d c 1 .R e c o rd s e t.M o v e L a s t
1A d d to d a ta b a s e o n ly i f th e n a m e o f th e p la c e is n o t lis te d a s a n e n tr y in th e d a ta b a s e
1p u t th e m in th e ir r e s p e c tiv e fie ld s
f r m _ p la c e s _ n o t_ U S . A d o d c 1.R e c o rd s e t. A d d N e w
frm _ _ p la c e s _ n o t_ U S . A d o d c 1 .R e c o r d s e t.F ie ld s ( " N a m e _ o f _ th e j d a c e " ) = c ity
frm_places_not_US.Adodcl.Recordset.Fields("January mean max temp") =
I o c a l _ m o n t h l y _ m e a n _ m a x ( 0)
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " F e b r u a r y m e a n m a x te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x ( 1)
P r o g r e s s B a r l. V a lu e = 6 4
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a r c h m e a n m a x te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x ( 2)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A p r il m e a n m a x te m p " ) =
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
150
lo c a l_ m o n th ly _ m e a n jm a x (3 )
P r o g r e s s B a r l. V a lu e = 6 4
f f m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a y m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x ( 4 )
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u n e m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x ( 5 )
P r o g r e s s B a r l. V a lu e = 6 4
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u ly m e a n m a x te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x ( 6)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A u g u s t m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x ( 7 )
P r o g r e s s B a r l. V a lu e = 68
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " S e p te m b e r m e a n m a x te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x ( 8)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " O c to b e r m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x (9 )
P r o g r e s s B a r l. V a lu e = 68
f r m _ p la c e s _ n o t_ U S . A d o d c l.R e c o r d s e t.F ie ld s ( " N o v e m b e r m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x ( 10)
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " D e c e m b e r m e a n m a x te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m a x ( 11)
P r o g r e s s B a r l. V a lu e = 68
ff m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J a n u a r y m e a n m in te m p " ) =
I o c a l _ m o n t h l y _ m e a n _ m i n ( 0)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " F e b m a r y m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in ( 1)
P r o g r e s s B a r l. V a lu e = 7 2
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a r c h m e a n m in te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m i n ( 2)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A p r il m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in (3 )
P r o g r e s s B a r l. V a lu e = 7 2
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a y m e a n m in te m p " ) = lo c a l_ m o n th ly _ m e a n _ m in (4 )
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u n e m e a n m in te m p " ) = lo c a l_ m o n th ly _ m e a n _ m in (5 )
P r o g r e s s B a r l. V a lu e = 7 2
f r m _ p l a c e s _ n o t _ U S . A d o d c 1 .R e c o r d s e t . F i c l d s ( " J u l y m e a n m i n t e m p " ) = l o c a l _ m o n t h l y _ m e a n _ m i n ( 6 )
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A u g u s t m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in (7 )
P r o g r e s s B a r l. V a lu e = 7 6
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " S e p te m b e r m e a n m in te m p " ) =
l o c a l _ m o n t h l y _ m e a n _ m i n ( 8)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " O c to b e r m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in (9 )
P r o g r e s s B a r l.V a lu e = 7 6
frm p la c e s ^ n o t U S .A d o d c 1.R e c o r d s e t.F ie ld s (" N o v e m b e r m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in ( 10)
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " D e c e m b e r m e a n m in te m p " ) =
lo c a l_ m o n th ly _ m e a n _ m in (l 1)
P r o g r e s s B a r l.V a lu e = 7 6
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J a n u a r y R H m e a n m a x a m " ) =
I o c a l _ m o n t h l y _ m e a n _ m a x _ a m ( 0)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " F e b m a r y R H m ean m ax am ") =
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
151
lo c a lm o n th ly _ m e a n _ m a x _ a m ( 1)
P r o g r e s s B a r l.V a lu e = 8 0
fr m _ p la c e s _ n o t_ U S . A d o d c l.R e c o rd s e t.F ie ld s (" M a r c h R H m ean m ax am ") =
l o c a l _ m o n t h l y _ m e a n _ m a x _ a m ( 2)
f r m _ p la c e s _ n o t_ U S . A d o d c l.R e c o r d s e t.F ie ld s ( " A p r il R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (3 )
P r o g r e s s B a r l.V a lu e = 8 0
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a y R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (4 )
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u n e R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (5 )
P r o g r e s s B a r l.V a lu e = 8 0
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u ly R H m e a n m a x a m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ a m ( 6)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A u g u s t R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m ( 7 )
P r o g r e s s B a r l.V a lu e = 8 4
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " S e p te m b e r R H m e a n m a x a m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ a m ( 8)
f r m _ p la c e s _ n o t_ U S .A d o d c 1 .R e c o r d s e t.F ie ld s ) " O c to b e r R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m ( 9 )
P r o g r e s s B a r l.V a lu e = 8 4
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " N o v e m b e r R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m ( 10)
fr m _ p la c e s _ n o t_ U S . A d o d c l.R e c o rd s e t.F ie ld s (" D e c e m b e r R H m e a n m a x a m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ a m (l 1)
P r o g r e s s B a r l.V a lu e = 8 4
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J a n u a r y R H m e a n m a x p m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ p m ( 0)
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " F e b r u a r y R H m e a n m a x p m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ p m ( 1)
P r o g r e s s B a r l.V a lu e = 88
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a r c h R H m e a n m a x p m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ p m ( 2)
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " A p r il R H m e a n m a x p m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( 3 )
P r o g r e s s B a r l.V a lu e = 88
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " M a y R H m e a n m a x p m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( 4 )
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u n e R H m e a n m a x p m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ p m (5 )
P r o g r e s s B a r l.V a lu e = 88
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " J u ly R H m e a n m a x p m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ p m ( 6)
frm _places_not_US.Adodcl.Recordset.Fields("August RH mean max pm") =
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( 7 )
P r o g r e s s B a r l.V a lu e = 9 2
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " S e p te m b e r R H m e a n m a x p m " ) =
l o c a l _ m o n t h l y _ m e a n _ m a x _ p m ( 8)
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " O c to b e r R H m e a n m a x p m " ) =
lo c a l_ m o n th ly _ m e a n _ m a x _ p m (9 )
P r o g r e s s B a r l.V a lu e = 9 2
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
152
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.U p d a te
P r o g r e s s B a r l .V is ib le = F a ls e
M s g B o x " A d d itio n to D a ta b a s e : C O M P L E T E !", v b O K O n ly
c m d a d d _ to _ d b .E n a b le d = T m e
c m d _ g o to .E n a b le d = T m e
c m d _ c lo s e .E n a b le d = T m e
in te rc e p t = 0
' D EBU G STA TEM EN TS
'F o r i = 0 T o 11
' M s g B o x " D B T m a x : " & lo c a l_ m o n th ly _ m e a n _ m a x (i) & " D B T m in : " &
lo c a l_ m o n th ly _ m e a n _ m in (i) & _
' C h r(1 3 ) & " R H a m : " & lo c a l_ m o n th ly _ m e a n _ m a x _ a m (i) & " R H p m : " &
lo c a l_ m o n th ly _ m e a n _ m a x _ p m ( i) & _
' C h r(1 3 ) & " R a in fa ll in m m : " & lo c a l_ m o n th ly _ ra in fa ll_ m m (i), v b O K O n ly
'N e x t i
E nd Sub
P riv a te S u b c m d _ c lo s e _ C lic k ()
D im c o u n t A s In te g e r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
153
D im c u rre n t_ p o s itio n A s In te g e r
D im la s t_ in d e x A s In te g e r
f r m _ p la c e s _ n o t_ U S .S e tF o c u s
f r m _ d a ta _ f r o m _ w e b .V is ib le = F a ls e
f r m _ p la c e s _ n o t_ U S .A d o d c 1 .R e f r e s h
' G e t it b a c k to th e s a m e n a m e o f th e p la c e
c u rre n t_ _ p o s itio n = f r m _ p la c e s _ n o t_ U S . A d o d c 1 .R e c o r d s e t. A b s o l u te P o s it io n
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.M o v e F ir s t
fr m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.M o v e L a s t
ffm _ _ p la c e s _ n o t_ U S . A d o d c 1 .R e c o r d s e t.M o v e F ir s t
F o r c o u n t = 1 T o la s t in d e x S te p 1
f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t. A b s o lu te P o s itio n = c o u n t
I f f r m _ p la c e s _ n o t_ U S .A d o d c l.R e c o r d s e t.F ie ld s ( " N a m e _ o f _ th e _ p la c e " ) . V a lu e = c ity T h e n
c u rre n t_ p o s itio n = c o u n t
'f r m _ p l a c e s _ n o t _ U S . A d o d c 1 . R e c o r d s e t . A b s o l u t e P o s i t i o n = c u r r e n t _ p o s i t i o n
f r m _ p la c e s _ n o t_ U S .V is ib le = T r u e
E nd If
N ext count
E nd Sub
P riv a te S u b c m d _ g o to _ C lic k ()
W e b B r o w s e r l.N a v ig a te t x t U R L .T e x t
E nd Sub
P riv a te S u b F o rm _ L o a d ()
' a c c e s s F la g = 0
in te rc e p t = 0
' 1 - U R L c o n n e c te d to th e r ig h t lo c a tio n
' 0 - U R L is n o t c o n n e c t e d p r o p e r l y - e r r o r
W e b B r o w s e r l .N a v ig a te
" h ttp ://w w w .e r e n .d o e .g o v /b u ild in g s /e n e r g y _ to o ls /e n e r g y p lu s /w e a th e r d a ta .h tm l"
End Sub
P riv a te S u b W e b B r o w s e r l D o c u m e n tC o m p le te (B y V a l p D is p A s O b je c t, U R L A s V a ria n t)
tx t_ U R L .T e x t = U R L
I f in te rc e p t = 0 T h e n
c m d _ a d d _ to _ d b .E n a b le d = T m e
E nd If
E nd Sub
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
154
P r iv a te S u b W e b B r o w s e rl_ D o w n lo a d B e g in ()
a c c e s s F la g = 0
' 1 - U R L c o n n e c te d to th e rig h t lo c a tio n
10 - U R L is n o t c o n n e c te d p r o p e r ly - e r r o r
I f in te rc e p t = 0 T h e n
c m d _ a d d _ to _ d b .E n a b le d = F a ls e
E nd If
E nd Sub
P r iv a te S u b W e b B ro w s e r l_ D o w n lo a d C o m p le te ()
a c c e s s F la g = 1
11 - U R L c o n n e c te d to th e rig h t lo c a tio n
' 0 - U R L is n o t c o n n e c t e d p r o p e r l y - e r r o r
E nd Sub
S p la s h S c re e n
O p tio n E x p lic it
P r iv a te S u b F o r m _ K e y P re s s (K e y A s c ii A s In te g e r)
U n lo a d M e
E nd Sub
P riv a te S u b F o r m _ L o a d ()
T im e r l .E n a b le d = T ru e
T im e r l.I n te r v a l = 2 0 0 0
'l b l V e r s i o n . C a p t i o n = " V e r s i o n " & A p p . M a j o r & & A p p .M in o r & & A p p .R e v is io n
'l b l P r o d u c t N a m e . C a p t i o n = A p p . T i t l e
E nd Sub
P riv a te S u b F ra m e l_ C lic k ( )
U n lo a d M e
E nd Sub
P riv a te S u b T im e r l_ T im e r ()
fr m S p la s h . V is ib le = F a ls e
fr m _ m a in . V is ib le = T ru e
U n lo a d M e
E nd Sub
10.2 F rom M eteorological D ata to B ioclim atic D esign30 years o f the M ahoney
Tables
J o h n M a r tin E v a n s
R e s e a rc h C e n tre H a b ita t & E n e rg y ,
F a c u lty o f A rc h ite c tu re , D e s ig n & U rb a n is m , U n iv e r s ity o f B u e n o s A ire s
C C 1 7 6 5 , C o rre o C e n tra l, (1 0 0 0 ) C a p ita l F e d e ra l, A rg e n tin a
e -m a il: e v a n s @ f a d u .u b a .a r
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
155
A b s tr a c t T h is p a p e r p r e s e n ts th e g e n e s is , c o n c e p ts a n d a p p lic a tio n o f th e M a h o n e y T a b le s , d e v e lo p e d
b y D r O tto K o e n i g s b e r g e r , C a r l M a h o n e y a n d th e a u th o r , f i r s t p u b l i s h e d in U n ite d N a tio n s
m o n o g r a p h in 1 9 7 1 . T h e T a b le s p r o v i d e a m e t h o d o f c lim a tic a n a ly s i s u s i n g s i m p l e m e te o r o lo g ic a l
d a ta to g e n e r a t e d e s ig n g u id e lin e s f o r w a r m - h u m id , h o t- d r y , c o m p o s ite a n d c o o l c lim a te s . T h e y c o v e r
a f o u r - s t a g e p r o c e s s o f a n a ly s is : c lim a tic d a ta , c o m fo r t e v a lu a tio n , in d ic a to r s o f b io c lim a tic s tr e s s
a n d d e s ig n r e c o m m e n d a tio n s . T h e a p p lic a tio n o f th e T a b le s is e x p la in e d , to g e th e r w ith a n e v a lu a tio n
o f th e ir p o s i t i v e a s p e c ts , v a lid ity a n d lim ita tio n s . T h e p a p e r a ls o id e n tifie s a s e r ie s o f le s s o n s f o r th e
fu tu r e .
1. Introduction
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
156
p r o b l e m is n o t th e e x tr e m e s w h ic h h a v e a c h a r a c te r is tic c lim a te a n d c le a r d e s ig n s tr a te g ie s , b u t r a th e r
th e tr a n s itio n a l re g io n s .
T h e s c h o o l d e s ig n e rs n e e d e d in fo r m a tio n o n tw o q u e s tio n s :
• D e s ig n G u id e lin e s : H o w s h o u ld th e a r c h ite c tu r e c h a n g e in re s p o n s e to th e c lim a tic v a ria tio n s ?
• B io c lim a tic Z o n in g : W h e r e a re th e s e d e s ig n v a ria tio n s re q u ir e d a n d w h a t w a s th e g e o g ra p h ic a l
re g io n f o r th e a p p lic a tio n o f e a c h d is tin c t s e t o f g u id e lin e s ?
• T h e c o n c e p ts o f th e M a h o n e y T a b le s w e re o r ig in a lly d e v e lo p e d in r e s p o n s e to th e s e q u e s tio n s .
3 D evelopm ent
T h e m e th o d w a s d e v e lo p e d u s in g a n in fo rm a l s u rv e y to o b ta in b a s ic in fo r m a tio n o n th e im p a c t o f
c lim a te o n c o m f o r t a n d d e s ig n d u rin g th e d if f e r e n t m o n th s o f th e y e a r:
M o n th s c o n s id e r e d c o ld , c o o l, c o m fo rta b le , w a r m o r h o t. M o n th s w h e n c e r ta in c o o lin g o r h e a tin g
s tra te g ie s w e re u se d .
T h e r e s p o n s e s to th e c o m f o r t s u r v e y s h o w e d a c le a r v a r i a t i o n o f th e ‘c o m f o r t z o n e ’ a c c o r d i n g to th e
a n n u a l m e a n te m p e r a tu r e , A M T . B e d f o r d ( 1 9 6 1 ) h a d p r e v io u s ly s h o w n th a t th e c o m f o r t z o n e v a rie s
w ith th e a v e r a g e m o n th ly o u td o o r te m p e ra tu re . H u m p h r e y s a n d N ic h o l ( 1 9 9 8 ) c o n tin u e to s tu d y th e
p o t e n t i a l a n d l i m i t s o f ‘a d a p t i v e c o m f o r t ’ , c h a l l e n g i n g t h e c o n v e n t i o n a l a i r - c o n d i t i o n i n g m e t h o d s ,
w h ic h a tte m p t to c re a te a n u n v a ry in g in d o o r c lim a te th ro u g h o u t th e y e a r. T h e b io c lim a tic d e s ig n
a p p r o a c h n e e d s to ta k e in to a c c o u n t th e n a tu ra l a d a p ta tio n o f b u ild in g o c c u p a n ts , b a s e d o n c u ltu ra l
c o n d itio n s s u c h a s c lo th in g a n d th e d a ily rh y th m o f a c tiv itie s .
T o s im p lify th e c o m fo rt a n a ly s is , th re e ra n g e s o f th e A M T w e re e s ta b lis h e d : o v e r 2 0 ° , b e tw e e n 15°
a n d 2 0 ° , a n d b e lo w 1 5 ° C . F o r th e s a m e r e a s o n , th e a v e r a g e r e la tiv e h u m id ity w a s c la s s if ie d in fo u r
h u m id ity g ro u p s (H G ): H G 1 , 0 -3 0 % , H G 2 , 3 0 -5 0 % , H G 3 , 5 0 -7 0 % a n d H G 4 , 7 0 -1 0 0 % . T h e c o m fo rt
ra n g e s w e r e a n a ly z e d s e p a r a te ly f o r d a y tim e a n d n ig h ttim e , a s th e re a re c o n s id e r a b le v a r ia tio n s in
b o t h c lo th in g a n d a c t iv ity le v e ls . T h e a v e r a g e d a y a n d n ig h t te m p e r a tu r e s a r e c o m p a r e d w ith th e
c o m fo rt r a n g e s to o b ta in a n in itia l th re e -s te p d ia g n o s is o f th e r m a l s tre s s : h o t w h e n a b o v e th e c o m fo rt
lim its , c o m fo r t w h e n w ith in th e lim its a n d c o l d w h e n b e lo w th e lim its .
- P L E A ’9 9 C o n f e r e n c e
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
157
5 U se o f the T ables
T h e t r a n s l a t i o n o f 'C l i m a t e a n d H o u s e D e s i g n ' in t o F r e n c h a n d S p a n i s h a l l o w e d a w i d e d i s t r i b u t i o n o f
th e T a b le s , th o u g h th e U n ite d N a tio n s p u b lic a tio n w a s m a in ly c ir c u la te d to g o v e r n m e n t h o u s in g
o ffic e s a n d o ff ic ia l a rc h ite c ts . T h e p u b lic a tio n h a d a ra th e r m o re lim ite d d is tr ib u tio n in a c a d e m ic a n d
r e s e a r c h c i r c l e s . T h e w i d e s p r e a d a p p l i c a t i o n o f t h e T a b l e s d u r i n g t h e 7 0 's a n d 8 0 's w a s d u e t o t h e i r
in c lu s io n in th e M a n u a l o f T r o p ic a l H o u s in g ( K o e n ig s b e r g e r e t a l. 1 9 7 4 ). T h i s w a s a ls o p u b lis h e d in
s e v e ra l la n g u a g e s a n d d is trib u te d b y a n im p o r ta n t te x tb o o k p u b lis h e r.
- P L E A ’9 9 C o n f e r e n c e
6 C onclusions
T h e M a h o n e y T a b le s a re n o w little u s e d , a lth o u g h e x a m p le s o f a p p lic a tio n s o c c a s io n a lly a p p e a r in
c o n g re s s p a p e r s a n d s o m e p o s tg r a d u a te c o u rs e s s till in c lu d e th is te c h n iq u e . T h o s e w h o d o u s e th e
M a h o n e y T a b l e s s h o u ld ta k e in to a c c o u n t th e o r ig in s , o b je c tiv e s a n d lim it a ti o n s o f th is m e th o d to
o b ta in d e s ig n re c o m m e n d a tio n s , s u c h as:
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
158
7 R eferences
B a k e r , N ., ( 1 9 9 1 ) : S tr a te g ic D e s ig n T o o ls f o r N o n - d o m e s tic B u i ld in g s , A r c h ite c tu r e a n d U r b a n S p a c e ,
P r o c e e d in g s P L E A '9 1 , 4 3 1 - 4 3 9 , K lu w e r A c a d e m ic P u b li s h e r s , D o r d r e c h t
B a l c o m b , D ., ( 1 9 9 8 ) : T h e c o m i n g r e v o lu tio n in b u i l d i n g d e s ig n , in E n v i r o n m e n t a l l y F r i e n d l y C itie s ,
P ro c e e d in g s o f
P L E A '9 8 , L i s b o n , J u n e 1 9 9 8 , p p 3 3 - 3 7 , J a m e s a n d J a m e s S c i e n c e P u b l i s h e r s , L o n d o n
B e d f o r d , T ., (1 9 6 1 ) : R e s e a r c h e s o n T h e r m a l C o m fo rt, E r g o n o m ic s , 4 , (4 ) , 2 8 0 - 3 1 0
H u m p h r e y s , M .A , a n d N i c h o l , J .F ., ( 1 9 9 8 ) : U n d e r s t a n d i n g t h e A d a p t i v e A p p r o a c h to T h e r m a l
C o m fo r t, A S H R A E
T e c h n ic a l D a ta B u lle tin , V o l 1 4 , N o 1, 1 -1 4 , A S H R A E , A tla n ta
K o e n ig s b e rg e r, O , M a h o n e y , C & E v a n s , M , (1 9 7 1 ): C lim a te a n d H o u s e D e s ig n : D e s ig n o f L o w -c o s t
H o u s in g a n d C o m m u n ity F a c ilitie s , V o lu m e 1, U n ite d N a tio n s , N e w Y o r k
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.
159
K o e n i g s b e r g e r , O .H ., I n g e r s o l l , T .G ., M a y h e w , A . a n d S z o k o l a y , S .V ., ( 1 9 7 4 ) : M a n u a l o f T r o p i c a l
H o u s in g a n d b u ild in g , P a r t 1 : C lim a tic D e s ig n , L o n g m a n s , L o n d o n
L o u d o n , A . G ., ( 1 9 6 8 ) : S u m m e r t i m e te m p e r a tu r e s in b u il d i n g s , B u i ld in g R e s e a r c h C u r r e n t p a p e r
4 7 /6 8
O lg y a y , V . ( 1 9 6 3 ) : D e s ig n w ith C lim a te , P r in c e to n U n iv e r s ity P r e s s , P r in c e to n , N .J .
V a n H e e r d e n , E ., a n d M a tth e w s , E . H ., ( 1 9 9 6 ) : A n e w s im u la tio n m o d e l f o r p a s s i v e a n d lo w e n e r g y
a r c h i t e c t u r e , i n P r o c e e d i n g s , P L E A '9 6 , B u i l d i n g a n d u r b a n r e n e w a l , L o u v a i n l a N e u v e .
■xxx-
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.