[esp-r] Re: importing ascii climate data
Jon Hand
jon at esru.strath.ac.uk
Tue Mar 30 14:18:57 BST 2010
The attached text file does not follow the pattern required by ASCII
format ESP-r files. The attached file looks like:
0.00 0.75 0.00 8.88 45.00 0.00 <- the first line of the file
0.00 2.17 0.00 8.75 45.00 0.00
0.00 3.58 0.00 8.63 45.00 0.00
0.00 5.00 0.00 8.50 90.00 0.00
0.00 6.42 0.00 8.38 90.00 0.00
0.00 7.83 0.00 8.25 67.50 0.00
0.00 9.25 0.00 8.13 45.00 0.00
0.00 10.67 0.00 8.00 67.50 0.00
0.00 10.00 0.00 12.00 45.00 0.00
8.33 15.33 0.00 15.00 67.50 0.00
58.33 20.67 2.78 12.00 67.50 0.01
72.22 26.00 2.78 17.00 45.00 0.01
50.00 31.33 0.00 3.00 45.00 0.00
16.67 36.67 0.00 3.00 292.50 0.00
and a typical ASCII version of an ESP-r file looks like:
*CLIMATE
# ascii climate file from aus_sydney_iwec binary db,
# defined in: aus_sydney_iwec.a
# col 1: Diffuse solar on the horizontal (W/m**2)
# col 2: External dry bulb temperature (Tenths DEG.C)
# col 3: Direct normal solar intensity (W/m**2)
# col 4: Prevailing wind speed (Tenths m/s)
# col 5: Wind direction (clockwise deg from north)
# col 6: Relative humidity (Percent)
SYDNEY Australia IWEC 947670 # site name
2001,-33.95,1.18,0 # year latitude long diff rad flag
1,365 # period (julian days)
* day 1 month 1
0,213,0,46,140,69
0,210,0,51,140,68
0,208,0,51,140,69
0,206,0,36,150,71
0,204,0,31,190,73
28,203,0,31,190,76
126,200,8,15,200,73
239,210,29,26,190,69
327,205,65,26,190,68
410,217,334,23,190,64
368,230,599,21,150,61
313,229,754,21,150,59
Note: the data is comma separate and are integers and there is a header
before the hourly data begins. The lines with * day 1 month 1
are optional.
Essentially the differences in the number format are confusing the clm module
and clm is expecting to read lines with a similar format to the header so that
it can determine site information.
There are many existing ESP-r ASCII climate files to be found in the src/climate
folder of the source distribution.
-Jon Hand
________________________________________
From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] On Behalf Of 김민환 [hwan at dasskorea.com]
Sent: 30 March 2010 07:34
To: esp-r at lists.strath.ac.uk
Subject: [esp-r] importing ascii climate data
Hi all
I'm currently using ESP-r release 11.8. windows version.
I'm trying to import ascii format weather data into espr.
The file has 6 columns
# col 1: Diffuse solar on the horizontal (W/m**2)
# col 2: External dry bulb temperature (Tenths DEG.C)
# col 3: Direct normal solar intensity (W/m**2)
# col 4: Prevailing wind speed (Tenths m/s)
# col 5: Wind direction (clockwise deg from north)
# col 6: Relative humidity (Percent)
Each column was divided by tab, and day and month are not marked, just 8,760 line.
When I try ascii >> binary import, it asked me paths of ascii climate file and bin file which will be made.
When I browse the newly made bin file, all data were zero.
So while I was browsing the data, I try once again to import from ascii. I choose ASCii espr format.
When I choose the same ascii weather file again, not update latitudes, no demarcation (since day and month are not marked), the machine stopped.
Do you have a comment for me to deal with this problem?
Is it because I didn't put additional lines in front such as below?
*CLIMATE
# ascii climate file from C:/Esru/esp-r/climate/KOR_SeoulAB binary db,
# defined in: C:/Esru/esp-r/climate/KOR_SeoulAB.a
# col 1: Diffuse solar on the horizontal (W/m**2)
# col 2: External dry bulb temperature (Tenths DEG.C)
# col 3: Direct normal solar intensity (W/m**2)
# col 4: Prevailing wind speed (Tenths m/s)
# col 5: Wind direction (clockwise deg from north)
# col 6: Relative humidity (Percent)
ESP kier climate # site name
1983,37.34,8.42,0 # year, latitude, long diff, direct normal rad flag
1,365 # period (julian days)
FYI, I attach example file.
Regards
Mark Kim
--
Researcher,
Integrated Simulation Team, DASS Solutions Co., Ltd.
355-22 Seogyo-dong Mapo-gu Seoul (121-838 Korea)
T. 82.2.913.2585/ F. 82.2.949.2585/ H. www.dasskorea.com<http://www.dasskorea.com>
More information about the esp-r
mailing list