Professional Documents
Culture Documents
College of Architecture
1990010205
1990010206
1990010207
1990010208
1990010209
1990010210
1990010211
Clip out (Copy) any year (say the last year of the 10 years) and save it as a Text file with
Notepad or Wordpad. Change the extension from .txt to .dat.
College of Architecture
DB WB DP WD
WS
AP
W CC
Cloud Details
6-8 9-11 2-14 15-17 18-20 21-24 25 26-27 28-55
RDN
56-59
BLANK
60-69
350
020
010
008
9999
9999
1
0
01
04
999999999999999999999999 9999
999999999999999999999999 9999
000
330
000
014
9999
9999
0
0
04
00
999999999999999999999999 9999
999999999999999999999999 9999
YR
70-73
M
D
H
74-75 76-77 78-79
1991
1991
01
07
01
02
21
15
1989
1990
01
07
01
07
21
15
First Line of Data (Jan 1, Hr 1) must have weather data up to Cloud Cover.
DOE Weather Processor interpolates missing values. Card (CD) Column Numbers:
Card
CD-1
CD-2
CD-3
CD-4
CD-5
CD-6
CD-7
CD-8
Column Nos.
1-4
1-20
1-6
7-12
13-18
19-24
25-30
31-36
37-42
43-48
49-54
55-60
61-66
1-6 to 67-72
1-6 to 67-72
1-4
1-4
1-3
PACK
location Name. Ex: Chicago
Any one of types TRY, TMY, TMY2, WYEC, CTZ, etc
WBAN Station Number for TRY and TMY
Weather Data Year (Enter -999 if unknown)
Time Zone (Ex. USA Central Time is 6, Tokyo is -9)
Latitude (Enter as Decimal Number within column range)
Longitude (Enter as Decimal Number within column range)
60-BIT (or 30-BIT)
NORMAL (for DOE2, OLD for DOE1, SOLAR for extra solar Info)
Program will incorporate missing data for up to 4 hours)
Maximum DB increase per hour.
Soil Diffusivity (Can be omitted)
Clearness Number for each of 12 months (-999 in 1-6 to omit)
Ground Temps (deg-K) for each of 12 months (-999 in 1-6 to omit)
LIST (to list weather data omit not required)
STAT (to get statistical data can be omitted)
END (end of instructions for processing 8760 hour weather data)
Tokyo.inp file: (take an existing column formatted .inp file and change the values)
PACK
TOKYO 2000
TRY
47662 -999
-9 35.4 -139.530-BITNORMAL
4 20. .025
0.95 0.97 0.98 1.00 1.05 1.10 1.15 1.05 1.00 0.98 0.98
-999.
STAT
END
0.98
Kuwait.inp file: (take an existing column formatted .inp file and change the values)
PACK
KUWAIT 2000
TRY
40582 -999
-3 29.2 -48.1 30-BITNORMAL
4 20. .025
0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98
-999.
STAT
END
0.98
Seoul.inp
College of Architecture
PACK
SEOUL 1995
TRY
47110 1995
-9 37.5 -87.5 30-BITNORMAL
4 20. .025
0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98 0.98
-999.
LIST
STAT
END
0.98
College of Architecture
1995010100
1995010101
1995010102
1995010103
1995010104
1995010105
1995010106
1995010107
1995010108
1995010109
1995123114
1995123115
1995123116
1995123117
1995123118
1995123119
1995123120
1995123121
1995123122
1995123123
College of Architecture
NCDC sends 10 years of TRY weather data. Select-Crop out one year and save it
a different file. Name it location.tpe (tpe is file extension). Save this
file in C:\DOE21E\WEATHER\UNPACKED Sub-Directory (see next screen)
College of Architecture
College of Architecture
INPUT
PACKED
UNPACKED
UTIL
College of Architecture
The C:\DOE21E\WEATHER\UTIL directory contains several programs and batch procedure files.
The following are frequently used:
MKAFT.BAT
PKAFT.BAT
PKATPE.BAT
STAT.BAT
Batch file to create a text file from a binary file using WTHFMT2
useage: MKAFT filename
(omit filename extension .bin)
filename is DOE-2 binary (filename.bin) in PACKED (no extension)
filename.ft is placed in UNPACKED directory
Batch file to create a binary file from a text file using FMTWTH2
useage: PKAFT filename
(omit filename extension .dat)
filename is WTHFMT2 text (filename.ft) in UNPACKED
(no extension) filename.bin is placed in PACKED directory
Batch file to process a NOAA text file into a DOE-2 binary file using WTH.EXE
useage: PKATPE filename
(omit filename extension .dat)
filename is NOAA "raw" text (*.tpe) in UNPACKED directory (no extension) and
matching WTH.EXE input (*.inp) in INPUT directory
filename.bin is placed in PACKED directory
filename.out is placed in INPUT directory
Batch file to create a weather file statistical summary from a DOE-2 binary file
useage: STAT filename (omit filename extension .bin)
filename is binary (*.bin) in PACKED directory (no extension)
filename.sta is placed in INPUT directory
set output=
College of Architecture
College of Architecture
10
College of Architecture
11
College of Architecture
12
College of Architecture
13
College of Architecture
14
College of Architecture
Creating an Excel file (charts & tables) from .txt weather file.
Delete the first 3 lines in the location.FT just created. Line 1 is miscellaneous data,
line is 2 is atmos-factor and line 3 is ground Temp. These came from the location.inp file
Save the file as a text file. Save as type: Plain Text (*.txt). Check Windows (Default)
You now have file location.txt
From MS-Excel try opening the file location.txt. Files of type should be all Files
In the Text Import window check Fixed width. Click Next
Make sure each item is in a column separated by a red line. The month-day-hour may not be.
Click Next and then Finish. Excel will open the file. Save as an Excel file.
Open the Excel file Nanjing-Example.xls. You have 2 Excel files open now.
From file location.xls hit CTRL-END together to go to end of file. Row 8760, Column Q.
Hold down CTRL and use left mouse button to highlight entire file.
From Menu-Edit Copy the highlighted section in location.xls
Switch to file Nanjing-Example.xls and paste in Row 5, Column B. The first column was
created by me to count the hours from 1 to 8760. The first few rows are headers.
You might want to format the columns in terms of text type and size (I prefer Times New Roman
Size 9), decimal places and centering the numbers.
Replace Nanjing in Row 1, Column A with the name of the location. The location names in the
charts have to be changed individually. Save as new Excel file with location name.
Statistical analysis of the weather as charts and tables (DB, WB, DP, W, H, Wind Vel., HDD &
CDD (for selected base levels) are create in separate sheets. The name of the location must be
changed in each chart since this is not done automatically.
15
College of Architecture
The 3 lines of the *.inp file has been deleted. Save the file as a TEXT file
Note the TEXT version of FT file. (same file without 1st three lines)
Instructor: Varkie C. Thomas, Ph.D., P.E.
16
College of Architecture
C:\DOE21E\WEATHER\UNPACKED folder showing the 2 files .FT and .txt you just created
17
College of Architecture
Excel opens Import Form showing TEXT file data. Select Fixed Width. > Next
Month and Day Numbers are in the same column. The Weather Data Columns have not been
sorted correctly by Excel. Click on these vertical red lines (column separators) and move them to
the right positions. Double-click on a column position to insert a new red column separator.
18
College of Architecture
Column separators have been fixed to separate the weather data columns. Columns above 70
are not shown here. Move slider to right to see columns 71 to 80.
19
College of Architecture
Excel opens the TEXT file with all the data separated correctly. Excel will remember this file as
TEXT when you save it.
Instructor: Varkie C. Thomas, Ph.D., P.E.
20
College of Architecture
Excel Weather Analysis Templates. Beijing is the LONG version. Shanghai is the SHORT version.
Copy & overwrite the template with your Excel Weather data.
21
College of Architecture
Short Weather Template Shanghai. Over-Write this portion with your Excel Weather Data
Long Weather Template with Beijing Weather. Dew Point & Relative Humiditys are calculated.
This portion of the template (8760 hours/lines) was replaced with your data. Change Name
Instructor: Varkie C. Thomas, Ph.D., P.E.
22
College of Architecture
Template Long Weather replaced by Nanjing Weather. The name "Beijing China" in the template
must be replaced with your Location Name. All Tables and Charts are automatically recalculated.
The location names in tables are replaced but NOT the names in the Charts. Change the location
names in each chart separately.
New weather charts for your location. The location name Beijing has to be changed to Nanjing.
Instructor: Varkie C. Thomas, Ph.D., P.E.
23
College of Architecture
STAT location (STAT space location without extensions. Ex: stat chicagil)
24
College of Architecture
25
College of Architecture
The first time you have to open the xxx.inp file from Word. In the future you can double-click
on the .inp file and Word will open it. Edit using Word. Click Save. You will get the
message: xxx.inp may contain features that are not compatible with Plain-Text format. Do you
want to save the document in this format? Click Yes
To save with a different file name Click Save As. The file name will appear in the Save-As
window as xxx.txt Click Save in that window. You will get File-Conversion xxx.txt window
asking for a format and other details. Select Windows-Default. All other options should be
blank. Click OK. You have saved a file named xxx.txt. This file cannot be used by
DOE2. The extension must be changed to .inp. You can do this directly if the file name
extension is displayed with the file name. If the filename.ext is not displayed, then open Control
Panel and then Folder Options. Under the View tab un-select Hide extensions for known file
types
In version 136 of DOE2.1E (the last version issued by Jeff Hirsch, the last USDOE/LBNL version
is 110) the output might have the extension xxx.sim. You can open this by double clicking on it,
but you may not be able to format it and make changes such as fitting the page, deleting pages and
adding page numbers. To do this, open the .sim file from Word and save it as a .doc file and then
make changes. To make this output fit the page, open Edit and Select All and change the Font
size to 7. Open Page-Setup and change from Portrait to Landscape. Change the margins,
particularly Top (0.7) and Bottom (0.7)
The xxx.bdl file shows warning and error messages. In Word, go to Edit and Select all. Change
the font size from 10 to 8 so that it fits the page. The errors have to be corrected in the xxx.inp
file. The xxx.log file shows what happened during execution.
26