Articles | Volume 17, issue 19
https://doi.org/10.5194/gmd-17-7245-2024
https://doi.org/10.5194/gmd-17-7245-2024
Model description paper
 | 
09 Oct 2024
Model description paper |  | 09 Oct 2024

RASCAL v1.0: an open-source tool for climatological time series reconstruction and extension

Álvaro González-Cervera and Luis Durán
Abstract

The reduction of in situ observations over the last few decades poses a potential risk of losing important information in regions where local effects dominate the climatology. Reanalyses face challenges in representing climatologies with highly localized effects, especially in regions with complex orography. Empirical downscaling methods offer a cost-effective and easier-to-implement alternative to dynamic downscaling methods and can partially overcome the aforementioned limitations of reanalyses by taking into account the local effects through statistical relationships. This article introduces RASCAL (Reconstruction by AnalogS of ClimatologicAL time series), an open-source Python tool designed to extend time series and fill gaps in observational climate data, especially in regions with limited long-term data and significant local effects, such as mountainous areas.

Employing an object-oriented programming style, RASCAL's methodology effectively links large-scale circulation patterns with local atmospheric features using the analog method in combination with principal component analysis (PCA).

The package contains routines for preprocessing observations and reanalysis data, generating reconstructions using various methods, and evaluating the reconstruction's performance in reproducing the time series of observations, statistical properties, and relevant climatic indices. Its high modularity and flexibility allow fast and reproducible downscaling. The evaluations carried out in central Spain, in mountainous and urbanized areas, demonstrate that RASCAL performs better than the ERA20C and ERA20CM reanalysis, as expected, in terms of R2, standard deviation, and bias. When analyzing reconstructions against observations, RASCAL generates series with statistical properties, such as seasonality and daily distributions, that closely resemble observations. This confirms the potential of this method for conducting robust climate research. The adaptability of RASCAL to diverse scientific objectives is also highlighted. However, as with any other method based on empirical training, this method requires the availability of sufficiently long-term data series. Furthermore, it is susceptible to disruption caused by changes in land use or urbanization processes that might compromise the homogeneity of the training data. Despite these limitations, RASCAL's positive outcomes offer opportunities for comprehensive climate variability analyses and potential applications in downscaling short-term forecasts, seasonal predictions, and climate change scenarios. The Python code and the Jupyter Notebook for the reconstruction validation are publicly available as an open project.

1 Introduction

The origins of meteorological observation can be traced back to ancient civilizations, where people began to notice patterns in the weather and celestial phenomena. However, it was not until the 17th century that systematic weather observations began in earnest with the development of instruments such as the mercury barometer and the thermometer by scientists Evangelista Torricelli and Daniel Gabriel Fahrenheit (Barry and Chorley2009). An early example of this interest in observing the atmosphere using instruments is the Central England Temperature (CET) record (Manley1974), which is one of the longest instrumental temperature records in the world, dating back to 1659. It provides a continuous monthly temperature series for the central England region and is often used as a proxy for temperature variations in western Europe. Other examples of early weather monitoring date back to the 18th century, such as the Paris–Montsouris observations in France (Moisselin et al.2002), the Zentralanstalt für Meteorologie und Geodynamik in Austria (Vienna) (Auer et al.2007), the Uppsala University observations in Sweden (Bergström and Moberg2002), and the earliest observations recorded for the Iberian Peninsula like those starting in Seville (Spain) in 1780 (Domínguez-Castro et al.2014). Since these first observations began, the number of surface meteorological observatories worldwide has increased significantly, as shown in Fig. 1a.

The critical role played by surface meteorological stations in climate monitoring and research is emphasized by the Intergovernmental Panel on Climate Change (IPCC) in all its assessments and reports (IPCC2021). One of the aspects addressed is the need to maintain high-quality and consistent data following high standards of quality assurance and control (Begert et al.2005). These kind of procedures are essential to ensure that the data collected are homogeneous, accurate, and reliable. Errors or inconsistencies in the data can lead to erroneous climate assessments and predictions (Yang et al.2005). Another important fact mentioned is the need for a dense network of surface meteorological stations around the globe to provide comprehensive coverage of different regions and climates. Dense monitoring networks are less common in remote or less densely populated regions or where the environmental conditions are too harsh to operate and maintain the instruments (Dinku2019; Fan et al.2020; Schween et al.2020).

It has been commonly accepted that surface meteorological stations are still the best way to identify long-term trends and variability in climate. They have also proven to be critical for validating and calibrating other atmospheric databases such as those obtained from satellites or remote sensing instruments (Salio et al.2015; Emery et al.2001; Huang et al.2019). They are also a key element for the development and validation of gridded databases obtained by numerical models such as reanalyses (Molina et al.2021; Bell et al.2021; Lavers et al.2022; Bonshoms et al.2022). More recently, meteorological measurements have become an essential element of machine learning methods applied to atmospheric modeling.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f01

