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.
- 1 Climate actors
- 2 Properties
- 2.1 interpolate
- 2.2 city
- 2.3 tmyfile
- 2.4 Weather Data
- 2.5 Record Weather Data
- 2.6 Solar Data
- 3 Functions
- 4 See also
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".
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.
No interpolation will be done.
Data values are calculated given a constant rate of change from one data point to the next.
Data values are calculated using the next two points with classic quadratic interpolation.
The name of the city the weather data was recorded from.
The name of the input file. Not required to be a TMY2 file, given an appropriate reader.
All values are either read from the input source or interpolated for this timestep.
The current temperature value, in degrees Fahrenheit.
The current humidity level, as a percentage.
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.
The direct solar input, as measured in a 7 degree cone pointed at the sun. Read in watts per square meter.
Record Weather Data
The climate class has no published functions.