You can help by completing sections that are not yet done.
The Climate class is the top-level object for weather data storage, retrieval, and parsing. It can be controlled manually, can parse TMY2 or CSV files, and interpolate data points. The climate object reads a specified file at init-time, if one is provided. During the sync steps, the current weather data is posted based on the current data sample and, if it is being interpolated, the next data sample. Solar data is calculated from the location of the city and the time of the year to determine the appropriate azimuth and incident angle of the direct solar radiation, plus the diffuse solar radiation. Solar input is calculated for each of the cardinal and intercardinal directions is calculated, as well as the horizontal direction.
Climate actors
CSV_reader object
If a climate object is reading a CSV file, it will reference a CSV_reader object using the "reader" property, and define "tmyfile" with a filename that ends in ".csv".
Properties
interpolate
If the reader is using fixed-period data, such as that from a TMY2 file, the climate object is able to continuously interpolate data points during the period of a sample.
NONE
No interpolation will be done.
LINEAR
Data values are calculated given a constant rate of change from one data point to the next.
QUADRATIC
Data values are calculated using the next two points with classic quadratic interpolation.
city
The name of the city the weather data was recorded from.
tmyfile
The name of the input file. Not required to be a TMY2 file, given an appropriate reader.
Weather Data
All values are either read from the input source or interpolated for this timestep.
temperature
The current temperature value, in degrees Fahrenheit.
humidity
The current humidity level, as a percentage.
solar_flux
The array of solar input values, starting with the horizontal, followed by the north-facing input, then going clockwise around the next seven cardinal and intercardinal directions.
solar_direct
The direct solar input, as measured in a 7 degree cone pointed at the sun. Read in watts per square meter.
wind_speed
rainfall
snowdepth
Record Weather Data
record.low
record.low_day
record.high
record.high_day
record.solar
Solar Data
Functions
The climate class has no published functions.
See also
Bold text