Figure 1(a) Total number of operative stations from 1850 to 2023. (b) Balance of decommissioned stations in the same period. The negative value means the stations are no longer operative, and the absolute value represents the number of decommissioned stations. (c) Localization of all stations from 1850 to 2023, with operative stations in 2023 marked in blue and decommissioned stations as of 2023 marked in red. Data were obtained from the Global Historical Climatology Network daily (GHCNd, https://www.ncei.noaa.gov/products/land-based-station/global-historical-climatology-network-daily, last access: 15 November 2023).

Due to the important role played by surface observations in climate assessing and weather forecasting, several countries established and expanded their surface meteorological observatories during the 20th century, trying to cover as much territory as possible (Klein Tank et al.2002), from several thousand surface stations at the end of the 19th century to several tens of thousands at the end of the 20th century (Fig. 1a). However, as mentioned before, the results are very uneven around the world (Fig. 1c), with important areas of the world still under-monitored.

Contrary to what might be expected, the number of surface meteorological stations has not increased in recent decades at a rate that would fill the gaps in the documented under-monitored areas. Rather, the ratio of operational stations has slowed down and decreased since the 1970s (Fig. 1a). As can be seen, the number of decommissioned stations has increased in recent decades in many regions of the globe, disrupting some historical climate time series.

One potential explanation for this decline in the number of surface stations is the advent of satellites as a novel method for observing the weather and climate. Following the launch of the world's first weather satellite, TIROS-1, in 1960, satellite weather observations became prevalent and began to offer a number of advantages over on-site weather observations, as cited in Purdom and Menzel (1996). For instance, they permit global coverage and cost-effectiveness since they do not necessitate an extensive network of ground-based weather stations to cover vast areas. However, satellite weather observations also have limitations. For example, they have difficulties accurately measuring conditions at the Earth's surface, their data availability is highly dependent on cloud cover, they often exhibit long-term instrument drift, and they have calibration issues in remote areas where surface observations are still unavailable.

Another potential factor contributing to this decline is the increasing use of model reanalysis data to conduct climate research (Dee et al.2014; Hersbach2016). Model reanalyses employ a combination of observational data sources, including in situ surface weather observations, satellite data, and others to generate a gridded and consistent dataset of weather and climate information from the past. The resulting datasets are comprehensive, are homogeneous, and have strong climatological consistency. They cover global areas, enabling analysis where in situ data are not accessible. In many cases, reanalyses are used instead of in situ measurements for climate studies. They are certainly useful for studying broad climate patterns and long-term climate trends, and they could theoretically be used to fill gaps or extend the temporal and spatial coverage of observations. However, they suffer significant losses with regards to temporal and spatial resolution, as well as information relating to local phenomena. Global reanalyses have inherent difficulties in providing fine-scale details that are often missed in the physics of the models or are meaningless at the low resolution considered.

Although it may seem that global weather data are fully accessible through the more precise reanalyses available nowadays, there may be a hidden loss of information about local phenomena that only surface weather stations are able to capture. When historical meteorological data are not continued indefinitely or interrupted, many of the resources invested over decades are lost. In addition to these interrupted time series, there are also numerous surface meteorological observation series of good quality around the world as a result of short-term campaigns or very recent initiatives. These time series also provide a wealth of information on local processes, but their short duration is still insufficient for climatological analyses (Durán et al.2017).

We have global reanalyses that span the entire 20th century and part of the 21st century, with low resolution and limited phenomena. However, these datasets are sufficient to consider the main drivers that force weather and climate at the surface. In contrast, we have sets of interrupted or recent surface measurements that capture local phenomena, but these are too short to conduct climatological analyses. It thus appears feasible to downscale reanalysis data in order to obtain pseudo-observations that can provide the best of both worlds.

Downscaling has been performed since the inception of reanalysis. Two general approaches to downscaling are dynamical downscaling (DD) and empirical statistical downscaling (ESD). ESD relies on observational data to establish empirical relationships between the large-scale fields provided by the reanalysis and the local phenomena seen in the observations (Wilks2011; Bürger1996; Boé et al.2006). These are grouped into model output statistics, perfect prognosis, and weather generators (in which analog models are used). On the other hand, DD is achieved by using higher-resolution physical models that account for lower-scale phenomena nested within the reanalysis fields (Lo et al.2008; Durán and Barstad2018; Wang et al.2021).

Numerous papers scrutinize the advantages and disadvantages of the various methods (Hewitson and Crane1996; Hanssen-Bauer et al.2003; De Rooy and Kok2004). As a rule of thumb, empirical techniques are generally less computationally intensive than physical downscaling and may yield better results at a lower cost. However, empirical downscaling is only feasible when a sufficiently long and uniformly collected dataset of observations is available. Assuming the hypothesis that there is a connection between the large-scale phenomena shown by the reanalysis and the local phenomena captured by the observations is also essential.

Regardless of the chosen downscaling method, combining reanalysis and surface observations to create long and homogeneous time series requires a significant amount of effort. Setting up a dynamic regionalization system can be expensive in terms of both computation and human resources, but even a relatively simple statistically based regionalization method entails a learning curve that may discourage or slow down certain climate studies.

This work introduces and explains RASCAL v1.0 (Reconstruction by AnalogS of ClimatologicAL time series), an open-source tool for climatological time series reconstruction and extension using ESD. The primary goal of RASCAL is to promote and accelerate rigorous climate research in regions where surface meteorological observations are insufficient for climate analysis and where relevant regional and local meteorological processes can only be captured through in situ observations. RASCAL could prove highly beneficial for mountain climate research and other areas with unique microclimates, such as river valleys, forests, caves, or canyons.

This study is organized as follows: Sect. 2 provides a detailed description of the implemented method, while Sect. 3 describes the model structure and implementation. In Sect. 4, we evaluate the performance of the package by downscaling the daily maximum and minimum temperatures and precipitation of four stations near a mountainous region in central Spain. We draw final conclusions and important remarks in Sect. 5.

2 Methods

RASCAL is based on an ESD type known as an analog model or weather generator. This is a widely used technique in climate research (Zorita and Von Storch1999). It is based on the premise that large-scale atmospheric conditions tend to produce comparable local weather patterns, allowing the prediction of local conditions for a day without real-time observations. This is done by identifying an analog day from general circulation models (GCMs), such as reanalyses, and assigning its local conditions. This approach allows the study of climate variability over an extended time frame, providing valuable perspectives on long-term patterns and connections between different geographic locations, while also incorporating important local factors in the analysis (Hidalgo et al.2008; Benestad2010; Abatzoglou and Brown2012; Saavedra-Moreno et al.2015; Shulgina et al.2023).

The analog method is a nonlinear technique that relies on the identification of strong statistical relationships between two fields: the predictor variable extracted from GCM products and the predictand variable obtained from local historical observations. To predict an atmospheric feature (the predictand) for a given day, this method searches for the day with the most similar predictor field in the historical record and uses its atmospheric features to make a prediction, allowing the reconstruction of missing data points (Lorenz1969; Horton et al.2017).

To incorporate the relationship between large-scale meteorological patterns and local weather, the analog method is often combined with principal component analysis (PCA). PCA reduces the high dimensionality of the atmospheric phase space by generating an orthogonal basis of vectors that represent the main directions of variability. As a result, only a limited set of m coefficients, called principal components (PCs), are required to represent the atmospheric state (Wilks2011). The resulting set of m coefficients of the PCs at time t are considered the predictor X(t)=(X1(t),X2(t),,Xm(t)) for the local predictand Y(t). For a given day t, the objective is to identify N historical days t1,t2,t3,,tN such that the predictor X(t) is similar to the predictors X(ti). The similarity between the predictors in the historical record X(ti) and the predictor of the day to reconstruct X(t) is measured with the Euclidean distance.

(1) d X ( t , t i ) = X ( t ) - X ( t i )

The N days with the smallest distance dX(t,ti) constitute an analog pool. Various similarity methods can be used to select the best analog Y^(t) or group of analogs from the pool. The most straightforward method is to choose the day ti that has the smallest distance dX(t,ti) and that is the closest day in the PC space. However, similar synoptic patterns can sometimes produce different local weather if the role of other variables or more complex phenomena is not taken into account. Therefore, assigning the day with the most similar predictor field pattern as the analog day may not always be accurate. To avoid making the reconstruction method too complex, one solution is to select the N closest days from the pool of analogs instead of just one. Then, perform a weighted average of the predictand Y(ti) by the square of the distance in space of the PCs of those days:

(2) Y ^ ( t ) = 1 N i = 1 N w i Y ( t i ) ,

where the weight wi is

(3) w i = 1 d X ( t , t i ) 2 j = 1 N 1 d X ( t , t j ) 2 .

This way, the days with a more similar synoptic pattern have more presence in the average, while also considering possible phenomena that have not occurred on the closest day but on the other similar days.

Averaging can impact the distribution of the variable by smoothing the data and removing extreme values. To preserve extremes while still accounting for possible phenomena beyond the similarity of synoptic patterns, bias reduction methods such as quantile mapping can be used. This technique employs a “mapping variable” Z(t) and examines the quantile of the day to reconstruct Q(Z(t)) in the distribution of this variable in the analog pool (Z(t1),Z(t2),,Z(tN))). The method first examines the distribution of the predictand variable in the analog pool (Y(t1),Y(t2),,Y(tN))) and selects the day ti that occupies the same quantile as the best analog.

(4) Y ^ ( t ) = Y ( t i ) , when Q ( Y ( t i ) ) = Q ( Z ( t ) )

This approach improves the representation of extreme events. However, it is crucial to note that the mapping variable must have a strong correlation with the predictand variable. One possible solution is to use the reanalysis predictand variable as the mapping variable.

