A strategy for the optimization of quality control checks available in the titanlib open library
Authors: Abraham Ingrid R. , Alerskans Emy , Lussana Cristian , Nipen Thomas N. , Oram Louise , Seierstad Ivar A. 
Published: June 2022

&lt;p&gt;Titanlib is a library of functions for the automatic quality control of meteorological observations and it is publicly available on github:&lt;/p&gt;&lt;p&gt;&lt;em&gt;https://github.com/metno/titanlib&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Titanlib builds upon the experience of running TITAN (B&amp;#229;serud et al., 2020) for the quality control of temperature and precipitation serving operational applications, such as the production of automatic weather forecasts (Yr.no) and observational gridded datasets (seNorge.no).&lt;/p&gt;&lt;p&gt;We aim to manage&amp;#160; titanlib as an open project that will eventually incorporate contributions from different working groups.&lt;/p&gt;&lt;p&gt;The distinctive feature of titanlib is the use of spatial quality control methods. A wide range of spatial checks are made available, from buddy-checks among neighbouring observations to spatial consistency tests (SCTs) based on more sophisticated statistical interpolation.&lt;/p&gt;&lt;p&gt;This presentation focuses on tuning the parameters of a generic titanlib function. In particular, a general approach to this problem will be presented. A set of reference observations is identified among all available observations. The reference observations are considered good observations. For the sake of simplicity, we call good observations those that are not affected by gross measurement errors, and bad observations those with gross errors. Synop stations constitute the natural reference set; however, other choices are possible. The quality control routine is always applied to the whole set of observations and the statistics are collected only over the reference observations. First, the routine is applied in the &amp;#8220;unperturbed&amp;#8221; mode and we count the number of: correct negatives (i.e. reference observations flagged as good ones), and false alarms (i.e. reference observations flagged as bad ones). Secondly the routine is applied on &amp;#8220;perturbed&amp;#8221; reference observations, by introducing known errors, and we count: misses (i.e. perturbed observations flagged as good ones), and hits (i.e. perturbed observations flagged as bad ones).&lt;/p&gt;&lt;p&gt;The combination of &amp;#8220;perturbed&amp;#8221; and &amp;#8220;unperturbed&amp;#8221; experiments for different settings of the QC routine allows us to obtain several contingency tables that we use to determine the optimal combination of parameters in an original way. In order to define the cost function, the user is required to specify the prior knowledge on: the expected probability of having a bad observation in the network, and the relative cost of a false alarm for the application considered.&lt;/p&gt;&lt;p&gt;The method is described by Alerskans et al. (2022), where it has been applied to QC of hourly temperature measured from crowdsourced observations. Furthermore, we will present an application for QC of hourly precipitation.&lt;/p&gt;&lt;p&gt;References:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;B&amp;#229;serud, L., Lussana, C., Nipen, T. N., Seierstad, I. A., Oram, L., and Aspelien, T.: TITAN automatic spatial quality control of meteorological in-situ observations, Adv. Sci. Res., 17, 153&amp;#8211;163, https://doi.org/10.5194/asr-17-153-2020, 2020&lt;/li&gt;
&lt;li&gt;Alerskans, E., Lussana, C., Nipen, T. N., Seierstad, I. A.,: Optimizing spatial quality control for a dense network of meteorological stations, accepted for publication in Journal of Atmospheric and Oceanic Technology (JTECH), 2022&lt;/li&gt;
&lt;/ul&gt;