×
Menu
Index

6.1.41.1 Methods Defined Here

open_weather_file( filename ) -> int
Load a weather file indicated by filename.  Returns > 0 on success, <= 0 on error.
 
close( )
Close weather file.
 
get_results(variable, start_day, end_day ) -> Numpy array of floats
Read a variable out of the weather file.  Pass variable by integer from the table below or use the weather_variable enum defined below.  start_day and end_day are the first and last day to return data for, ranging from 1 to 365 (inclusive). 
 
The available variables (and their data units) are:
 
1
Cloud cover
Oktas
2
Wind direction [E of N]
Degrees
3
Dry bulb temperature
°C
4
Wet bulb temperature
°C
5
Direct normal radiation
W/m2
6
Diffuse horizontal radiation
W/m2
7
Solar altitude
Degrees
8
Solar azimuth
Degrees
9
Atmospheric pressure
Pa
10
Wind speed
m/s
11
Relative humidity
%
12
Humidity ratio (moisture content)
kg/kg
13
Global radiation
W/m2
14
Dew point temperature
°C
15
Running-mean temperature
°C
16
Max-adaptive temperature
°C