DOE22 weather processor

6 posts / 0 new
Last post

I am making a TRY weather file for 2011.

The INP file doesn't like dates above 1999.
PACK
TRY Vancouver -999
TRY 71892 -999 8 49.18123.1830-BITNORMAL 4 20. .025

I can use -999 and it works but if I put 2011 the processor quits and tells me:
--- ERROR --- YEAR IS OUTSIDE ALLOWED RANGE. THE ALLOWED
RANGE IS -1 TO 1999. PROCESSING WILL BE TERMINATED.

Any ideas?

>> Christopher Jones, P.Eng.

Chris Jones's picture
Offline
Joined: 2011-09-30
Reputation: 0

I don't know if this helps, but maybe it'll spark a thought by someone on here...

I've recently played with the DOE-2 Processor for weather conversion. I was rummaging around the source code and found comments in the code that basically stated one of the algorithms for computing information that is dependent on the earth's position about the sun were only valid between the time between March 1, 1900 and December 31, 1999 for time zones east of the international date line.

Why is that the case? I don't really know, but maybe someone else can chime in and provide some insight on a workaround for you.

-- Jon

Jonathan Bowser2's picture
Joined: 2011-09-30
Reputation: 0

I should have added that this is more of an annoyance than anything
else. The RUN-PERIOD is used to align January 1st, the holidays,
etc. with the weather file data.

It doesn't really matter what year is represented in the TRY data
file or INP file, DOE2 uses the run-period to determine weekends,
holidays, etc.

>> Christopher Jones, P.Eng.

Chris Jones's picture
Offline
Joined: 2011-09-30
Reputation: 0

Do a global replace of the year in the file to 1999 or earlier. See
http://bepan.info/weather - 9 - Weather _NCDC.tpe to DOE2.bin to Tables-Charts
I have not had a problem with the years after 1999
I have problem using DOS with Windows-7 and 64-bit processor
Varkie
http://www.iit.edu/arch/faculty/thomas_varkie.shtml

Varkie Thomas's picture
Offline
Joined: 2011-09-30
Reputation: 0

This is true. Unless the DOE-2 weather processor (doewth, wth.f) has
been upgraded for DOE-2.2, it is not Y2K compliant (nor is DOE-2.1X
itself, for that matter). What I've been doing for years has been to
reset the years > 20XX to 19XX. Please note that this does not affect
the contents of the weather file at all. Other deficiencies in the
DOE-2 weather processor and format are:
1) fails at latitudes > 62.5 or < -62.5, i.e., above the Arctic or
below the Antarctic Circles because the routine for determining sunrise
fails.
2) temperatures and solar radiation are stored in integer F or
BTU/hr-ft2, wind direction in octals, wind speed in 0.1 knots, etc.,
causing round-off errors
especially when the input weather data are in SI units.
I've made numerous changes to the DOE-2 weather processor to overcome
these limitations, while keep the file format compatible with the
original DOE-2 *.BIN format, but minor changes would also be needed in
doesim to access or read these enhancements, but I haven't made any
effort to promote such changes.

Joe

Joe Huang

Joe Huang's picture
Offline
Joined: 2011-09-30
Reputation: 406

Sorry for the repeated partial postings that just occurred. I have no
idea what happened, but it had to do with my mail server, since I just
did a single "send".

Joe Huang's picture
Offline
Joined: 2011-09-30
Reputation: 406