Clear Skies, Partly Cloudy or Overcast? The Sky Conditions Classification (SCC) is a technique used to provide a reliable means of classifying and describing the prevailing sky conditions using a station’s observed solar irradiance data.
Identifying all of the possible weather conditions using data from a weather station is not always an easy task. WeatherXM’s plan look like this in Figure 1. In this article we focus on classifying sky conditions during the day.

The Method
SCC consists of three steps:
- Calculation of Theoretical Solar Irradiance. This is the solar irradiance that would reach the Earth’s surface under a standard atmospheric composition in the absence of clouds and depends solely on location, and day of the year. The calculation is performed at a granularity of one minute and within a 30-minute moving window. The inputs needed for the calculation are latitude, longitude, date, timezone of the area.
- Calculation of Observed-to-Theoretical Solar Irradiance Ratio (ROT). This is the ratio between the observed solar irradiance, as recorded by the weather station, and the theoretical solar irradiance as determined. It serves as an indicator of the deviation between the observed and theoretical solar irradiance and provides insights into the presence of any clouds in the sky.
- Development of a Linear Regression Model. This model is constructed by establishing a relationship between the observed and theoretical solar irradiance. The residuals of the observations are then utilised to compute the Standard Error (SE). Typically SE is employed as an indicator of how well a regression model fits a dataset. In this context, the SE is employed as a measure of the dispersion of observations from a day with clear skies (characterised by the theoretical solar irradiance).
After collecting a dataset obtained from WeatherXM weather stations, an initial classification of the data into one of the three sky condition categories was performed manually. This classification process was supported by referencing NOAA weather stations and satellite imagery. Then, a percentile (5th-95th) analysis was conducted. The results yielded a set of boundaries for ROT and SE, characterising each of the sky condition categories (Table 1).

The “Partly cloudy” condition can exhibit similarities to both “clear skies” and “overcast” depending on the extent of cloud coverage, so the SE thresholds for this category are adjusted to align with those of the other two categories when there is an overlap in the ROT values.
It is worth noting that:
a. Decisions regarding the classification are made only when the solar angle (the angle between the sun׳s rays and a horizontal plane passing from the weather station) is greater than 7°. The SCC method is generally applicable for classifying sky conditions when sufficient light is present.
b. If an observation does not fall within the defined set of thresholds for any of the categories, it is classified as “partly cloudy”.
The Result
To evaluate our method, we implemented it on a selection of randomly chosen stations. The results indicate that we are able to achieve a satisfactory level of accuracy in characterising the sky conditions as clear, partly cloudy, or overcast. The subsequent examples illustrate instances of clear skies (Figure 2), partly cloudy (Figure 3), and overcast (Figure 4) conditions observed and classified by the algorithm (coloured bullets at the bottom of the graph) at three distinct stations.
It is important to highlight that the outcome of the algorithm is a designated annotation for each time-slot. Specifically, a value of 0 signifies “clear skies,” a value of 1 represents “partly cloudy,” and a value of 2 indicates “overcast.”



Limitations
When using the SCC method, one should consider its limitations:
a. The SCC method is applicable exclusively when classifying sky conditions during daylight hours.
b. The algorithm output is reliable only for well-deployed weather stations that are not surrounded by obstacles shading the light sensor throughout the day
c. Misclassifications may occur if the metallic mast of the weather station deviates from the recommended alignment, as stipulated in official guidelines.
d. In regions with pronounced topography, where tall mountain peaks are in close proximity to a weather station, the timing of sunrise and/or sunset may deviate from the expected norms. This discrepancy can lead to misclassification of sky conditions, such as erroneously categorising “clear skies” as “overcast”. Similarly, if a substantial topographical obstacle is located to the south, blocking direct sunlight from reaching the sensor, the classification of sky conditions may be erroneous.
The full description of the method can be found HERE.
Related articles
Forecast Accuracy & WeatherXM Pro
Benchmark 45+ forecast models against real ground truth.
Compare global NWP and AI weather models at any coordinates with FACT, or pull verified hyperlocal observations and forecasts via WeatherXM Pro API.