Abstract. Increasing global demand for energy resources leads to actions that optimize the usage of these resources. To make actual and reliable calculations for energy usage and to be able to determine the optimal heating systems, it is necessary to know the latest climate conditions in the area. One of the methods to determine the climate conditions is to generate a test reference year (TRY) for this area. In this paper the TRY of Riga, the capital city of Latvia, was generated by applying the standard LVS EN ISO 15927-4. To generate TRY, four parameters were used: temperature, relative humidity, cloud coverage and wind velocity. The Latvian Environment Geology and Meteorology Centre (LEGMC) provided the meteorological data used in this research. TRY was generated by analyzing meteorological data for thirty-year period (1984-2013) in Riga. The results were compared with the data from Latvian Building Code LBN 003-15, and it showed a deviation in average temperature values that can be explained by the climate change in this area.