The analog method fundamentally involves the reorganization of observed time series data, aiming to maintain the statistical characteristics of the original dataset. The efficacy of this method relies on ensuring that the downscaling and training periods exhibit a comparable climatic context (Zorita et al.1995). The reconstruction capability of the analog method is constrained by the temporal extent and accuracy of historical observations. This means that it cannot replicate unobserved events and, therefore, cannot reproduce new record values in the context of climate change. However, its utility becomes pronounced in scenarios where external climate forcing induces shifts in the frequency of observed phenomena. In essence, it serves as a valuable tool for discerning alterations in the occurrence patterns of documented events.

3 Model structure

Empirical downscaling techniques involve laborious steps that must be carefully addressed to ensure the quality of the local climate series reconstructions, as pointed out in Boateng and Mutz (2023). RASCAL is a Python library that implements the analog method in a clear and simple way. It is an object-oriented library with four main blocks or classes: Station, Predictor, Analogs, and RSkill. This library is a valuable complement to other empirical downscaling libraries, such as pyESD from Boateng and Mutz (2023), which is based on machine learning downscaling methods that focus on generating monthly time series. RASCAL is based on classical statistical methods, which produce results that are easier to interpret physically, and additionally, it is more focused on daily-resolution reconstructions rather than monthly, which allows for the calculation of relevant daily climate indices. This section describes these components and their implementation workflow, as illustrated in Fig. 2.

3.1Station class

The analog method requires (1) homogeneous time series of observational data and (2) a reanalysis dataset or GCM product that covers both the period to be reconstructed and the period of historical observations. The Station class retains the information about the historical record, including metadata about the observation point such as its name, elevation, latitude, and longitude, as well as the observational data of the variable to be predicted. The historical record must have a daily to sub-daily resolution, and it is assumed to be homogeneous. The data are preprocessed to extract the desired meteorological variable, such as maximum, minimum, mean, or total accumulated, in the form of selected daily quantities.

3.2Predictor class

The analog method has the benefit of low subjectivity due to its limited parameters for adjustment (Wetterhall et al.2005). However, selecting and processing the predictor correctly constitute a crucial step for achieving accurate local weather reproduction. The selection should be based on our knowledge of atmospheric dynamics and the local climate of the study area, as pointed out by other authors (Boateng and Mutz2023). After selecting a predictor variable that is expected to have a strong relationship to the predictand variable, for instance its main large-scale forcing field, and that is relevant to the proposed scientific question, it is necessary to choose a predictor field domain that can identify relevant synoptic patterns for the study area. These fields should be carefully grouped for each day. Although the analog method is based on recognizing patterns in a single predictor field, it is possible to use multiple variables within the same field. To use vector fields with multiple components or to include different variables, it is necessary to construct a composite field by concatenating each variable on the longitude axis. This results in a single field with dimensions of time, latitude, and number of components × longitude.

These steps are implemented in the class Predictor. It takes as input the paths to the files of the chosen predictor and allows selecting the limits of the field domain and grouping them for each day, taking only 1 h, or computing the sum or the average of all the available hours. The composite field is obtained when the mosaic option is set to True and more than one different variable is detected within the files of the input paths.

Once the predictor field is chosen, the PCA is performed. The PCA is implemented as the method Predictor.pcs(). To perform the PCA it is necessary to calculate the anomalies of the predictor field. In this method it is possible to choose the months of each season and the number of seasons, the number of principal components to be used, and the scaling of the PCs. This scaling will subsequently influence the selection of a pool of the N closest days. This method wraps the Python library EOFs (Dawson2016) using xarray (Hoyer et al.2020), so it has its scaling options, which are (0) un-scaled principal components, (1) principal components scaled to unit variance (divided by the square root of their eigenvalue), and (2) principal components multiplied by the square root of their eigenvalue.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f02

Figure 2RASCAL main features and workflow. The colored boxes highlight the principal classes, and within them, the featured methods and objects are shown. An example of the EOFs obtained for the total column water vapor flux (TCWVF), used as a precipitation predictor, is included in the Predictor class box.

Download

3.3Analogs class

After establishing the predictor and determining its synoptic patterns via PCA, the next step is to search for a set of days with similar synoptic patterns for each day, known as the analog pool. After determining the analog pool, the days without observations are reconstructed using one of the following similarity methods: (1) the “closest” method, which selects the closest day in the space of the PCs; (2) the “average” method, which calculates the weighted average of the N closest days; or (3) the “quantile map” method, which chooses the day that corresponds to the same quantile as the day to be reconstructed in another variable called the mapping variable. These steps are implemented in the Analogs class. This object is fed by the historical observations from the Station object and the PC time series of the Predictor object. This object allows the user to select the number of analog days in the pool as pool_size; the number of days to exclude from the pool when testing the reconstruction performance; and whether to exclude the previous, posterior, or both days as vw_size and vw_type arguments. Additionally, it allows the selection of the similarity method. To use the quantile mapping method a mapping variable is required. This variable must be a time series from the reanalysis dataset in the grid point of the station. The Predictor class can be used to obtain this information by setting the domain limits to the station's localization, which is saved in the Station object.

3.4RSkill class

To assess the quality of a reconstructed time series, it is necessary to clearly state its goal beforehand. RASCAL is designed to produce daily reconstructions to calculate relevant indices, such as days above the 0 °C isotherm or the length of dry spells. However, it is not necessary for the daily reconstructions to be completely in phase with the daily observations when the objective is to evaluate these quantities at coarser temporal resolutions, such as monthly, seasonal, or annual. It is sufficient that their behavior and statistical properties are well-reproduced at these coarser temporal resolutions. To evaluate the skill of the reconstructions, RASCAL is equipped with a skill evaluation class called RSkill. This class contains functions to evaluate the behavior of the reconstructions and assess their added value compared to using the reanalysis data alone. The skill metrics and diagrams included are the following: Taylor diagrams, quantile–quantile diagrams, time series and annual cycle plots, root mean squared error (RMSE), correlation coefficient (R2), mean bias error (MBE), MSE-based skill score (where MSE is the mean squared error), Heidke skill score (HSS), and Brier score (BS).

The MSE-based skill score (Wilks2011) is given by

(5) SS MSE = 1 - MSE MSE r ,

where MSE is the MSE of the reconstruction and MSEr the MSE of the reference model, in this case the reanalysis. Therefore, the SSMSE can be interpreted as the relative error reduction of the reconstruction compared to the reanalysis series.

The Heidke skill score (HSS) is implemented in order to assess the performance of the analog method in predicting days where the predictand is above or below a certain threshold compared to the reanalysis, based on a contingency table analysis. The HSS scores events based on their occurrence or absence and determines whether the performance of the tested model is superior to that of the reference model. The HSS is defined as

(6) HSS ( r ) = r - r r 1 - r r ,

where r is the proportion of correct forecast (true positive and true negative) of the reconstructed series and rr the proportion of correct forecast of the reanalysis. The proportion of correct forecast is expressed as

(7) r = a + d a + b + c + d ,

where a is the number of times that an event is forecasted and observed (true positive), b the number of times that is forecasted but not observed (false positive), c the number of times that is observed but not forecasted (false negative), and d the number of times that is neither forecasted nor observed (true negative).

This score condenses the information on whether the tested model performs better that the reference model with a number in the interval (-,1]. A model that perfectly reproduces the observations gets a score of 1; if it performs as well as the reference model it gets a score of zero, and if the model performs worse than the reference model it gets negative scores.

3.5 RASCAL implementation

Although RASCAL is designed as a Python library, the GitHub repository contains scripts that allow performing reconstructions and skill evaluations without the need to write a script. The multiple_runs_example.py script demonstrates a workflow that reconstructs several stations and variables using different values for the parameters including analog pool size, number of days in the weighted average, and similarity method. There is also a Jupyter Notebook available, named RASCAL_evaluation.ipynb, which evaluates the skill of the reconstructions for daily, monthly, and annual series.

4 Application examples

To test RASCAL performance, we tested the skill of the reconstructions of maximum and minimum temperature and daily precipitation at four different surface stations in the vicinity of the Central System of the Iberian Peninsula (Spain), as shown in Fig. 3. This mountain range is of vital importance as it is the main contributor to the hydrological resources of central Spain due to the high levels of rainfall and snow runoff in spring. This area has been the subject of several studies by authors in recent years (Durán et al.2013, 2015; Durán and Barstad2018; González-Flórez et al.2022). The reader can refer to these previous works in order to understand the importance of having long time series in this area.

4.1 Observational data

The surface stations used are summarized in Table 1. All of the stations belong to the Spanish Meteorological Agency (AEMET; http://www.aemet.es, last access: 13 September 2023), which has conducted high-quality observations of temperature and precipitation since 1893 and 1948, respectively, for the case of Retiro station located in Madrid. The Navacerrada station is the highest one, situated at 1888 m a.s.l. in the core of Sierra de Guadarrama, an area that has been kept almost unaltered since its installation in 1946. Stations Segovia and Colmenar are located on the northern and southern slopes, respectively, of this mountain massif (Fig. 3). This set of surface meteorological stations was selected based on their long historical records, on the variety of their orography and environments, and on the deep knowledge of this area due to previous research carried out by the authors of this work. Furthermore, they spread across a wide range of altitudes. Of the four datasets, two are particularly long: Retiro and Navacerrada.

Observations have been available at Navacerrada station since 1946. The whole region has remained practically unchanged since then, making it a valuable resource. In contrast, the Retiro station is located in the heart of the city of Madrid, which has undergone significant growth, particularly since the 1960s.

This set of observations can serve as a suitable test bed for evaluating the strengths and weaknesses of RASCAL and its working hypotheses.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f03

Figure 3(a) Location of the Iberian Central System. (b) Locations of sites used in this example of application, these being S (Segovia), N (Navacerrada), C (Colmenar), and R (Retiro).

Table 1Observational data used.

Download Print Version | Download XLSX

4.2 Reanalysis data

The reconstruction of the time series was performed using ECMWF reanalysis data. Specifically, ERA20C data for the temperature and ERA20CM ensemble data for the precipitation (Poli et al.2016) were used for the period from 1900 to 2010, with a spatial resolution of 0.75° × 0.75° and a temporal resolution of 3 h.

Principal component analysis was conducted for each season (DJF, MAM, JJA, and SON) individually using geopotential height (GpH) data at 925 hPa as a temperature predictor and TCWVF as the precipitation predictor. The quantile map method used the 2 m temperature and TCWVF to search for analogs in the dataset as the mapping variables. The selection of these predictors was based on their previous use in identifying circulation weather types for precipitation and extreme snow events in the study region, as reported by Durán et al. (2015) and González-Flórez et al. (2022).

4.3 Model evaluation

The reconstructions were performed for all stations using all three similarity methods and varying values of pool size and number of days to average in the average method to account for the possible sensitivity of the results to these parameters. To evaluate the quality of a reconstruction, it is necessary to determine the similarity of the time series to the observations. However, in climate studies it may be more relevant to consider the statistical characteristics of the series. Therefore, it may be more effective to evaluate the ability to reproduce daily distributions, seasonality, seasonal and interannual variability, and relevant indices, such as the number of days below 0 °C or days of precipitation above a certain threshold. RASCAL evaluates the effectiveness of reconstructions for use in climate studies. It assesses the behavior of time series for maximum and minimum temperature, as well as precipitation, and their statistical properties. Additionally, it compares the performance of using the analog method versus using reanalysis data to reproduce observations. To compare its performance against the reanalysis, the temperature data from the reanalysis were corrected with the elevation using the environmental lapse rate (−6.5 °C km−1).

RASCAL includes options to cross-validate when generating the reconstructions. To test the performance of the model in reconstructing gaps in the series and extending to periods distant from the observation period, validation windows are created. These moving windows of N days are taken around each day to be reconstructed, as these are the days that are likely to have the most similar large-scale pattern to the target day and therefore contain the most possible analogs. Excluding these days removes both the large-scale patterns and their associated local meteorological times from the pool of analogs, allowing a better evaluation of the performance of the model and each reconstruction method. For this application case, we excluded 60 d, the 30 d before and after each target day.

4.3.1 Time series skill

Taylor diagrams were implemented in RASCAL to assess the agreement between the reconstructed time series and the observed data. As illustrated in Figs. 4, 5, and 6, these diagrams provide a visual representation of the analysis, displaying the standard deviation and correlation of each time series in comparison to the reference observations.

As depicted in Fig. 4 the precipitation reconstructions outperform the reanalysis precipitation in all the cases for both total monthly and total yearly precipitation. Monthly reconstructions yield better results than the yearly series, with correlation coefficients ranging from 0.4 to 0.8, whereas the yearly series ranges from 0.2 to 0.7. However, for both cases, the reanalysis only shows correlations of 0.4 at best and negative correlations at worst (not visible in the diagram). Panels (c), (f), (i), and (l) display the yearly time series in water years (from October to September), comparing the observations with the reanalysis ensemble and the best reconstruction. The chosen reconstruction has a good correlation coefficient and a standard deviation close to the observations. These panels demonstrate that the correlation and standard deviation are better than the reanalysis and that biases are corrected. An example that illustrates this point is Navacerrada (Fig. 4i), where the reanalysis dry bias may be attributable to a smoothed reanalysis orography that hampers orographic precipitation, an important contributor to total precipitation in this region (Durán et al.2017).

As evidenced in the difference in the location of points of the same color in the Taylor diagrams, the reconstructions are somewhat sensitive to the pool size selection, as one method with different pool sizes can produce series with different correlations than the observations and standard deviations. However, this sensitivity is not significant enough to be considered a critical determinant in the simulations. Therefore, adjusting this parameter can be useful for subtle modifications.

Additionally, the Taylor diagrams demonstrate how different scientific questions may require different similarity methods. While “average10” shows the strongest correlations, “quantilemap100” exhibits standard deviations closest to the original series, resulting in more similar distributions. Therefore, the choice of reconstruction methods may depend on the specific goals that led to the reconstruction process.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f04

Figure 4Precipitation time series reconstruction skill for all the stations. The left panels (a, d, g, j) show the Taylor diagrams of the monthly total precipitation series. The central panels (b, e, h, k) show the Taylor diagrams of yearly total precipitation series. The right panels (c, f, i, l) show the time series of observations, reanalysis, and the selected best-performing reconstruction. In the precipitation case the yearly series are based on water years beginning in October and ending in September.

Download

Figure 5 illustrates that the reconstructions of maximum temperatures yield better results than those of precipitation, with correlation coefficients above 0.93 for the monthly mean maximum temperature series and between 0.3 and 0.9 for the yearly mean maximum temperature series. The reanalysis exhibits a very similar behavior to the quantile map reconstructions for this variable, but the latter consistently shows a slight improvement in correlation or standard deviation. The time series in Fig. 5c, f, i, and l show that although the behavior of the reanalysis is very close to the observations, the reconstructions correct the bias for all the stations, even when the reanalysis was corrected with the elevation.

Maximum temperature reconstructions exhibit less agreement between different similarity methods but demonstrate more consistent outcomes for different pool sizes when compared to the precipitation reconstructions. In this case, the quantile map method is recommended for reconstruction over the closest and average methods.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f05

Figure 5Maximum temperature time series reconstruction skill for all the stations. The left panels (a, d, g, j) show the Taylor diagrams of the maximum temperature monthly mean series. The central panels (b, e, h, k) show the Taylor diagrams of yearly mean series. The right panels (c, f, i, l) show the time series of observations, reanalysis, and the selected best-performing reconstruction.

Download

In Fig. 6a, d, g, and j, the monthly mean minimum temperatures exhibit a similar behavior to the maximum mean temperatures in Fig. 5a, d, g, and j, with correlation coefficients above 0.9 and a slight improvement in the correlation and standard deviation compared to the reanalysis. The yearly mean series (Fig. 5b, e, h, k) also show moderate improvements compared to the reanalysis, with correlations ranging from 0.3 to 0.9. The quantile map method was found to be the most effective for reconstruction. The bias corrections are apparent in Fig. 6c, f, i, and l.

It should be noted that the reconstruction of Retiro in Fig. 6l shows a peculiar behavior, overestimating the mean minimum temperatures before 1945, followed by an underestimation of the temperatures thereafter. This effect does not appear in the maximum temperature reconstructions in Fig. 5l; a possible hypothesis is that this is due to the progressive urbanization of Madrid, where Retiro is located in the city core. This urbanization leads to a change in the land use and to an increase in the heat island effect, which mainly affects the increase in minimum temperatures (Yagüe et al.1991). This induces a change in the relationship between the local scale and the synoptic scale and therefore in the relationship between the predictor and the predictand, ultimately affecting the temperature trends.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f06

Figure 6Minimum temperature time series reconstruction skill for all the stations. The left panels (a, d, g, j) show the Taylor diagrams of the maximum temperature monthly series. The central panels (b, e, h, k) show the Taylor diagrams of yearly series. The right panels (c, f, i, l) show the time series of observations, reanalysis, and the selected best-performing reconstruction.

Download

4.3.2 Distributions

To evaluate the statistical properties of a reconstruction, we first examined the distributions of the daily time series in comparison to the observations. Figure 7 displays the quantile–quantile plots of the daily time series for maximum and minimum temperature, as well as precipitation. These plots illustrate the values assigned to the same percentiles for the distributions of the reconstructed and observed time series. When the distributions are identical, the points align along a 45° line. The distribution of the observations is well-represented by the closest and quantile map methods, as shown in the first row of Fig. 7. However, the average method affects the extreme values as expected, narrowing the distribution further as the pool size increases. The poor performance of the reanalysis in representing precipitation distributions is also evident, as it exhibits a skew towards lower values. All methods show a high alignment with the observed data regarding maximum and minimum temperatures, with a slight narrowing in the distribution for the average methods. The impact of bias correction compared to the reanalysis is prominently noticeable in these variables as well.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f07

Figure 7Quantile–quantile plot of the daily time series for all the stations (from left to right) including all the reconstructions and the reanalysis. The first-row panels (a, b, c, d) are for the precipitation, the second row (e, f, g, h) for the maximum temperature, and the third row (i, j, k, l) for the minimum temperature.

Download

4.3.3 Seasonality

Understanding the seasonality of meteorological variables is crucial for climate studies as it enables the identification of recurring patterns and trends throughout the year. As shown in Fig. 8, the seasonal cycles of total monthly precipitation and monthly standard deviation reveal that the reconstructions generally reflect the observations more accurately than the reanalysis. Notably, the quantile map method shows better performance from January to June, while the closest and average methods work better from July to December. These differences between methods are more pronounced in MAM and SON, which are the months of highest variability (Fig. 8e, f, g, h). The standard deviation is well-captured by the quantile map method, with exceptions noted in February and November. Navacerrada once again emerges as the station that benefited the most from the reconstructions. It exhibits the most similar precipitation cycles and standard deviation, outperforming the reanalysis.

Figures 9 and 10 illustrate the annual cycles for maximum and minimum temperatures, respectively. The quantile map method outperforms the closest and average methods, as evidenced by the standard deviation, and is therefore recommended. These results demonstrate that RASCAL is more effective than the reference reanalysis in representing seasonality.

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f08

Figure 8Annual cycle of monthly total precipitation for all the stations (left to right). The first-row panels (a, b, c, d, e) show the cycle for the variable, and the second row (f, g, h, i, j) is for its standard deviation.

Download

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f09

Figure 9Annual cycle of monthly mean maximum temperature for all the stations (left to right). The first-row panels (a, b, c, d) show the cycle for the variable, and the second row (e, f, g, h) is for its standard deviation.

Download

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f10

Figure 10Annual cycle of monthly mean minimum temperature for all the stations (left to right). The first-row panels (a, b, c, d, e) show the cycle for the variable, and the second row (f, g, h, i, j) is for its standard deviation.

Download

4.3.4 Daily indices

In climate studies, it is common to employ indices that condense key climatic features of the study area. These indices are usually based on the comparison of a variable with a fixed threshold or a threshold based on some statistical property, such as a mean value or a percentile (Klein Tank et al.2009). Consequently, when using climate indices, the focus of a study may not necessarily be on making the reconstructed time series closely resemble the observations, but rather on effectively reproducing these indices. Given that the indices are based on threshold crossings, a dataset characterized by significant biases may result in a misrepresentation of these indices. As demonstrated earlier, the station Navacerrada stands out as the one most positively influenced by the reconstructions. This is due to the fact that the reanalysis provides a deficient representation of precipitation and temperature, mainly due to its pronounced warm and dry bias. Therefore, this station was chosen for the calculation of relevant indices for a mountainous region using the reconstructions, such as days with precipitation exceeding 1 mm (R1 mm), icing days (IC, days of maximum temperature below 0 °C), and frost days (FD, days of minimum temperature below 0 °C).

https://gmd.copernicus.org/articles/17/7245/2024/gmd-17-7245-2024-f11

Figure 11Seasonal cycle of the observations and the best reconstruction of climatological indices in Navacerrada, these being (a) days of PCP  1 mm (R1 mm), (b) days of Tmax<0 °C or icing days (ID), and (c) days of Tmin<0 °C or frost days (FD).

Download

Table 2Skill metrics for the best monthly reconstruction in Navacerrada for days of PCP  1 mm (R1 mm), icing days (ID), and frost days (FD).

Download Print Version | Download XLSX

Figure 11 presents the seasonal cycles of the indices for both observations and the optimal reconstruction chosen in Sect. 5.3.1. The aim is to ensure that the reconstructions accurately replicate the climatic characteristics associated with these indices without exhibiting any spurious behavior.

The R1 mm index in Fig. 11a reveals highly similar distributions across all months, with only a slight overestimation of the median value noted in March, June, and July. Figure 11b also demonstrates very good agreement in the ID index between the reconstruction and observed distributions and median values, although with slightly broader distributions during winter months. Finally, Fig. 11c reaffirms the substantial agreement between observations and distributions for the FD index, highlighting RASCAL's capability to faithfully replicate the seasonal behavior inherent in these indices.

Upon examining the time series skill, Table 2 presents the values for Pearson correlation coefficient (R2), mean bias error (MBE), and root mean square error (RMSE) of the indices. The table highlights the commendable performance of the reconstructions in accurately reproducing these indices, as evidenced by high correlations, particularly for temperature-related indices. Furthermore, the MBE values are significantly low, measuring less than 0.34 d per month, and the RMSE values remain below 3.55 d per month.

5 Conclusions

We have confirmed that a decline of in situ observations is a noteworthy concern as it may result in the loss of crucial information in areas where local effects are relevant to climatology. While the reanalysis provides a homogeneous and comprehensive dataset, its applicability to studying climatologies with highly localized effects, particularly in regions with intricate orography, has been called into question.

In order to mitigate this possible loss of meteorological information based on surface observations, RASCAL has been developed. This is an open-source Python tool designed to fill gaps in observational data, enabling climate studies in regions with limited long-term data. This tool proved to be particularly useful for the test sites, especially in the mountainous areas. It is expected to also be useful in other areas with important local effects or distinctive locations like river valleys, forests, caves, or canyons.

The package presented here utilizes an object-oriented programming (OOP) approach, treating weather stations, predictors, and reconstructions as objects with multiple functional attributes that encompass all necessary functionalities. This has allowed for the execution of all modeling steps with just a few lines of code. The core methodology is based on linking large-scale circulation patterns with local atmospheric features. This linkage is established through the analog method and principal component analysis and has been shown to be more effective than reanalysis in conveying climatic characteristics. It is a faster and less computationally expensive alternative to dynamical downscaling methods and an easier-to-interpret method than machine learning statistical downscaling methods.

The package was evaluated at four stations in Spain, including three near a mountainous area in central Spain and one in a highly urbanized area. The results were compared to the products of the reanalysis ERA20C and ERA20CM. RASCAL outperformed the reanalysis in terms of R2, standard deviation, and bias. This improvement was particularly noticeable in the reconstruction of monthly total precipitation, with correlation values reaching 0.8. The reconstructed maximum and minimum temperatures show a slight improvement over the reanalysis in terms of standard deviation and correlation, reaching very high values of correlation of over 0.99. Additionally, the biases present in the reanalysis are significantly corrected by the reconstructions. This is also evident when examining the distributions of daily data. RASCAL is proficient at generating series that closely resemble the observations, unlike the reanalysis, which exhibits skewness towards low precipitation and biases in maximum and minimum temperatures.

The various methods for selecting the best analog have exhibited diverse behaviors when examining the different characteristics of the series. Therefore, it is recommended not to designate a single method as the best possible but to choose it based on the scientific objectives.

Seasonality also demonstrates a marked enhancement compared to the reanalysis. RASCAL produces reconstructions with an annual cycle closely resembling the observations. While the precipitation annual cycle exhibits some disparities during unstable months, such as November and March, the cycles of maximum and minimum temperatures are nearly identical to the observations in every month when using the quantile map method. This method better represents the monthly variability for both precipitation and temperatures.

In climate studies, the use of indices is a common practice to condense key climatic features of a study area. RASCAL has demonstrated its capacity to reproduce indices like days of precipitation above 1 mm, icing days, and frost days well for a station situated in the core of a mountain range. This achievement is particularly noteworthy given the difficult conditions posed by the strong dry and warm biases of the reanalysis in this region, which would otherwise hinder the accurate computation of these indices. The reconstructed data showcase high correlation coefficients with observations, ranging from 0.8 to 0.96. Additionally, consistently low values of MBE and RMSE were observed. These outcomes highlight the significant potential of RASCAL to facilitate climate studies in regions with complex climatic dynamics. These results confirm RASCAL's effectiveness in capturing and reproducing important climatic features for reliable climate research, highlighting its potential in regions with limited long-term weather data.

However, it is important to acknowledge instances where this methodology may have limitations. This approach requires sufficiently long series, as it cannot create reconstructions with data that have not been observed. Additionally, land use changes or urbanization processes can disrupt the intricate relationship between large and small scales, affecting the relationship between predictor and predictand and, ultimately, the quality of the reconstruction.

The implementation of this package has yielded positive results, providing opportunities to conduct comprehensive climate variability analyses within the study area. In a short time, it is expected that we can use RASCAL in the analysis of the climate variability and climate change in the mountainous area of the Central System (Spain). On the other hand, improvements to be implemented in this methodology will be studied once it has been applied to different cases, scenarios, and regions. Finally, whether this package can be extended as a downscaling tool for short- and medium-term numerical forecast, as well as for seasonal prediction and even climate change scenarios, will be analyzed.

Code availability

RASCAL (version 1.0) source code is available on GitHub (https://github.com/alvaro-gc95/RASCAL) and Zenodo (https://doi.org/10.5281/zenodo.12654140, Gonzalez-Cervera2024). The required dependencies, package usage, and functionalities are described in the documentation (https://rascalv100.readthedocs.io/en/latest/, last access: 15 July 2024). Additionally, a Jupyter Notebook is available to represent and validate the reconstructions and assess their skill. To run this library, Python 3.10 is required. RASCAL is also installable via the Python package index (PyPI): https://pypi.org/project/rascal-ties/ (last access: 15 July 2024).

Data availability

The ERA5 reanalysis data to run the code examples described in the documentation are available on Zenodo (https://doi.org/10.5281/zenodo.12626856, ECMWF2024).

Author contributions

AGC and LD contributed to the conceptualization of the model and the writing of the paper. AGC contributed to the RASCAL software coding, documentation, modeling, data analysis, and visualization. LD contributed to the supervision and funding acquisition.

Competing interests

The contact author has declared that neither of the authors has any competing interests.

Disclaimer

Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors.

Acknowledgements

Partial funding comes from the Ministerio de Ciencia e Innovación, the Programa de doctorados industriales 2019 (DIN2019-010482), project FIRN (PID2022-140690OA-I00), Proyectos de Generación de Conocimiento 2022, and interMET Sistemas y Redes SME. We would like to thank the Agencia Estatal de Meteorología (AEMET) for providing observational data. Special thanks go to the Navacerrada Observatory staff for their tireless and accurate work. Thanks go to the European Centre for Medium-Range Weather Forecasts (ECMWF) for providing the ERA20C and ERA20CM data. Thanks go to Nuria Sevilla-Sierra for coming up with a cool name for the package. We would like to thank the referees for their thoughtful reviews that helped to make this a better paper.

Financial support

This research has been supported by the Ministerio de Ciencia e Innovación (grant nos. DIN2019-010482 and PID2022-140690OA-I00).

Review statement

This paper was edited by Lele Shu and reviewed by three anonymous referees.

References

Abatzoglou, J. T. and Brown, T. J.: A comparison of statistical downscaling methods suited for wildfire applications, Int. J. Climatol., 32, 772–780, 2012. a

Auer, I., Böhm, R., Jurkovic, A., Lipa, W., Orlik, A., Potzmann, R., Schöner, W., Ungersböck, M., Matulla, C., Briffa, K., Jones, P., Efthymiadis, D., Brunetti, M., Nanni, T., Maugeri, M., Mercalli, L., Mestre, O., Moisselin, J.-M., Begert, M., Müller-Westermeier, G., Kveton, V., Bochnicek, O., Stastny, P., Lapin, M., Szalai, S., Szentimrey, T., Cegnar, T., Dolinar, M., Gajic-Capka, M., Zaninovic, K., Majstorovic, Z., and Nieplova, E.: HISTALP –historical instrumental climatological surface time series of the Greater Alpine Region, Int. J. Climatol., 27, 17–46, 2007. a

Barry, R. G. and Chorley, R. J.: Atmosphere, weather and climate, Routledge, https://doi.org/10.4324/9780203871027, 2009. a

Begert, M., Schlegel, T., and Kirchhofer, W.: Homogeneous temperature and precipitation series of Switzerland from 1864 to 2000, Int. J. Climatol., 25, 65–80, 2005. a

Bell, B., Hersbach, H., Simmons, A., Berrisford, P., Dahlgren, P., Horányi, A., Muñoz-Sabater, J., Nicolas, J., Radu, R., Schepers, D., Soci, C., Villaume, S., Bidlot, J. R., Haimberger, L., Woollen, J., Buontempo, C., and Thépaut, J. N.: The ERA5 global reanalysis: Preliminary extension to 1950, Q. J. Roy. Meteor. Soc., 147, 4186–4227, 2021. a

Benestad, R. E.: Downscaling precipitation extremes: Correction of analog models through PDF predictions, Theor. Appl. Climatol., 100, 1–21, 2010. a

Bergström, H. and Moberg, A.: Daily air temperature and pressure series for Uppsala (1722–1998), Climatic Change, 53, 213–252, 2002. a

Boateng, D. and Mutz, S. G.: pyESDv1.0.1: an open-source Python framework for empirical-statistical downscaling of climate information, Geosci. Model Dev., 16, 6479–6514, https://doi.org/10.5194/gmd-16-6479-2023, 2023. a, b, c

Boé, J., Terray, L., Habets, F., and Martin, E.: A simple statistical-dynamical downscaling scheme based on weather types and conditional resampling, J. Geophys. Res.-Atmos., 111, D23106, https://doi.org/10.1029/2005JD006889, 2006. a

Bonshoms, M., Ubeda, J., Liguori, G., Körner, P., Navarro, Á., and Cruz, R.: Validation of ERA5-Land temperature and relative humidity on four Peruvian glaciers using on-glacier observations, J. Mt. Sci., 19, 1849–1873, 2022. a

Bürger, G.: Expanded downscaling for generating local weather scenarios, Clim. Res., 7, 111–128, 1996. a

Dawson, A.: eofs: A library for EOF analysis of meteorological, oceanographic, and climate data, J. Open Res. Softw., 4, 1, https://doi.org/10.5334/jors.122, 2016. a

Dee, D., Balmaseda, M., Balsamo, G., Engelen, R., Simmons, A., and Thépaut, J.-N.: Toward a consistent reanalysis of the climate system, B. Am. Meteorol. Soc., 95, 1235–1248, 2014. a

De Rooy, W. C. and Kok, K.: A combined physical–statistical approach for the downscaling of model wind speed, Weather Forecast., 19, 485–495, 2004. a

Dinku, T.: Challenges with availability and quality of climate data in Africa, in: Extreme hydrology and climate variability, edited by: Melesse, A. M., Abtew, W., and Senay, G., 71–80, Elsevier, https://doi.org/10.1016/C2017-0-04193-9, 2019. a

Domínguez-Castro, F., Vaquero, J. M., Rodrigo, F. S., Farrona, A., Gallego, M. C., García-Herrera, R., Barriendos, M., and Sanchez-Lorenzo, A.: Early Spanish meteorological records (1780–1850), Int. J. Climatol., 34, 593–603, 2014. a

Durán, L. and Barstad, I.: Multi-scale evaluation of a linear model of orographic precipitation over Sierra de Guadarrama (Iberian Central System), Int. J. Climatol., 38, 4127–4141, 2018. a, b

Durán, L., Sánchez, E., and Yagüe, C.: Climatology of precipitation over the Iberian Central System mountain range, Int. J. Climatol., 33, 2260–2273, 2013. a

Durán, L., Rodríguez-Fonseca, B., Yagüe, C., and Sánchez, E.: Water vapour flux patterns and precipitation at Sierra de Guadarrama mountain range (Spain), Int. J. Climatol., 35, 1593–1610, 2015. a, b

Durán, L., Rodríguez-Muñoz, I., and Sánchez, E.: The Peñalara mountain meteorological network (1999–2014): Description, preliminary results and lessons learned, Atmosphere, 8, 203, https://doi.org/10.3390/atmos8100203, 2017. a, b

ECMWF: Example Reanalysis Dataset (ERA5), Zenodo [data set], https://doi.org/10.5281/zenodo.12626856, 2024. a

Emery, W., Castro, S., Wick, G., Schluessel, P., and Donlon, C.: Estimating sea surface temperature from infrared satellite and in situ temperature data, B. Am. Meteorol. Soc., 82, 2773–2786, 2001. a

Fan, M., Xu, J., Chen, Y., and Li, W.: Simulating the precipitation in the data-scarce Tianshan Mountains, Northwest China based on the Earth system data products, Arab. J. Geosci., 13, 1–15, 2020. a

Gonzalez-Cervera, A.: RASCALv1.0.0, Zenodo [code], https://doi.org/10.5281/zenodo.10592595, 2024. a

González-Flórez, C., González-Cervera, Á., and Durán, L.: Characterising Large-Scale Meteorological Patterns Associated with Winter Precipitation and Snow Accumulation in a Mountain Range in the Iberian Peninsula (Sierra de Guadarrama), Atmosphere, 13, 1600, https://doi.org/10.3390/atmos13101600, 2022. a, b

Hanssen-Bauer, I., Førland, E. J., Haugen, J. E., and Tveito, O. E.: Temperature and precipitation scenarios for Norway: comparison of results from dynamical and empirical downscaling, Clim. Res., 25, 15–27, 2003. a

Hersbach, H.: The ERA5 Atmospheric Reanalysis, in: AGU fall meeting abstracts, San Francisco, CA, USA, 12–16 December 2016, Volume 2016, p. NG33D-01, 2016. a

Hewitson, B. C. and Crane, R. G.: Climate downscaling: techniques and application, Clim. Res., 7, 85–95, 1996. a

Hidalgo, H. G., Dettinger, M. D., and Cayan, D. R.: Downscaling with constructed analogues: daily precipitation and temperature fields over the United States, California Energy Commission, Public Interest Energy Research Program, Sacramento, CA, 62, 2008. a

Horton, P., Obled, C., and Jaboyedoff, M.: The analogue method for precipitation prediction: finding better analogue situations at a sub-daily time step, Hydrol. Earth Syst. Sci., 21, 3307–3323, https://doi.org/10.5194/hess-21-3307-2017, 2017. a

Hoyer, S., Hamman, J., Roos, M., Cherian, D., Fitzgerald, C., Fujii, K., Maussion, F., Hauser, M., Clark, S., Kleeman, A., Kluyver, T., Munroe, J., Amici, A., Nicholas, T., Barghini, A., Banihirwe, A., Hatfield-Dodds, Z., Abernathey, R., Bell, R., Roszko, M., Wolfram, P. J., Signell, J., Mühlbauer, K., Sinai, Y. B., and Bovy, B.: pydata/xarray: v0.17.0, Zenodo, https://doi.org/10.5281/zenodo.1063607, 2020. a

Huang, G., Li, Z., Li, X., Liang, S., Yang, K., Wang, D., and Zhang, Y.: Estimating surface solar irradiance from satellites: Past, present, and future perspectives, Remote Sens. Environ., 233, 111371, https://doi.org/10.1016/j.rse.2019.111371, 2019. a

IPCC: Summary for Policymakers, edited by: Masson-Delmotte, V., Zhai, P., Pörtner, H.-O., Roberts, D., Skea, J., Shukla, P. R., Pirani, A., Moufouma-Okia, W., Péan, C., Pidcock, R., Connors, S., Matthews, J. B. R., Chen, Y., Zhou, X., Gomis, M. I., Lonnoy, E., Maycock, T., Tignor, M., and Waterfield, T., Cambridge University Press, Cambridge, United Kingdom and New York, NY, USA 3−-32, https://doi.org/10.1017/9781009157896.001, 2021. a

Klein Tank, A., Wijngaard, J., Können, G., Böhm, R., Demarée, G., Gocheva, A., Mileta, M., Pashiardis, S., Hejkrlik, L., Kern-Hansen, C., Heino, R., Bessemoulin, P., Müller-Westermeier, G., Tzanakou, M., Szalai, S., Pálsdóttir, T., Fitzgerald, D., Rubin, S., Capaldo, M., Maugeri, M., Leitass, A., Bukantis, A., Aberfeld, R., van Engelen, A. F. V., Forland, E., Mietus, M., Coelho, F., Mares, C., Razuvaev, V., Nieplova, E., Cegnar, T., Antonio López, J., Dahlström, B., Moberg, A., Kirchhofer, W., Ceylan, A., Pachaliuk, O., Alexander, L. V., and Petrovic, P.: Daily dataset of 20th-century surface air temperature and precipitation series for the European Climate Assessment, Int. J. Climatol., 22, 1441–1453, 2002. a

Klein Tank, A. M. G., Zwiers, F. W., and Zhang, X.: Guidelines on analysis of extremes in a changing climate in support of informed decisions for adaptation, limate Data and Monitoring WCDMP-No. 72, vol. 1500, WMO-TD, p. 56, 2009. a

Lavers, D. A., Simmons, A., Vamborg, F., and Rodwell, M. J.: An evaluation of ERA5 precipitation for climate monitoring, Q. J. Roy. Meteor. Soc., 148, 3152–3165, 2022. a

Lo, J. C.-F., Yang, Z.-L., and Pielke Sr., R. A.: Assessment of three dynamical climate downscaling methods using the Weather Research and Forecasting (WRF) model, J. Geophys. Res.-Atmos., 113, D09112, https://doi.org/10.1029/2007JD009216, 2008. a

Lorenz, E. N.: Atmospheric predictability as revealed by naturally occurring analogues, J. Atmos. Sci., 26, 636–646, 1969. a

Manley, G.: Central England temperatures: monthly means 1659 to 1973, Q. J. Roy. Meteor. Soc., 100, 389–405, 1974. a

Moisselin, J.-M., Schneider, M., Canellas, C., and Mestre, O.: Les changements climatiques en France au XXe siècle-Etude des longues séries homogénéisées de données de température et de précipitations, La météorologie, 2002, 45–56, 2002. a

Molina, M. O., Gutiérrez, C., and Sánchez, E.: Comparison of ERA5 surface wind speed climatologies over Europe with observations from the HadISD dataset, Int. J. Climatol., 41, 4864–4878, 2021. a

Poli, P., Hersbach, H., Dee, D. P., Berrisford, P., Simmons, A. J., Vitart, F., Laloyaux, P., Tan, D. G., Peubey, C., Thépaut, J.-N., Trémolet, Y., Hólm, E. V., Bonavita, M., Isaksen, L., and Fisher, M.: ERA-20C: An atmospheric reanalysis of the twentieth century, J. Climate, 29, 4083–4097, 2016. a

Purdom, J. F. and Menzel, W. P.: Evolution of satellite observations in the United States and their use in meteorology, Historical Essays on Meteorology 1919–1995: The Diamond Anniversary History Volume of the American Meteorological Society, edited by: Fleming, J. R., 99–155, 1996. a

Saavedra-Moreno, B., De la Iglesia, A., Magdalena-Saiz, J., Carro-Calvo, L., Durán, L., and Salcedo-Sanz, S.: Surface wind speed reconstruction from synoptic pressure fields: machine learning versus weather regimes classification techniques, Wind Energy, 18, 1531–1544, 2015. a

Salio, P., Hobouchian, M. P., Skabar, Y. G., and Vila, D.: Evaluation of high-resolution satellite precipitation estimates over southern South America using a dense rain gauge network, Atmos. Res., 163, 146–161, 2015. a

Schween, J. H., Hoffmeister, D., and Löhnert, U.: Filling the observational gap in the Atacama Desert with a new network of climate stations, Global Planet. Change, 184, 103034, https://doi.org/10.1016/j.gloplacha.2019.103034, 2020. a

Shulgina, T., Gershunov, A., Hatchett, B. J., Guirguis, K., Subramanian, A. C., Margulis, S. A., Fang, Y., Cayan, D. R., Pierce, D. W., Dettinger, M., Anderson M. L., and Ralph F. M.: Observed and projected changes in snow accumulation and snowline in California's snowy mountains, Clim. Dynam., 61, 1–16, 2023. a

Wang, X., Tolksdorf, V., Otto, M., and Scherer, D.: WRF-based dynamical downscaling of ERA5 reanalysis data for High Mountain Asia: Towards a new version of the High Asia Refined analysis, Int. J. Climatol., 41, 743–762, 2021. a

Wetterhall, F., Halldin, S., and Xu, C.-Y.: Statistical precipitation downscaling in central Sweden with the analogue method, J. Hydrol., 306, 174–190, 2005. a

Wilks, D. S.: Statistical methods in the atmospheric sciences, Vol. 100, edited by: Wilks, D. S., Academic press, ISBN 978-0123850225, 2011. a, b, c

Yagüe, C., Zurita, E., and Martinez, A.: Statistical analysis of the Madrid urban heat island, Atmos. Environ. B-Urb., 25, 327–332, 1991. a

Yang, D., Kane, D., Zhang, Z., Legates, D., and Goodison, B.: Bias corrections of long-term (1973–2004) daily precipitation data over the northern regions, Geophys. Res. Lett., 32, 312–321, https://doi.org/10.1029/2005GL024057, 2005. a

Zorita, E. and Von Storch, H.: The analog method as a simple statistical downscaling technique: Comparison with more complicated methods, J. Climate, 12, 2474–2489, 1999. a

Zorita, E., Hughes, J. P., Lettemaier, D. P., and von Storch, H.: Stochastic characterization of regional circulation patterns for climate model diagnosis and estimation of local precipitation, J. Climate, 8, 1023–1042, 1995. a

Download
Short summary
RASCAL is an open-source Python tool designed for reconstructing daily climate observations, especially in regions with complex local phenomena. It merges large-scale weather patterns with local weather using the analog method. Evaluations in central Spain show that RASCAL outperforms ERA20C reanalysis in reconstructing precipitation and temperature. RASCAL offers opportunities for broad scientific applications, from short-term forecasts to local-scale climate change scenarios.