<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-19-9489-2026</article-id><title-group><article-title>Virtual Rain v1.0: a unified toolkit for high-resolution  rainfall simulation and disaggregation</article-title><alt-title>Virtual Rain v1.0: a unified toolkit for high-resolution rainfall simulation and disaggregation</alt-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1">
          <name><surname>Cappelli</surname><given-names>Francesco</given-names></name>
          <email>francesco.cappelli@unitus.it</email>
        <ext-link>https://orcid.org/0000-0002-6173-5583</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Grimaldi</surname><given-names>Salvatore</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-5715-106X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Petroselli</surname><given-names>Andrea</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Santinami</surname><given-names>Emanuele</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Department for Innovation in Biological, Agro-Food and Forest Systems, Tuscia University, Viterbo, 01100 Lazio, Italy</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Department of Agriculture and Forest Sciences, Tuscia University, Viterbo, 01100 Lazio, Italy</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Francesco Cappelli (francesco.cappelli@unitus.it)</corresp></author-notes><pub-date><day>7</day><month>October</month><year>2026</year></pub-date>
      
      <volume>19</volume>
      <issue>19</issue>
      <fpage>9489</fpage><lpage>9518</lpage>
      <history>
        <date date-type="received"><day>11</day><month>June</month><year>2026</year></date>
           <date date-type="rev-request"><day>26</day><month>June</month><year>2026</year></date>
           <date date-type="rev-recd"><day>23</day><month>September</month><year>2026</year></date>
           <date date-type="accepted"><day>27</day><month>September</month><year>2026</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2026 Francesco Cappelli et al.</copyright-statement>
        <copyright-year>2026</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026.html">This article is available from https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026.pdf</self-uri>
      <abstract><title>Abstract</title>

      <p id="d2e116">Stochastic simulation models are essential for investigating hydrological processes and supporting water resource management. In this study, we introduce Virtual Rain, a software toolkit that first generates synthetic daily rainfall time series and then disaggregates them to a user-defined temporal resolution. The toolkit implements and integrates the approaches recently proposed by some of the authors, ensuring a realistic representation of rainfall dynamics while preserving key statistical properties. The framework is implemented through a set of Python and R routines designed to facilitate practical application. In addition to providing observed rainfall time series and the scaling exponent <inline-formula><mml:math id="M1" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> (Intensity–Duration–Frequency slope), users can configure key modelling components, including the marginal distribution, autocorrelation structure, number of lags, and target temporal resolution. The routines generate both graphical and quantitative outputs, enabling direct comparison between observed and simulated series. Rather than introducing new stochastic rainfall methodologies, Virtual Rain provides the first publicly available implementation of an integrated workflow combining the CoSMoS-2s daily rainfall generator and the MRC rainfall disaggregation model within a unified software environment. Virtual Rain is demonstrated through a real-world case study, illustrating the functionality and usability of the implemented workflow. The toolkit is also available through an interactive web-based platform, facilitating its use by a broad range of users.</p>
  </abstract>
    
<funding-group>
<award-group id="gs1">
<funding-source>Ministero dell'Università e della Ricerca</funding-source>
<award-id>CUP J53C25002290001</award-id>
</award-group>
<award-group id="gs2">
<funding-source>Università degli Studi della Tuscia</funding-source>
<award-id>CUP F54J16000030001</award-id>
<award-id>CUP F52G16000010001</award-id>
</award-group>
</funding-group>
</article-meta>
  </front>
<body>
      

      
<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d2e137">Reliable hydrological modelling, flood risk assessment, and climate variability analyses critically depend on the availability of long-term, high-resolution rainfall records (Grimaldi et al., 2022; Northrop, 2024; Volpi et al., 2024; Fischer et al., 2025). However, sub-daily precipitation observations are often limited in both spatial coverage and temporal continuity, limiting their use for statistically robust analyses and long-term risk assessments. This limitation also hinders the development, calibration, and validation of stochastic precipitation models, which require extensive datasets to reliably reproduce the multiscale structure of precipitation processes (Onof and Arnbjerg-Nielsen, 2009; Volpi et al., 2024).</p>
      <p id="d2e140">In contrast, hydrologists typically have access to much longer daily precipitation time series, often spanning several decades, as well as non-continuous observations of extreme precipitation events with durations of less than a day (e.g., 1, 3, 6, 12, and 24 <inline-formula><mml:math id="M2" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:math></inline-formula>). These data form the basis of widely used tools such as intensity-duration-frequency (IDF) curves, which play a central role in flood analysis and infrastructure design (Koutsoyiannis, 2025). Exploiting the combined information contained in daily time series and IDF curves, therefore, represents a promising avenue for reconstructing precipitation dynamics at sub-daily scales. However, despite the wide range of stochastic precipitation generators and disaggregation techniques proposed in the literature, choosing an appropriate model for a given application remains a challenge (Koutsoyiannis et al., 2003).</p>
      <p id="d2e151">In this paper, we introduce Virtual Rain v1.0, a software toolkit implementing a unified workflow for stochastic daily rainfall simulation and subsequent temporal disaggregation to arbitrary resolutions while preserving key statistical properties. The methodological framework underlying Virtual Rain was recently proposed by Cappelli et al. (2026a, c), integrating two complementary modules: (Module 1) stochastic daily rainfall generation and (Module 2) sub-daily rainfall disaggregation. The objective of the present work is not to develop or re-validate these methodologies, but to provide their first publicly available implementation within an integrated, reproducible, and user-friendly software environment.</p>
      <p id="d2e154">Module 1 is based on the Complete Stochastic Modelling Solution (CoSMoS) framework introduced by Papalexiou (2018). The first publicly available software implementation of this framework was PyCoSMoS (Cappelli et al., 2024), which implements the original single-state formulation, hereafter referred to as CoSMoS-1s, where rainfall is modeled as a single intermittent stochastic process. Virtual Rain instead implements CoSMoS-2s (Papalexiou, 2022), which extends the original framework by explicitly separating rainfall occurrence and rainfall intensity into two coupled stochastic processes. This two-state formulation provides a more realistic representation of wet and dry spell dynamics while improving the reproduction of rainfall intermittency, marginal distributions, and autocorrelation structure (ACS) across temporal scales.</p>
      <p id="d2e158">Module 2 implements the Multifractal Random Cascade (MRC) rainfall disaggregation methodology originally developed by Cappelli et al. (2025a) and subsequently refined in Cappelli et al. (2025b). Based on multifractal theory, the MRC model exploits the scale-invariant properties of precipitation and provides a parsimonious parameterization through IDF curves (Langousis et al., 2009). While the methodological developments of CoSMoS-2s and the MRC model have already been presented and validated in the corresponding methodological studies, no integrated software implementation was previously available. Therefore, neither CoSMoS-2s nor the MRC formulation is presented here as a new methodological contribution. Rather, Virtual Rain operationalizes these previously developed methodologies within a common computational framework, providing the interfaces, routines, documentation, and workflow required to apply them jointly or independently.</p>
      <p id="d2e161">A key advantage of the proposed framework is that it eliminates the need for continuous sub-daily observations during calibration. Daily precipitation data are used to calibrate the simulation module, while IDF curves provide the information needed for disaggregation (Cappelli et al., 2026a). This significantly broadens the framework's applicability, particularly in data-sparse regions, and addresses a major limitation of existing approaches that rely on high-resolution observations.</p>
      <p id="d2e164">Another important feature of Virtual Rain is its flexibility: the two modules can be used jointly or independently, depending on data availability and modelling objectives. When long-duration daily time series are not available, Module 1 can be used to generate synthetic series of arbitrary length, which can then be disaggregated using Module 2. Conversely, when reliable daily observations exist, users can directly apply the disaggregation module without prior simulation.</p>
      <p id="d2e167">The proposed toolkit is implemented through modular routines compatible with Python and R environments. In this study, the daily simulation module is implemented in Jupyter Notebook (Pérez and Granger, 2007), while the disaggregation module is developed in R. These open-source environments support interactive workflows and are accessible without local installation such as Anaconda or Binder. Virtual Rain is also available through an interactive web-based platform, facilitating its use by a broad range of users.</p>

      <fig id="F1" specific-use="star"><label>Figure 1</label><caption><p id="d2e172">Virtual Rain workflow. Green box: Module 1; red box: Module 2.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f01.png"/>

      </fig>

<table-wrap id="T1" specific-use="star"><label>Table 1</label><caption><p id="d2e185">Methodological background and specific contributions of Virtual Rain v1.0.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="justify" colwidth="38mm"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="40mm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="80mm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left">Component</oasis:entry>
         <oasis:entry colname="col2" align="left">Previous methodological development</oasis:entry>
         <oasis:entry colname="col3" align="left">Contribution of Virtual Rain v1.0</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left">Daily rainfall simulation</oasis:entry>
         <oasis:entry colname="col2" align="left">CoSMoS framework and CoSMoS-2s formulation</oasis:entry>
         <oasis:entry colname="col3" align="left">Software implementation of the complete CoSMoS-2s workflow and its integration within Virtual Rain</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left">Multifractal rainfall disaggregation</oasis:entry>
         <oasis:entry colname="col2" align="left">MRC methodology developed in previous studies</oasis:entry>
         <oasis:entry colname="col3" align="left">Implementation of the complete calibration and disaggregation workflow within the toolkit</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left">Coupling of the two modules</oasis:entry>
         <oasis:entry colname="col2" align="left">Previously proposed methodological framework</oasis:entry>
         <oasis:entry colname="col3" align="left">First integrated software implementation allowing the modules to operate jointly or independently</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left">Python/R workflows</oasis:entry>
         <oasis:entry colname="col2" align="left">Not previously available</oasis:entry>
         <oasis:entry colname="col3" align="left">Standalone, documented computational workflows with reproducible examples</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left">Web interface</oasis:entry>
         <oasis:entry colname="col2" align="left">Not previously available</oasis:entry>
         <oasis:entry colname="col3" align="left">Interactive web-based implementation of the Virtual Rain workflow</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d2e277">Compared with the previous methodological studies, the novelty of the present contribution lies in the development, implementation, integration, documentation, and verification of the Virtual Rain software framework, rather than in the development of new stochastic rainfall methodologies. Virtual Rain provides the first integrated implementation of the complete CoSMoS-2s workflow (Module 1) and the complete MRC calibration and disaggregation workflow (Module 2) through standalone Python and R routines, complemented by an interactive web-based platform that reproduces the same computational workflow. The specific developments introduced in the present work include the integration of the two previously independent methodological components, their implementation as accessible computational workflows, the development of user interfaces and supporting documentation, and the provision of reproducible examples and implementation-verification procedures. Table 1 summarizes the distinction between previously established methodological developments and the new software and technical contributions introduced by Virtual Rain v1.0.</p>
      <p id="d2e280">The proposed software is demonstrated through a real-world case study involving a single rain gauge station. The purpose of the case study is to illustrate the implementation and application of the complete Virtual Rain workflow and to verify the consistency of the software outputs with the expected behavior of the underlying methodologies, rather than to provide a new methodological validation of CoSMoS-2s or the MRC model. Consistent with the Development and technical paper scope, particular attention is therefore given to workflow reproducibility, implementation verification, and consistency among the computational interfaces.</p>
      <p id="d2e283">The remainder of the paper is structured as follows. Section 2 presents the underlying methodology. Section 3 describes the Virtual Rain framework and its software implementation. Section 4 presents the case study. Section 5 discusses the main findings, practical implications, and limitations of the proposed implementation. Finally, Sect. 6 concludes the paper, while the Appendix provides an overview of the web-based platform.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Methodology in brief</title>
      <p id="d2e294">Reliable hydrological modelling, flood risk assessment, and climate variability analyses critically depend on the availability of long-term, high-resolution rainfall records (Grimaldi et al., 2022; Northrop, 2024; Volpi et al., 2024; Fischer et al., 2025).</p>

      <fig id="F2" specific-use="star"><label>Figure 2</label><caption><p id="d2e299">Workflow of Daily Rainfall Simulation Model. Equations details are described in the text.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f02.png"/>

      </fig>

      <fig id="F3" specific-use="star"><label>Figure 3</label><caption><p id="d2e310">Workflow of Sub-Daily Rainfall Disaggregation Model. Blue boxes represent the procedure input.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f03.png"/>

      </fig>

      <p id="d2e320">The Virtual Rain framework consists of two modules (Fig. 1): (i) a daily rainfall simulation module based on CoSMoS-2s and (ii) a multifractal temporal disaggregation module based on an MRC model. Depending on data availability and modelling objectives, the two modules can be used either jointly or independently.</p>
      <p id="d2e323">The methodological details of the daily simulation and disaggregation procedures are described in Sects. 2.1 and 2.2, respectively.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Module 1 – daily rainfall simulation model</title>
      <p id="d2e333">Daily rainfall time series are simulated using CoSMoS-2s, a two-state intermittent stochastic model (Papalexiou, 2022; Cappelli et al., 2024). In the single-site configuration adopted here, the model is structured around two coupled components: (i) State 1, a binary wet/dry occurrence process and (ii) State 2, a continuous intensity process defined for wet days (Fig. 2).</p>
      <p id="d2e336">Since rainfall is usually affected by seasonality, it is necessary to group data into subsets (i.e., <inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:mi>m</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">12</mml:mn></mml:mrow></mml:math></inline-formula> seasons), with the aim of modeling rainfall occurrence and intensity within homogeneous samples. The two processes are then modeled separately. In State 1, the observed daily rainfall is transformed into a binary process <inline-formula><mml:math id="M4" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. For each season, occurrence probabilities <inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and empirical ACSs (<inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo stretchy="false" mathvariant="normal">^</mml:mo></mml:mover><mml:mi>B</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>) are estimated and subsequently mapped into gaussian correlations through the transformation: <inline-formula><mml:math id="M7" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>Z</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>B</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:msup><mml:msup><mml:mo>)</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula>. Temporal dependence is then reproduced using a gaussian autoregressive (AR) model of order <inline-formula><mml:math id="M8" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>, and simulated values are converted back into wet/dry states using seasonally varying thresholds. Specifically,

            <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M9" display="block"><mml:mrow><mml:msub><mml:mi>b</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable rowspacing="0.2ex" class="cases" columnspacing="1em" columnalign="left" framespacing="0em"><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo><mml:mo>≤</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M10" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="normal">Φ</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>(</mml:mo><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M11" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="normal">Φ</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> is the inverse of the cumulative distribution function of the standard normal distribution <inline-formula><mml:math id="M12" display="inline"><mml:mrow><mml:mi mathvariant="script">N</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d2e647">State 2 is devoted to the continuous process <inline-formula><mml:math id="M13" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> describing the wet-day rainfall amounts. For each season, suitable parametric distributions (e.g., 2- and 3-parameter Gamma, Generalized Gamma, Burr III, Burr XII, and 2- and 3-parameter Weibull distributions) are fitted to non-zero rainfall values, and parametric ACSs are used to model the empirical Spearman ACS <inline-formula><mml:math id="M14" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula> computed from consecutive wet-day sequences.</p>
      <p id="d2e671">These correlations are transformed into gaussian equivalents through the parent gaussian ACS <inline-formula><mml:math id="M15" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi>Z</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi>sin⁡</mml:mi><mml:mo>(</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi mathvariant="italic">π</mml:mi><mml:mn mathvariant="normal">6</mml:mn></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>S</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>)</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and reproduced through an autoregressive model of order <inline-formula><mml:math id="M16" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>. The simulated gaussian values are then mapped back to rainfall intensities via inverse transformation by applying <inline-formula><mml:math id="M17" display="inline"><mml:mrow><mml:mi>x</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>Q</mml:mi><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi>Z</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> where <inline-formula><mml:math id="M18" display="inline"><mml:mrow><mml:mi>Q</mml:mi><mml:mi>X</mml:mi></mml:mrow></mml:math></inline-formula> is the quantile function of the fitted rainfall distribution and <inline-formula><mml:math id="M19" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi>Z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the standard gaussian cumulative distribution function.</p>
      <p id="d2e791">The final synthetic series is obtained by combining the occurrence and intensity components, allowing the model to reproduce key features such as intermittency, marginal distributions, and temporal persistence (Cappelli et al., 2026a).</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Module 2 – sub-daily rainfall disaggregation model</title>
      <p id="d2e802">This module is designed to disaggregate a simulated (by Module 1) or observed daily rainfall time series into high-resolution sub-daily time series using a multifractal random cascade (MRC) model (Cappelli et al., 2025a, b) (Fig. 3). The approach assumes that rainfall intensity evolves as a multiplicative cascade process, in which the mean intensity at each temporal scale is redistributed through random weights with prescribed statistical properties. These weights follow a beta-lognormal distribution. The MRC model is characterized by three parameters: <inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, controlling intermittency and the proportion of dry intervals; <inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, governing lognormal variability and intensity fluctuations; and <inline-formula><mml:math id="M22" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>, representing the outer-scale parameter that defines the range of multifractal behavior. Importantly, <inline-formula><mml:math id="M23" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> represents a scaling parameter of the theoretical multifractal formulation and should not be interpreted as the duration of the rainfall block subsequently disaggregated by the cascade.</p>
      <p id="d2e841">The complete mathematical formulation of the MRC model adopted in Virtual Rain, including the beta-lognormal weight distribution, recursive cascade construction, conservation rule, theoretical multifractal IDF formulation, and calibration objective, is provided in Cappelli et al. (2025a, b). The present section summarizes the elements required to understand the role of Module 2 within Virtual Rain, while avoiding duplication of the complete methodological derivation already reported therein. Virtual Rain implements this formulation without introducing modifications to the underlying MRC model; implementation-specific choices and the corresponding input parameters are documented in the software-description section and in the archived software documentation.</p>
      <p id="d2e845">Rather than calibrating these parameters using high-resolution rainfall observations, the implemented workflow derives them from IDF relationships, following Cappelli et al. (2025a). IDF curves are typically expressed as <inline-formula><mml:math id="M24" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>(</mml:mo><mml:mi>d</mml:mi><mml:mo>,</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mo>(</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:msup><mml:mi>d</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> where <inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>(</mml:mo><mml:mi>d</mml:mi><mml:mo>,</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the rainfall intensity associated with duration <inline-formula><mml:math id="M26" display="inline"><mml:mi>d</mml:mi></mml:math></inline-formula> with return period <inline-formula><mml:math id="M27" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M28" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> is a scaling exponent constant with <inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>&lt;</mml:mo><mml:mi>n</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:mi>a</mml:mi><mml:mo>(</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is a function independent of <inline-formula><mml:math id="M31" display="inline"><mml:mi>d</mml:mi></mml:math></inline-formula>. The parameters <inline-formula><mml:math id="M32" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M33" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M34" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> are jointly estimated through numerical optimization by matching the theoretical multifractal IDF relationships to the target IDF information. Within this calibration, <inline-formula><mml:math id="M35" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> enters the theoretical formulation through the scale ratio <inline-formula><mml:math id="M36" display="inline"><mml:mrow><mml:mi>D</mml:mi><mml:mo>/</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:math></inline-formula> (Cappelli et al., 2025a, b). The theoretical relationship linking the MRC parameters to the IDF scaling properties, together with the objective function used for their calibration, parameter constraints, and optimization procedure, follows the formulation given in Cappelli et al. (2025a, b). By matching theoretical multifractal IDF relationships to empirical IDF curves, it is possible to estimate <inline-formula><mml:math id="M37" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M38" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M39" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> without relying on sub-daily calibration data. The cascade procedure is applied independently to each simulated day, ensuring exact preservation of daily rainfall totals while generating physically consistent sub-daily variability. Once the MRC parameters have been calibrated, the stochastic redistribution within each daily block is governed by <inline-formula><mml:math id="M40" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M41" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>; therefore, a fitted value of <inline-formula><mml:math id="M42" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> greater than 24 <inline-formula><mml:math id="M43" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:math></inline-formula> does not imply that a multi-day cascade of duration <inline-formula><mml:math id="M44" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> is explicitly simulated. The cascade recursion and conservation condition are those defined in Cappelli et al. (2025a, b), to which readers are referred for the complete mathematical derivation and definition of all associated variables.</p>
      <p id="d2e1087">For reproducibility, the specific input variables, parameter units and constraints, preprocessing operations, optimization settings, convergence criteria, and output structure used by the Virtual Rain implementation are reported in Sect. 3 and in the README accompanying the archived software release.</p>

<table-wrap id="T2" specific-use="star"><label>Table 2</label><caption><p id="d2e1094">Main routines implemented in Virtual Rain.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="6cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Module</oasis:entry>
         <oasis:entry colname="col2">Routine Name</oasis:entry>
         <oasis:entry colname="col3" align="left">Goal</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">M1: Daily rainfall simulation</oasis:entry>
         <oasis:entry rowsep="1" colname="col2"><monospace>M1.1: plot_rainfall_timeseries()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Exploratory analysis of observed rainfall data</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"><monospace>M1.2: MargDistr_Fitting()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Estimation of seasonal rainfall occurrence and marginal distributions</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"><monospace>M1.3: ACS_Fitting()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Estimation of occurrence and intensity autocorrelation structures</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"><monospace>M1.4: SimulatedMultiple_DailyTS()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Generation of multiple synthetic time series for diagnostic analyses</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"><monospace>M1.5: Diagnostic_plots()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Comparison between observed and simulated rainfall statistics</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"><monospace>M1.6: SimulatedTS()</monospace></oasis:entry>
         <oasis:entry colname="col3" align="left">Generation of the final synthetic daily rainfall series</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">M2: Sub-hourly disaggregation</oasis:entry>
         <oasis:entry rowsep="1" colname="col2"><monospace>M2.1: GEV_Fitting()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Estimation of extreme rainfall statistics and scaling parameters</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"><monospace>M2.2: MRC_calibration()</monospace></oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left">Calibration of the multifractal cascade model using IDF information</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"><monospace>M2.3: Ts_Disaggregation()</monospace></oasis:entry>
         <oasis:entry colname="col3" align="left">Generation of high-resolution rainfall series through temporal disaggregation</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Virtual Rain: a unified toolkit</title>
      <p id="d2e1246">In line with the methodological framework described in Sect. 2, Virtual Rain is organized into two modules: Module 1, dedicated to daily rainfall simulation using CoSMoS-2s, and Module 2, dedicated to temporal disaggregation using the MRC model. Each module consists of a set of routines that guide the user through data analysis, model calibration, simulation, validation, and generation of final outputs.</p>
      <p id="d2e1249">Table 2 summarizes the main routines implemented in the toolkit and their respective functions.</p>
      <p id="d2e1252">The following sections describe each routine, including its goal, required inputs, main operations, and outputs.</p>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Implementation of the daily rainfall simulation module</title>
      <p id="d2e1262">This module includes six routines designed to guide the user through the complete workflow of stochastic daily rainfall simulation, from exploratory analysis of the observed series to the generation and validation of synthetic rainfall data. The routines allow the user to reproduce key statistical rainfall properties, including marginal distributions, intermittency, seasonality, and temporal dependence, while providing graphical and quantitative tools to support model selection and validation. The routines are described below. <def-list><def-item><term><inline-formula><mml:math id="M45" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1275"><italic>M1.1</italic>:   <monospace>plot_rainfall_timeseries(data)</monospace></p>
      <p id="d2e1282"><italic>Goal:</italic> The routine provides a preliminary exploratory analysis of the observed rainfall series and helps the user visually inspect the main rainfall characteristics before model fitting.</p>
      <p id="d2e1287"><italic>Input:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1294">data: observed daily rainfall time series.</p></list-item></list></p>
      <p id="d2e1297"><italic>Operations:</italic> The function preprocesses the input series and produces three diagnostic plots: <list list-type="custom"><list-item><label>1.</label>
      <p id="d2e1304">Daily rainfall during the first observation year, useful for visualizing intermittency and wet/dry alternation;</p></list-item><list-item><label>2.</label>
      <p id="d2e1308">Annual maximum daily rainfall, allowing the user to inspect interannual variability and extreme events;</p></list-item><list-item><label>3.</label>
      <p id="d2e1312">Monthly seasonal components, highlighting the seasonal rainfall regime and supporting the choice of the seasonal grouping.</p></list-item></list></p>
      <p id="d2e1315"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1322">plots of rainfall time series, annual maxima and monthly seasonal components.</p></list-item></list></p></def></def-item><def-item><term><inline-formula><mml:math id="M46" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1334"><italic>M1.2:</italic>   <monospace>MargDistr_Fitting(data,</monospace> <monospace>seasonality_option = (1,2,3,4,6,12), start_month=1)</monospace></p>
      <p id="d2e1344"><italic>Goal:</italic> The routine identifies the probability distribution that best describes rainfall intensities in each season.</p>
      <p id="d2e1349"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1356"><monospace>data</monospace>: observed daily rainfall time series.</p></list-item><list-item>
      <p id="d2e1362"><monospace>seasonality_option</monospace>: number of seasonal groups used to partition the data (e.g., annual <inline-formula><mml:math id="M47" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 1, semiannual <inline-formula><mml:math id="M48" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 6, quarterly <inline-formula><mml:math id="M49" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 3, monthly <inline-formula><mml:math id="M50" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 12);</p></list-item><list-item>
      <p id="d2e1396"><monospace>start_month</monospace>: starting month of the seasonal partition.</p></list-item></list></p>
      <p id="d2e1401"><italic>Operations:</italic> For each seasonal group, the routine: <list list-type="custom"><list-item><label>1.</label>
      <p id="d2e1408">estimates the probability of dry days (<inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>);</p></list-item><list-item><label>2.</label>
      <p id="d2e1423">fits seven candidate distributions (2- and 3-parameter Gamma, Generalized Gamma, Burr III, Burr XII, and 2- and 3-parameter Weibull distributions) to non-zero rainfall values:</p></list-item><list-item><label>3.</label>
      <p id="d2e1427">estimates model parameters through the Nelder–Mead optimization algorithm by minimizing discrepancies between empirical and theoretical exceedance probabilities.</p></list-item></list></p>
      <p id="d2e1430"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1437">Estimated parameters for all candidate distributions;</p></list-item><list-item>
      <p id="d2e1441">Diagnostic plots comparing empirical and fitted distributions;</p></list-item><list-item>
      <p id="d2e1445">Summary table containing Relative Mean Absolute Error values (RMAE) estimated on empirical and fitted distributions.</p></list-item></list></p>
      <p id="d2e1449">The resulting object <monospace>(resM1.2)</monospace> is used as input by the SimulatedMultiple_DailyTS() and SimulatedTS() routines.</p></def></def-item><def-item><term><inline-formula><mml:math id="M52" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1464"><italic>M1.3:</italic>   <monospace>ACS_Fitting(data, lags,</monospace> <monospace>seasonality_option = (1,2,3,4,6,12), start_month = 1)</monospace></p>
      <p id="d2e1474"><italic>Goal:</italic> Estimate the autocorrelation structure of rainfall occurrence and intensity processes.</p>
      <p id="d2e1479"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1486"><monospace>data</monospace>: observed rainfall time series;</p></list-item><list-item>
      <p id="d2e1492"><monospace>lags</monospace>: maximum lag considered in the autocorrelation analysis;</p></list-item><list-item>
      <p id="d2e1498"><monospace>seasonality_option</monospace>: seasonal grouping window (same of M1.2);</p></list-item><list-item>
      <p id="d2e1504"><monospace>start_month</monospace>: starting month of the seasonal partition.</p></list-item></list></p>
      <p id="d2e1509"><italic>Operations:</italic> For each seasonal group and both the binary occurrence process <inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and the continuous intensity processes <inline-formula><mml:math id="M54" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, the routine: <list list-type="custom"><list-item><label>1.</label>
      <p id="d2e1544">computes empirical Spearman autocorrelations;</p></list-item><list-item><label>2.</label>
      <p id="d2e1548">fits candidate parametric ACSs (Pareto II, Weibull, Burr XII);</p></list-item><list-item><label>3.</label>
      <p id="d2e1552">estimates model parameters by minimizing the Mean Absolute Error (MAE) between empirical and theoretical ACS values.</p></list-item></list></p>
      <p id="d2e1555">The ACS fitting procedure is independent of the marginal distribution selected in Routine M1.2, since it is performed directly on the empirical ACS. Users may subsequently choose whether to use the fitted parametric ACS or the empirical ACS directly during rainfall simulation.</p>
      <p id="d2e1559"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1566">Estimated ACS parameters;</p></list-item><list-item>
      <p id="d2e1570">Diagnostic plots comparing empirical and fitted ACS for each season and process.</p></list-item></list></p>
      <p id="d2e1573">The resulting object <monospace>(resM1.3)</monospace> is used as input by the <monospace>SimulatedMultiple_DailyTS()</monospace> and <monospace>SimulatedTS()</monospace> routines.</p></def></def-item><def-item><term><inline-formula><mml:math id="M55" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1594"><italic>M1.4:</italic>   <monospace>SimulatedMultiple_DailyTS(data, n_simulations, resM1.2, resM1.3, p, seasonality_option, start_month, marg_distr = ('gamma', 'gamma3','ggamma', 'burrIII', 'burrXII', 'weibull', 'weibull3'), acf_distr_BT = ('pare-toII', 'weibull', 'burrXII','empirical'), acf_distr_CT = ('paretoII', 'weibull', 'burrXII','empirical'))</monospace></p>
      <p id="d2e1601"><italic>Goal:</italic> Generate an ensemble of synthetic rainfall series for model evaluation and uncertainty assessment.</p>
      <p id="d2e1606"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1613"><monospace>data</monospace>: observed rainfall time series;</p></list-item><list-item>
      <p id="d2e1619"><monospace>n_simulations</monospace>: number of synthetic time series to generate;</p></list-item><list-item>
      <p id="d2e1625"><monospace>resM1.2</monospace>: output from <monospace>MargDistr_Fitting()</monospace> routine, including the estimated parameters of all candidate marginal distributions and the observed dry-day frequency (p0);</p></list-item><list-item>
      <p id="d2e1634"><monospace>resM1.3</monospace>: output from <monospace>ACS_Fitting()</monospace> routine, including the empirical and fitted ACS coefficients;</p></list-item><list-item>
      <p id="d2e1643"><monospace>p</monospace>: autoregressive order;</p></list-item><list-item>
      <p id="d2e1649"><monospace>seasonality_option</monospace>: number of seasonal groups used in the calibration.</p></list-item><list-item>
      <p id="d2e1655"><monospace>start_month</monospace>: starting month of the seasonal partition.</p></list-item><list-item>
      <p id="d2e1661"><monospace>Marg_distr</monospace>: selected marginal distribution for rainfall intensities.</p></list-item><list-item>
      <p id="d2e1667"><monospace>Acf_distr_BT, acf_distr_CT</monospace>: selected ACS for the binary <inline-formula><mml:math id="M56" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and continuous <inline-formula><mml:math id="M57" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> processes.</p></list-item></list></p>
      <p id="d2e1700"><italic>Operations:</italic> The routine generates multiple synthetic daily rainfall series having the same length as the observed dataset</p>
      <p id="d2e1705"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1712">Ensemble of synthetic rainfall time series.</p></list-item></list></p>
      <p id="d2e1716">The resulting object <monospace>(resM1.4)</monospace> is used as input for the <monospace>Diagnostic_plots()</monospace> routine.</p></def></def-item><def-item><term><inline-formula><mml:math id="M58" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1734"><italic>M1.5:</italic>   <monospace>Diagnostic_plots(data, resM1.4)</monospace></p>
      <p id="d2e1741"><italic>Goal:</italic>The routine evaluates the ability of the stochastic model to reproduce the main statistical characteristics of observed rainfall.</p>
      <p id="d2e1746"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1753"><monospace>data</monospace>: observed rainfall time series;</p></list-item><list-item>
      <p id="d2e1759"><monospace>resM1.4</monospace>: ensemble of synthetic rainfall series generated by <monospace>SimulatedMultiple_TS()</monospace> routine.</p></list-item></list></p>
      <p id="d2e1767"><italic>Operations:</italic> The routine compares observed statistics against simulated distributions using four diagnostic groups: <list list-type="custom"><list-item><label>1.</label>
      <p id="d2e1774">autocorrelation structure;</p></list-item><list-item><label>2.</label>
      <p id="d2e1778">seasonal component;</p></list-item><list-item><label>3.</label>
      <p id="d2e1782">ranked annual maxima;</p></list-item><list-item><label>4.</label>
      <p id="d2e1786">summary statistics, including dry-day probability (<inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>), mean wet-day rainfall (mean), standard deviation (sd), extreme percentiles (P95, P99, P99.9).</p></list-item></list></p>
      <p id="d2e1800"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1807">Diagnostic plots comparing observed statistics with the distribution of the simulated ensemble.</p></list-item></list></p></def></def-item><def-item><term><inline-formula><mml:math id="M60" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1819"><italic>M1.6:</italic>   <monospace>SimulatedTS(data, resM1.2, resM1.3, p, n_years, seasonality_option, start_month, marg_distr, acf_distr_BT = ('paretoII', 'weibull', 'burrXII','empirical'), acf_distr_CT = ('paretoII', 'weibull', 'burrXII','empirical'))</monospace></p>
      <p id="d2e1826"><italic>Goal:</italic> Generates a synthetic daily rainfall time series using the selected modelling configuration.</p>
      <p id="d2e1831"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1838"><monospace>data</monospace>: observed rainfall time series;</p></list-item><list-item>
      <p id="d2e1844"><monospace>resM1.2</monospace>: output from <monospace>MargDistr_Fitting()</monospace> routine, including the estimated parameters of all candidate marginal distributions and the observed dry-day frequency (p0);</p></list-item><list-item>
      <p id="d2e1853"><monospace>resM1.3</monospace>: output from <monospace>ACS_Fitting()</monospace> routines, including the empirical and fitted ACS coefficients;</p></list-item><list-item>
      <p id="d2e1862"><monospace>p</monospace>: autoregressive order;</p></list-item><list-item>
      <p id="d2e1868"><monospace>n_years</monospace>: desired simulation length</p></list-item><list-item>
      <p id="d2e1874"><monospace>seasonality_option</monospace>: number of seasonal groups used in the calibration.</p></list-item><list-item>
      <p id="d2e1880"><monospace>start_month</monospace>: starting month of the seasonal partition.</p></list-item><list-item>
      <p id="d2e1886"><monospace>marg_distr</monospace>: selected marginal distribution for rainfall intensities.</p></list-item><list-item>
      <p id="d2e1892"><monospace>acf_distr_BT, acf_distr_CT</monospace>: selected ACS for the binary <inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and continuous <inline-formula><mml:math id="M62" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> processes.</p></list-item></list></p>
      <p id="d2e1925"><italic>Operations:</italic> The routine simulates the wet/dry occurrence process and the wet-day intensity process separately using the calibrated seasonal probabilities, marginal distributions, and autocorrelation structures. The two components are subsequently combined to generate a continuous synthetic daily rainfall series of the specified length.</p>
      <p id="d2e1930"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1937">Synthetic daily rainfall time series with user-defined duration.</p></list-item></list></p></def></def-item></def-list></p>
</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Implementation of the sub-hourly rainfall disaggregation module</title>
      <p id="d2e1949">This module includes three routines designed to guide the user through the complete workflow of rainfall temporal disaggregation, from the estimation of extreme rainfall properties to the generation and validation of high-resolution synthetic rainfall series. The routines allow the user to disaggregate daily rainfall while preserving scale-invariant properties and reproducing the imposed IDF scaling exponent through a stochastic MRC approach.</p>
      <p id="d2e1952">The routines are described below. <def-list><def-item><term><inline-formula><mml:math id="M63" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e1965"><italic>M2.1:</italic>   <monospace>GEV_Fitting(data,</monospace> <monospace>starting_day = '2000-01-01', num_of_days_for_truncation = 183, n_par = 0.3)</monospace></p>
      <p id="d2e1975"><italic>Goal:</italic> Estimate the extreme rainfall statistics and scaling parameters required for MRC calibration.</p>
      <p id="d2e1980"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e1987"><monospace>data</monospace>: observed rainfall time series;</p></list-item><list-item>
      <p id="d2e1993"><monospace>starting_day</monospace>: starting date of the time series used to construct the temporal index;</p></list-item><list-item>
      <p id="d2e1999"><monospace>num_of_days_for_truncation</monospace>: threshold used to exclude incomplete initial or final years;</p></list-item><list-item>
      <p id="d2e2005"><monospace>n_par</monospace>: externally imposed scaling exponent representing the slope of the IDF/DDF relationships. This parameter can be estimated from local sub-daily observations or obtained from independent regional IDF/DDF information. In the present case study, <inline-formula><mml:math id="M64" display="inline"><mml:mi mathvariant="normal">n</mml:mi></mml:math></inline-formula> was estimated from the observed sub-daily record and therefore represents a calibration input rather than a model output.</p></list-item></list></p>
      <p id="d2e2017"><italic>Operations:</italic> The routine: <list list-type="custom"><list-item><label>1.</label>
      <p id="d2e2024">extracts annual maximum rainfall time series;</p></list-item><list-item><label>2.</label>
      <p id="d2e2028">transforms annual maxima into scaling-based <inline-formula><mml:math id="M65" display="inline"><mml:mi mathvariant="normal">a</mml:mi></mml:math></inline-formula>-IDF coefficients using the imposed scaling exponent <inline-formula><mml:math id="M66" display="inline"><mml:mi mathvariant="normal">n</mml:mi></mml:math></inline-formula>;</p></list-item><list-item><label>3.</label>
      <p id="d2e2046">fits a GEV distribution to the <inline-formula><mml:math id="M67" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients using three estimation methods: Maximum Likelihood (<italic>mle</italic>), Probability Weighted Moments (<italic>pwm</italic>), L-moments (<italic>L-mom</italic>);</p></list-item><list-item><label>4.</label>
      <p id="d2e2066">estimates mean annual rainfall intensity;</p></list-item><list-item><label>5.</label>
      <p id="d2e2070">computes <inline-formula><mml:math id="M68" display="inline"><mml:mi mathvariant="normal">a</mml:mi></mml:math></inline-formula>-coefficients associated with return periods ranging from 2 to 999 years using both: parametric approaches (GEV-based) and empirical approaches. These <inline-formula><mml:math id="M69" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients are subsequently used to constrain the matching between the target and simulated IDF curves during the MRC calibration procedure. The interval 2–999 years represents the admissible range implemented in the software, where 999 years is simply adopted as the maximum allowable return period to provide flexibility to the user. In practical applications, however, the selected return periods should be commensurate with the length of the available annual maximum series, since estimates associated with increasingly large return periods become progressively more uncertain.</p></list-item></list></p>
      <p id="d2e2087"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e2094">GEV parameter estimates for the three fitting methods;</p></list-item><list-item>
      <p id="d2e2098"><inline-formula><mml:math id="M70" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients associated with different return periods;</p></list-item><list-item>
      <p id="d2e2108">Annual maxima time series;</p></list-item><list-item>
      <p id="d2e2112">Diagnostic plots including: (1) daily rainfall during the first year, (2) annual maximum daily rainfall over the observation period, (3) Gumbel plots comparing empirical and fitted distributions.</p></list-item></list></p>
      <p id="d2e2116">The resulting object (<monospace>resM2.1</monospace>) is used as input for the <monospace>MRC_calibration()</monospace> routine.</p></def></def-item><def-item><term><inline-formula><mml:math id="M71" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e2134"><italic>M2.2:</italic>   <monospace>MRC_calibration(resM2.1,</monospace> <monospace>lower_bounds = c(Cb_Lb, Cln_Lb, D_Lb), upper_bounds = c(Cb_Ub, Cln_Ub, D_Ub), Return_periods = c(2, 4, 6, 8, 10), n_par, method = c('mle', 'pwm', 'L-mom', 'empirical'), Num_Iterations, a_Rp = NULL)</monospace></p>
      <p id="d2e2144"><italic>Goal:</italic> Calibrate the MRC model parameters required to reproduce the imposed rainfall scaling properties and IDF relationships.</p>
      <p id="d2e2149"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e2156"><monospace>resM2.1</monospace>: output from <monospace>GEV_Fitting()</monospace> routine, including the scaling-based <inline-formula><mml:math id="M72" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients, the estimated mean annual rainfall intensity, and the observed rainfall time series.</p></list-item><list-item>
      <p id="d2e2172"><monospace>lower_bounds, upper_bounds</monospace>: admissible parameter ranges for calibration. By default, the routine adopts the following literature-based bounds: <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">0.7</mml:mn><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0.01</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>D</mml:mi><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">24</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2400</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.</p></list-item><list-item>
      <p id="d2e2238"><monospace>Return_periods</monospace>: return periods used to constrain the calibration through the matching of target and simulated IDF curves.</p></list-item><list-item>
      <p id="d2e2244"><monospace>n_par</monospace>: externally imposed scaling exponent representing the slope of the IDF/DDF relationships. This parameter can be estimated from local sub-daily observations or obtained from independent regional IDF/DDF information. In the present case study, <inline-formula><mml:math id="M74" display="inline"><mml:mi mathvariant="normal">n</mml:mi></mml:math></inline-formula> was estimated from the observed sub-daily record and therefore represents a calibration input rather than a model output.</p></list-item><list-item>
      <p id="d2e2257"><monospace>method</monospace>: method used to estimate the <inline-formula><mml:math id="M75" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients (<italic>mle</italic>, <italic>pwm</italic>, <italic>L-mom</italic>, or <italic>empirical</italic>).</p></list-item><list-item>
      <p id="d2e2282"><monospace>Num_Iterations</monospace>: maximum number of optimization iterations;</p></list-item><list-item>
      <p id="d2e2288"><monospace>a_Rp (optional)</monospace>: user-defined a-coefficients. When provided, these coefficients replace those estimated by <monospace>GEV_Fitting()</monospace>, allowing users to directly incorporate externally derived IDF information (e.g., regional IDF curves, published studies, or expert knowledge). This option extends the applicability of Virtual Rain to ungauged or data-sparse regions and supports scenario analyses based on modified rainfall scaling characteristics, such as those associated with climate change.</p></list-item></list></p>
      <p id="d2e2296"><italic>Operations:</italic> The routine estimates the MRC parameters (<inline-formula><mml:math id="M76" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M78" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>) through numerical optimization. The optimal parameter set is defined by minimizing discrepancies between theoretical and empirical IDF curves associated with the imposed scaling exponent <inline-formula><mml:math id="M79" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>and the selected <inline-formula><mml:math id="M80" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients for the chosen return periods. By default, the target <inline-formula><mml:math id="M81" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients are obtained from <monospace>GEV_Fitting()</monospace>, although users may alternatively provide externally derived coefficients through the optional <monospace>a_Rp</monospace> argument. The calibration procedure, including the definition of the objective function, the weighting strategy adopted for the IDF curves, and the numerical optimization approach, is described in detail in Sect. 2.3 of Cappelli et al. (2025b). Because the <inline-formula><mml:math id="M82" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients are estimated by fitting a GEV distribution to the available annual maxima, the associated uncertainty depends on both the record length and the extrapolation to the selected return periods.</p>
      <p id="d2e2365"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e2372">Calibrated MRC parameters (<inline-formula><mml:math id="M83" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M84" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M85" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>);</p></list-item><list-item>
      <p id="d2e2405">Objective function value at convergence;</p></list-item><list-item>
      <p id="d2e2409">Diagnostic plots comparing empirical and theoretical IDF curves.</p></list-item></list></p>
      <p id="d2e2413">The resulting object (<monospace>resM2.2</monospace>) is used as input for the <monospace>Ts_Disaggregation()</monospace> routine.</p></def></def-item><def-item><term><inline-formula><mml:math id="M86" display="inline"><mml:mo>⋆</mml:mo></mml:math></inline-formula></term><def>
      <p id="d2e2431"><italic>M2.3:</italic>   <monospace>Ts_Disaggregation(resM2.2,</monospace> <monospace>ending_time_resolution = 15, N_simulations = NULL, preserve_rainfall_volume = c('Yes', 'No'), seed = c('Yes', 'No'))</monospace></p>
      <p id="d2e2441"><italic>Goal:</italic> Generate high-resolution rainfall series through temporal disaggregation of daily rainfall using the calibrated MRC model.</p>
      <p id="d2e2446"><italic>Inputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e2453"><monospace>resM2.2</monospace>: output from <monospace>MRC_calibration()</monospace> routine, including the calibrated values of the MRC parameters (<inline-formula><mml:math id="M87" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M88" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M89" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>), which are used to perform the disaggregation;</p></list-item><list-item>
      <p id="d2e2494"><monospace>ending_time_resolution</monospace>: target temporal resolution (1–60 <inline-formula><mml:math id="M90" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula>).</p></list-item><list-item>
      <p id="d2e2508"><monospace>N_simulations</monospace>: number of disaggregated time series to generate.</p></list-item><list-item>
      <p id="d2e2514"><monospace>preserve_rainfall_volume</monospace>: option to preserve daily rainfall totals. Preserving daily totals is the default and recommended setting for standard rainfall disaggregation, as it ensures consistency between daily and sub-daily rainfall amounts.</p></list-item><list-item>
      <p id="d2e2520">seed: option to initialize the random number generator for reproducibility.</p></list-item></list></p>
      <p id="d2e2523"><italic>Operations:</italic> The routine applies the calibrated MRC model to disaggregate daily rainfall into sub-daily intervals. The cascade is applied only to wet days, recursively redistributing daily rainfall volumes while preserving the prescribed scaling properties and, optionally, the original daily totals. One or more stochastic realizations can be generated at the selected temporal resolution.</p>
      <p id="d2e2528"><italic>Outputs:</italic>
<list list-type="bullet"><list-item>
      <p id="d2e2535">Disaggregated rainfall time series;</p></list-item><list-item>
      <p id="d2e2539">Plots of the observed daily time series and the corresponding disaggregated one for the first simulated year;</p></list-item><list-item>
      <p id="d2e2543">Summary tables reporting key rainfall statistics, ACS coefficients, annual maxima over multiple durations, and IDF-related indicators for each simulation.</p></list-item></list></p>
      <p id="d2e2547">The resulting outputs allow users to visually inspect the generated series and evaluate whether the simulated scaling and IDF characteristics are consistent with the calibration targets, namely the prescribed scaling exponent <inline-formula><mml:math id="M91" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>and the prescribed <inline-formula><mml:math id="M92" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients for the considered return periods.</p></def></def-item></def-list></p>
      <p id="d2e2564">This module includes six routines designed to guide the user through the complete workflow of stochastic daily rainfall simulation, from exploratory analysis of the observed series to the generation and validation of synthetic rainfall data. The routines allow the user to reproduce key statistical rainfall properties, including marginal distributions, intermittency, seasonality, and temporal dependence, while providing graphical and quantitative tools to support model selection and validation. The routines are described below.</p>
</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>Interactive digital platform</title>
      <p id="d2e2575">The routines described in the previous sections are mainly intended for advanced users with programming experience in Python and R. To make the proposed toolkit accessible to a wider scientific and technical audience, an interactive web-based platform, <italic>Virtual Rain</italic> (<uri>https://www.hydrolab.unitus.it/virtualrain</uri>, last access: 29 September 2026), has been designed and developed. Its main interfaces are reported in the Appendix.</p>
      <p id="d2e2584">The web platform follows the same logical structure as the routines presented above, guiding users' step by step through the modelling workflow, from input data processing to model calibration, simulation, and diagnostic evaluation. The main model parameters introduced in the methodological framework can be modified directly by the user, providing a flexible environment for both operational applications and methodological exploration.</p>
      <p id="d2e2587">Importantly, the standalone Python and R routines and the Virtual Rain web platform implement the same methodological formulations, computational workflow, and model parameterization. Because both daily rainfall generation and sub-daily disaggregation involve stochastic simulation, individual synthetic realizations are not expected to be numerically identical across the different software environments, even when the same input data and model parameters are used. Cross-interface consistency should therefore be interpreted in terms of equivalence of the implemented algorithms and parameterization and, for stochastic outputs, reproduction of the same target statistical properties rather than point-by-point equality of the generated series. These properties include rainfall intermittency, marginal distributions, temporal dependence, preservation of daily rainfall totals during disaggregation, and the statistical characteristics of sub-daily rainfall prescribed by the MRC model. For deterministic components of the workflow, consistency can instead be assessed through direct comparison of the corresponding parameters and intermediate computational outputs.</p>
      <p id="d2e2590">By combining computational routines with an intuitive graphical interface, Virtual Rain reduces the technical barrier associated with coding while preserving the flexibility of the proposed modelling framework. The web platform therefore provides an alternative interface to the same computational framework rather than a separate modelling implementation. It supports not only practical model implementation, but also a clearer understanding of the underlying stochastic processes, parameter choices, and diagnostic outputs. Overall, Virtual Rain represents a comprehensive tool that bridges methodological flexibility and practical usability, making the proposed framework suitable for research applications, advanced professional analyses, and educational purposes.</p>
</sec>
</sec>
<sec id="Ch1.S4">
  <label>4</label><title>Case study: Arno rain</title>
      <p id="d2e2603">To illustrate the effectiveness and flexibility of the proposed framework, we present a case study based on a daily rainfall time series (Station code TOS01004779) selected from a dataset of more than 70 rain gauges distributed across the Arno River Basin. The Arno is one of the longest rivers in Italy, and it is the main river system in Tuscany, Central Italy. The dataset spans the period from 1 January 2001 to 31 December 2020 (Cappelli et al. 2026b). The dataset comprises 70 rain gauges located across the Arno River Basin, all providing continuous and contemporaneous 15 <inline-formula><mml:math id="M93" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> rainfall observations over the common 20-year period (2001–2020) and satisfying the quality-control criteria adopted in Cappelli et al. (2025b, 2026b). Consequently, the 20-year period represents the longest common observation window available across the entire monitoring network. Further details on the dataset preparation and quality-control procedures are provided in Cappelli et al. (2025b, 2026b).</p>

      <fig id="F4" specific-use="star"><label>Figure 4</label><caption><p id="d2e2616">Overview of the input observed daily time series: <bold>(a)</bold> daily rainfall for the first year, <bold>(b)</bold> annual maximum daily rainfall, and <bold>(c)</bold> monthly mean seasonal component.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f04.png"/>

      </fig>

      <p id="d2e2634">The 2001–2020 observational record is used both for model calibration and for the subsequent diagnostic comparison with the simulated series. Accordingly, the comparison between observed and simulated statistics should be interpreted as a calibration diagnostic aimed at verifying the ability of the calibrated stochastic model to reproduce the target statistical characteristics and at demonstrating the correct implementation of the Virtual Rain workflow, rather than as an assessment of predictive performance on an independent validation dataset.</p>
      <p id="d2e2639">The proposed modelling framework and its underlying procedures have already been extensively tested in previous studies on several rainfall datasets and climatic conditions, yielding satisfactory results in terms of reproducing rainfall intermittency, temporal dependence, scaling properties, and extreme-event statistics (Cappelli et al., 2024, 2025b, 2026a, c). Accordingly, the objective of the present case study is not to provide a new methodological validation of CoSMoS-2s or the MRC model, but to demonstrate the practical implementation of the complete Virtual Rain workflow and verify to assess whether the integrated software implementation reproduces the statistical behaviour expected from the underlying methodologies.</p>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Results of the daily rainfall simulation module</title>
      <p id="d2e2649">As described in Sect. 3.1, The <monospace>plot_rainfall_timeseries()</monospace> routine of the Daily Rainfall Simulation Module provides an overview of the observed daily time series (Fig. 4).</p>
      <p id="d2e2655">It produces three plots: daily rainfall for the first year, annual maximum rainfall over the full observation period, and monthly mean seasonal component. The seasonal component (Fig. 4c) is intended to provide users with a visual summary of the annual rainfall cycle to support the selection of an appropriate seasonal partition. It assists users in choosing both the number of seasonal groups and the starting month according to the characteristics of the rainfall regime. In the present case study, three seasonal groups starting in April were adopted as a compromise between representing the main seasonal variability and ensuring a sufficient sample size for robust estimation of the marginal distributions and autocorrelation structure. The seasonal grouping is therefore user-defined and is not selected automatically by the software.</p>

      <fig id="F5" specific-use="star"><label>Figure 5</label><caption><p id="d2e2660">Calibration results of the seven candidate marginal distributions fitted on non-zero rainfall values.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f05.png"/>

        </fig>

      <fig id="F6" specific-use="star"><label>Figure 6</label><caption><p id="d2e2672">Comparison between empirical and fitted parametric ACSs for the <inline-formula><mml:math id="M94" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> processes across the seasonal groups. The fitted curves are obtained by minimizing the Mean Absolute Error between empirical and theoretical Spearman ACSs.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f06.png"/>

        </fig>

<table-wrap id="T3" specific-use="star"><label>Table 3</label><caption><p id="d2e2712">Relative Mean Absolute Error (RMAE) associated with the candidate marginal distributions for each seasonal group. Lower RMAE values indicate better agreement between empirical and theoretical exceedance probabilities, particularly for the upper tail of the rainfall distribution (values above the 50th percentile).</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="8">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="center"/>
     <oasis:colspec colnum="3" colname="col3" align="center"/>
     <oasis:colspec colnum="4" colname="col4" align="center"/>
     <oasis:colspec colnum="5" colname="col5" align="center"/>
     <oasis:colspec colnum="6" colname="col6" align="center"/>
     <oasis:colspec colnum="7" colname="col7" align="center"/>
     <oasis:colspec colnum="8" colname="col8" align="center"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Season</oasis:entry>
         <oasis:entry colname="col2">Gamma</oasis:entry>
         <oasis:entry colname="col3">Gamma3</oasis:entry>
         <oasis:entry colname="col4">GGamma</oasis:entry>
         <oasis:entry colname="col5">Weibull</oasis:entry>
         <oasis:entry colname="col6">Weibull3</oasis:entry>
         <oasis:entry colname="col7">BurrIII</oasis:entry>
         <oasis:entry colname="col8">BurrXII</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Apr–May–Jun–Jul</oasis:entry>
         <oasis:entry colname="col2">0.052</oasis:entry>
         <oasis:entry colname="col3">0.053</oasis:entry>
         <oasis:entry colname="col4">0.081</oasis:entry>
         <oasis:entry colname="col5">0.105</oasis:entry>
         <oasis:entry colname="col6">0.160</oasis:entry>
         <oasis:entry colname="col7">0.251</oasis:entry>
         <oasis:entry colname="col8">0.150</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Aug–Sep–Oct–Nov</oasis:entry>
         <oasis:entry colname="col2">0.046</oasis:entry>
         <oasis:entry colname="col3">0.048</oasis:entry>
         <oasis:entry colname="col4">0.191</oasis:entry>
         <oasis:entry colname="col5">0.143</oasis:entry>
         <oasis:entry colname="col6">0.256</oasis:entry>
         <oasis:entry colname="col7">0.356</oasis:entry>
         <oasis:entry colname="col8">0.252</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Dec–Jan–Feb–Mar</oasis:entry>
         <oasis:entry colname="col2">0.059</oasis:entry>
         <oasis:entry colname="col3">0.167</oasis:entry>
         <oasis:entry colname="col4">0.353</oasis:entry>
         <oasis:entry colname="col5">0.148</oasis:entry>
         <oasis:entry colname="col6">0.347</oasis:entry>
         <oasis:entry colname="col7">0.087</oasis:entry>
         <oasis:entry colname="col8">0.242</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d2e2855">Non-zero rainfall values are modeled using seven candidate distributions (Gamma, three-parameter Gamma, Generalized Gamma, Weibull, three-parameter Weibull, Burr III, and Burr XII). The parameters of each candidate distribution are estimated by minimizing the distance between empirical and theoretical exceedance probabilities using the Nelder–Mead optimization algorithm. Model performance is evaluated using the RMAE computed over the upper tail (values above the 50th percentile), as lower values are generally well reproduced by all candidate distributions. The objective of the procedure is to identify a single marginal distribution family to be adopted consistently across all seasons, while estimating its parameters independently for each season. When the same distribution provides the best fit for every season, it is selected directly. Otherwise, the routine returns the estimated parameters for all candidate distributions together with a summary table of seasonal RMAE values, allowing the user to select the most appropriate common marginal distribution based on its overall performance across seasons. The calibration results obtained using <monospace>MargDistr_Fitting()</monospace> routine (Fig. 5 and Table 3) indicate that the Gamma distribution provides the best overall performance.</p>
      <p id="d2e2861">The autocorrelation structure is then modeled using the <monospace>ACS_Fitting()</monospace> routine, which estimates the Spearman ACS accounting for seasonality and distinguishing between <inline-formula><mml:math id="M96" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> processes.</p>
      <p id="d2e2895">After selecting the maximum lag, parametric ACS models (Pareto II, Weibull, and Burr XII) are fitted separately for the two processes <inline-formula><mml:math id="M98" display="inline"><mml:mrow><mml:mi>B</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M99" display="inline"><mml:mrow><mml:mi>X</mml:mi><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> by minimizing the MAE between empirical and parametric ACSs. Figure 6 compares the empirical and fitted ACSs, providing a visual assessment of the adequacy of the candidate models. For the binary process, both the Weibull and Pareto II ACS provide a satisfactory representation of the empirical Spearman ACS. Conversely, the Burr XII model exhibits a less accurate fit for the third seasonal group because the empirical ACS decays more slowly than can be reproduced by the fitted Burr XII function, highlighting the limitations of this parametric form for representing the observed persistence pattern. For the continuous process, all three candidate ACSs accurately reproduce the empirical Spearman ACS. In this case study application <inline-formula><mml:math id="M100" display="inline"><mml:mrow><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:math></inline-formula> and the empirical ACS are adopted.</p>

      <fig id="F7" specific-use="star"><label>Figure 7</label><caption><p id="d2e2941">Comparison between observed (black dots) and 50 simulated (gray violin plots) summary statistics of non-zero rainfall: <bold>(a)</bold> probability of zero, <bold>(b)</bold> mean, <bold>(c)</bold> standard deviation, <bold>(d)</bold> 95th percentile, <bold>(e)</bold> 99th percentile, and <bold>(f)</bold> 99.9th percentile.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f07.png"/>

        </fig>

      <fig id="F8"><label>Figure 8</label><caption><p id="d2e2971">Comparison of: <bold>(a)</bold> seasonal components between observed (black dots) and 50 simulated (gray violin plots) series (upper panel); <bold>(b)</bold> Spearman autocorrelation functions between observed (black line) and 50 simulated series (gray lines) (bottom panel).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f08.png"/>

        </fig>

      <p id="d2e2986">Based on the results of the previous calibration steps, the selected marginal distributions and ACS models are subsequently used within the <monospace>SimulatedMultiple_DailyTS()</monospace> routine to generate an ensemble of 50 synthetic daily rainfall time series having the same length as the observed record. The use of multiple realizations is an integral part of the Module 1 workflow because the user must evaluate a model configuration resulting from several choices, including the seasonal grouping, marginal distribution, dry-day probability, ACS representation, and AR order. The ensemble therefore provides a robust basis for assessing the stability of the selected CoSMoS-2s configuration and the variability associated with the stochastic simulation process. The resulting ensemble is then provided as input to the <monospace>Diagnostic_plots()</monospace> routine, which compares observed and simulated rainfall characteristics, including autocorrelation structure, seasonality, dry-day probability (p0), mean and standard deviation of wet-day rainfall, and extreme percentiles. These comparisons are intended to verify that the implemented stochastic simulation workflow correctly reproduces the statistical characteristics prescribed during calibration. The results (Fig. 7) show that the model successfully reproduces the main statistical properties of the observed data, including dry frequency and central distribution characteristics, with a slight overestimation in the upper tail. A slight overestimation is observed in the upper tail, which reflects the combined effects of the stochastic nature of the rainfall generator and the limited amount of information available for calibrating the marginal distribution, rather than a systematic model bias. In the present case study, the daily rainfall record spans approximately 20 years and contains nearly 70 % dry days, resulting in a relatively small sample of non-zero rainfall events for estimating the upper-tail behaviour. Because the synthetic daily rainfall series generated by Module 1 is subsequently used as input to Module 2, uncertainty in the representation of the daily upper tail may propagate into the estimation of the <inline-formula><mml:math id="M101" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients and, consequently, into the calibration and outputs of the MRC disaggregation model. Nevertheless, the objective of the present case study is to demonstrate the complete Virtual Rain workflow rather than to isolate the performance of the MRC methodology. Module 2 can also be applied directly to observed daily rainfall series whenever reliable daily observations are available, as described in the Introduction. This application, together with the corresponding assessment of extreme-value reproduction, is presented in Cappelli et al. (2026b). Figure 8 compares the seasonal cycle and the Spearman ACS of the observed and simulated rainfall series. Overall, the model satisfactorily reproduces both the seasonal variability and the temporal dependence across lags, although minor discrepancies are observed for some individual months. These discrepancies are an expected consequence of the adopted user-defined seasonal partition, in which three consecutive months are grouped to increase the amount of data available for estimating the marginal distributions and autocorrelation structure. This choice represents a deliberate trade-off between faithfully reproducing month-to-month variability and obtaining robust parameter estimates from relatively short rainfall records. Although a finer seasonal parameterization (e.g., 12 monthly groups) could improve the representation of the seasonal cycle, it would substantially increase the number of parameters to estimate, reduce the sample size available for each calibration period, and increase the computational cost. In the present case study, the empirical ACS was selected during the <monospace>ACS_fitting()</monospace> routine because it provided the most faithful representation of the observed autocorrelation structure. Consequently, the agreement observed over the first <inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:math></inline-formula> lags is expected, as these lags directly reflect the empirical dependence structure adopted during model configuration, and should therefore not be interpreted as an independent validation of the model's ability to reproduce temporal dependence. Instead, the behaviour at longer lags provides a more informative diagnostic of the implemented stochastic model, demonstrating its ability to propagate temporal dependence beyond the range explicitly used during calibration. The observed discrepancies are an expected consequence of the adopted seasonal parameterization, in which three consecutive months are grouped to increase the amount of data available for estimating the marginal distributions and autocorrelation structure. This configuration represents a deliberate trade-off between faithfully reproducing month-to-month variability and obtaining robust parameter estimates from relatively short rainfall records. Accordingly, a modest reduction in the accuracy of the monthly seasonal cycle is accepted in exchange for improved robustness and stability of the statistical model, ultimately enhancing the reliability of the simulated daily rainfall series.</p>
      <p id="d2e3017">Figure 9 presents the comparison of ranked annual maxima at different durations. The observed values generally fall within the variability range of the simulated extremes, indicating that the implemented workflow reproduces the prescribed multi-day extreme-rainfall behaviour.</p>

      <fig id="F9"><label>Figure 9</label><caption><p id="d2e3022">Comparison of <bold>(a)</bold> highest, <bold>(b)</bold> median, and <bold>(c)</bold> lowest ranked annual maxima between observed (black dots) and 50 simulated series (gray violin plots).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f09.png"/>

        </fig>

      <p id="d2e3041">Overall, Figs. 7–9 provide a verification of the software implementation by demonstrating that the calibrated stochastic simulation workflow reproduces the target statistical characteristics of the observed rainfall process. The methodological validation of the underlying CoSMoS-2s framework has already been presented in Papalexiou (2022), Cappelli et al. (2026a), Cappelli and Grimaldi (2026).</p>
      <p id="d2e3044">If the model performance is deemed satisfactory, the user can proceed with the final simulation using the SimulatedTS() routine, specifying the desired length. The generated daily rainfall time series can then be downloaded or directly used as input for Module 2 for temporal disaggregation.</p>
</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Results of the sub-hourly rainfall disaggregation module</title>
      <p id="d2e3055">In contrast to Module 1, the purpose of Module 2 in the present manuscript is not to compare alternative model configurations or to quantify the statistical variability of the MRC methodology through a new ensemble experiment. Once the daily rainfall series, the imposed scaling exponent, and the calibrated MRC parameter set are available, Module 2 applies the established stochastic disaggregation procedure. The case study therefore illustrates a single application of the calibrated MRC workflow, whereas extensive ensemble-based analyses and methodological validation of the MRC model have already been presented in Cappelli et al. (2025a, b).</p>
      <p id="d2e3058">Besides the daily rainfall series, Module 2 requires the scaling exponent <inline-formula><mml:math id="M103" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, representing the slope of the IDF relationship. This parameter is an imposed input of the <monospace>GEV_Fitting()</monospace> routine and can either be estimated from available sub-daily rainfall observations or obtained from external sources, such as regional IDF relationships. In the present case study, the imposed value <inline-formula><mml:math id="M104" display="inline"><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.251</mml:mn></mml:mrow></mml:math></inline-formula> was estimated from the observed 15 <inline-formula><mml:math id="M105" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> rainfall time series. Specifically, precipitation was aggregated at durations of 1, 3, 6, 12, and 24 <inline-formula><mml:math id="M106" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:math></inline-formula>, annual maximum rainfall depths were extracted for each duration, and the resulting DDF relationships were linearized in logarithmic coordinates. The common slope was then estimated by least squares while imposing parallelism among the linearized curves. The resulting value <inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.251</mml:mn></mml:mrow></mml:math></inline-formula> was used, together with the synthetic daily rainfall series generated by Module 1, to calibrate the MRC disaggregation model. Consequently, <inline-formula><mml:math id="M108" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> should be regarded as an imposed calibration input rather than as a model output.</p>

      <fig id="F10" specific-use="star"><label>Figure 10</label><caption><p id="d2e3121"><bold>(a)</bold> First year of the simulated daily rainfall time series; <bold>(b)</bold> annual maximum of the simulated daily time series.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f10.png"/>

        </fig>

      <fig id="F11" specific-use="star"><label>Figure 11</label><caption><p id="d2e3138">Gumbel plot comparing empirical and theoretical <inline-formula><mml:math id="M109" display="inline"><mml:mi mathvariant="bold">a</mml:mi></mml:math></inline-formula>-coefficients obtained from the fitted GEV distributions using Maximum Likelihood (MLE), Probability Weighted Moments (PWM), and L-moments (L-mom).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f11.png"/>

        </fig>

      <fig id="F12" specific-use="star"><label>Figure 12</label><caption><p id="d2e3156">MRC model calibration: <bold>(a)</bold> comparison between empirical (red line) and theoretical (black line) IDF curves; <bold>(b)</bold> estimated calibration inputs and calibrated model parameters.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f12.png"/>

        </fig>

      <p id="d2e3171">Figures 10 and 11 present the outputs of <monospace>GEV_Fitting()</monospace> routine. Figure 10 provides a general overview of the rainfall dataset, including first year of the simulated daily rainfall series (Fig. 10a) and the annual maxima extracted from the entire simulated time series (Fig. 10b). These annual maxima, together with the imposed scaling exponent <inline-formula><mml:math id="M110" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, are subsequently used to estimate the scaling-based <inline-formula><mml:math id="M111" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients required for the calibration of the MRC model. Although the routine does not impose a minimum number of annual maxima, longer records generally provide more robust GEV parameter estimates and, consequently, more reliable <inline-formula><mml:math id="M112" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients, particularly for high return periods. Figure 11 shows the Gumbel plot that compares the performance of the alternative GEV fitting methods. The plot supports the selection of the most appropriate method for estimating the <inline-formula><mml:math id="M113" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients used in the MRC calibration. Both <italic>mle</italic> and <italic>pwm</italic> provide a good fit to the empirical data.</p>
      <p id="d2e3212">The <monospace>MRC_calibration()</monospace> routine is then used to calibrate the MRC model. In this study, return periods of 10, 20, 50, 100, and 200 years are considered, and the <italic>mle</italic> method is selected. Figure 12 presents the calibration results. Figure 12a compares the empirical and theoretical IDF curves obtained after calibration, while Fig. 12b reports the corresponding parameter estimates, including the GEV parameters, the calibrated MRC parameters (<inline-formula><mml:math id="M114" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M115" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M116" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>), the mean annual rainfall intensity, and the value of the objective function (8.19 <inline-formula><mml:math id="M117" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">mm</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">h</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> for the present case study). The close agreement between the empirical and theoretical IDF curves indicates that the calibrated parameter set reproduces the target IDF relationships prescribed during calibration over the selected range of return periods. The reported objective-function value should be interpreted solely as a case-specific calibration diagnostic and not as a universal indicator of calibration quality. Furthermore, the reliability of the estimated IDF relationships depends on the uncertainty associated with fitting the GEV distribution to the available annual-maximum series, particularly for long return periods. A detailed description of the calibration procedure and objective function is provided in Sect. 2.3 of Cappelli et al. (2025b).</p>

      <fig id="F13" specific-use="star"><label>Figure 13</label><caption><p id="d2e3273">Disaggregated rainfall time series at 15 <inline-formula><mml:math id="M118" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> resolution (first year).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f13.png"/>

        </fig>

      <p id="d2e3291">Once the calibration parameters have been estimated, they are used as input to the <monospace>Ts_Disaggregation()</monospace> routine, which implements the MRC disaggregation procedure. For illustrative purposes, the simulated daily rainfall time series is disaggregated to a 15 <inline-formula><mml:math id="M119" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> temporal resolution, generating a single stochastic realization. Figure 13 shows the resulting 15 <inline-formula><mml:math id="M120" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> rainfall series for the first simulated year.</p>
      <p id="d2e3313">Finally, a comprehensive summary of the disaggregation results is provided in Table 4. The observed 15 <inline-formula><mml:math id="M121" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> rainfall series serves two distinct purposes in the present case study: (i) it is used to estimate the target scaling exponent <inline-formula><mml:math id="M122" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, which is subsequently imposed as an input to the MRC calibration procedure, and (ii) it provides the benchmark for the diagnostic comparison with the disaggregated rainfall series. The MRC parameters (<inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M125" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula>) is performed independently through the MRC calibration procedure using the synthetic daily rainfall series generated by Module 1 together with the imposed value of <inline-formula><mml:math id="M126" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>. Therefore, the present application represents the data-rich pathway available in Virtual Rain, in which local sub-daily observations are available to estimate <inline-formula><mml:math id="M127" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>. When such observations are unavailable, the software also allows <inline-formula><mml:math id="M128" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> to be supplied from independent external information, such as regional IDF/DDF relationships; however, this data-sparse pathway is a software capability and is not explicitly evaluated in the present case study. The subsequent comparison between the observed and disaggregated rainfall series is intended as a diagnostic assessment of the implemented workflow rather than as an independent validation of the MRC methodology.</p>

<table-wrap id="T4"><label>Table 4</label><caption><p id="d2e3385">Diagnostic comparison of summary statistics, ACS coefficients, accumulated maxima, and IDF parameters for the observed 20-year rainfall series at 15 <inline-formula><mml:math id="M129" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> resolution and a 1000-year synthetic rainfall realization generated by the MRC disaggregation model. Owing to the different record lengths, sample-dependent extreme statistics should not be interpreted as directly comparable estimates.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Statistic</oasis:entry>
         <oasis:entry colname="col2">Observed Ts</oasis:entry>
         <oasis:entry colname="col3">Disaggr. Ts</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">General statistics</oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M130" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.251</oasis:entry>
         <oasis:entry colname="col3">0.251</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M131" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.955</oasis:entry>
         <oasis:entry colname="col3">0.956</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Mean</oasis:entry>
         <oasis:entry colname="col2">0.03</oasis:entry>
         <oasis:entry colname="col3">0.03</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Stand. dev.</oasis:entry>
         <oasis:entry colname="col2">0.26</oasis:entry>
         <oasis:entry colname="col3">0.283</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Extreme values</oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">P99</oasis:entry>
         <oasis:entry colname="col2">0.8</oasis:entry>
         <oasis:entry colname="col3">0.8</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">P99.9</oasis:entry>
         <oasis:entry colname="col2">3</oasis:entry>
         <oasis:entry colname="col3">3.7</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">P99.99</oasis:entry>
         <oasis:entry colname="col2">9.6</oasis:entry>
         <oasis:entry colname="col3">9.5</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Max</oasis:entry>
         <oasis:entry colname="col2">29</oasis:entry>
         <oasis:entry colname="col3">120.6</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Autocorrelation</oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M132" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula>(1)</oasis:entry>
         <oasis:entry colname="col2">0.527</oasis:entry>
         <oasis:entry colname="col3">0.505</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M133" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula>(2)</oasis:entry>
         <oasis:entry colname="col2">0.323</oasis:entry>
         <oasis:entry colname="col3">0.294</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"><inline-formula><mml:math id="M134" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula>(3)</oasis:entry>
         <oasis:entry colname="col2">0.258</oasis:entry>
         <oasis:entry colname="col3">0.210</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Accumulated maxima</oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Max<sub>30 min</sub></oasis:entry>
         <oasis:entry colname="col2">44.4</oasis:entry>
         <oasis:entry colname="col3">120.6</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Max<sub>1 h</sub></oasis:entry>
         <oasis:entry colname="col2">56.2</oasis:entry>
         <oasis:entry colname="col3">125.4</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Max<sub>3 h</sub></oasis:entry>
         <oasis:entry colname="col2">78.6</oasis:entry>
         <oasis:entry colname="col3">148.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Max<sub>6 h</sub></oasis:entry>
         <oasis:entry colname="col2">81.6</oasis:entry>
         <oasis:entry colname="col3">172.0</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Max<sub>12 h</sub></oasis:entry>
         <oasis:entry colname="col2">92.6</oasis:entry>
         <oasis:entry colname="col3">189.9</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Max<sub>24 h</sub></oasis:entry>
         <oasis:entry colname="col2">92.8</oasis:entry>
         <oasis:entry colname="col3">195.8</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">IDF parameters</oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mtext>RP</mml:mtext><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">41.65</oasis:entry>
         <oasis:entry colname="col3">53.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M142" display="inline"><mml:mrow><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mtext>RP</mml:mtext><mml:mn mathvariant="normal">20</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">46.45</oasis:entry>
         <oasis:entry colname="col3">61.99</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M143" display="inline"><mml:mrow><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mtext>RP</mml:mtext><mml:mn mathvariant="normal">50</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">–</oasis:entry>
         <oasis:entry colname="col3">77.97</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M144" display="inline"><mml:mrow><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mtext>RP</mml:mtext><mml:mn mathvariant="normal">80</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">–</oasis:entry>
         <oasis:entry colname="col3">84.99</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M145" display="inline"><mml:mrow><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mtext>RP</mml:mtext><mml:mn mathvariant="normal">100</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">–</oasis:entry>
         <oasis:entry colname="col3">88.29</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d2e3913">In particular, the scaling exponent <inline-formula><mml:math id="M146" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, dry frequency (p0), mean rainfall, and the central and upper portions of the rainfall distribution (e.g., P99 and P99.99) are reproduced with good accuracy. The close agreement between the imposed and simulated scaling exponent demonstrates that the calibration procedure successfully reproduces the prescribed scaling behavior. This result should be interpreted as verification of the correct implementation of the calibration workflow rather than as an independent assessment of the predictive capability of the MRC model. The autocorrelation structure is also satisfactorily preserved, although a slight underestimation of the first autocorrelation coefficients can be observed. Table 4 compares the observed 20-year rainfall series at 15 <inline-formula><mml:math id="M147" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> resolution with a single 1000-year synthetic realization. Consequently, sample-dependent quantities, particularly absolute maxima and very high empirical percentiles, are not directly comparable between the two records because their sampling variability depends strongly on record length. A matched-length ensemble would provide a more appropriate framework for quantifying the distribution of these diagnostics and the associated Monte Carlo uncertainty. Such an ensemble-based assessment is not included in the present software-oriented study because it requires a substantially larger computational effort and would duplicate the extensive diagnostic analysis of the MRC methodology already presented in Cappelli et al. (2025a, Appendix, Case Study 3), to which interested readers are referred.</p>
      <p id="d2e3931">As expected, larger differences emerge when considering extreme rainfall properties. These differences should not be attributed exclusively to model performance, because they may arise from both the different record lengths and stochastic variability. In the present workflow, they may also reflect the uncertainty propagated from the synthetic daily rainfall series generated by Module 1, which constitutes the input to the MRC calibration procedure. Therefore, the current case study does not allow the effects of record length and stochastic rainfall generation to be disentangled. The disaggregated time series exhibits higher maximum rainfall accumulations across all aggregation durations, and the empirically estimated <inline-formula><mml:math id="M148" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients are generally larger than those derived from the observed record. Nevertheless, the key calibration targets are reproduced remarkably well. Both the dry-frequency (p0) and the scaling exponent (<inline-formula><mml:math id="M149" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>)—the latter being the only parameter directly used to calibrate the MRC model—are identical to those observed, confirming the ability of the two modules to preserve rainfall intermittency and scaling properties while remaining consistent with the target IDF relationships. A more extensive assessment based on multiple stochastic realizations and matched record lengths, including the variability of the resulting rainfall statistics, is available in Cappelli et al. (2025a, Appendix, Case Study 3) and is not repeated here. The application of the MRC model directly to observed daily rainfall series, thereby isolating the performance of the disaggregation methodology from the uncertainty introduced by Module 1, is presented and discussed in Cappelli et al. (2026b).</p>
      <p id="d2e3949">Overall, the results confirm that the calibrated MRC model provides a statistically consistent representation of sub-daily rainfall variability while preserving the prescribed scaling behavior and extreme-value characteristics. Within the context of this software paper, these results demonstrate the correct implementation of the integrated Module 1–Module 2 workflow rather than providing a new methodological validation of the MRC model. Accordingly, Table 4 should be interpreted as a diagnostic illustration of the implemented workflow, while the more computationally intensive ensemble-based evaluation of stochastic uncertainty and record-length effects is documented in the previous methodological study.</p>
</sec>
</sec>
<sec id="Ch1.S5">
  <label>5</label><title>Discussion</title>
      <p id="d2e3961">The primary objective of Virtual Rain is not to introduce new stochastic rainfall methodologies, but to provide an operational and reproducible implementation of previously validated approaches within a unified software environment. Accordingly, the case study presented here should be interpreted primarily as a calibration, diagnostic, and software-verification exercise rather than as an independent validation of the underlying CoSMoS-2s and MRC methodologies. The same observational information used for model configuration and calibration is also used for the subsequent diagnostic assessment. The comparison between observed and simulated statistics is therefore intended to verify whether the implemented workflow reproduces the statistical characteristics prescribed during calibration, rather than to assess predictive performance on an independent validation dataset. Broader methodological evaluations of the underlying rainfall-generation and disaggregation approaches are reported in the corresponding previous studies.</p>
      <p id="d2e3964">An important outcome of this work is that several methodological choices, which are often only implicitly described in previous studies, become explicit user decisions within the software. Consequently, Virtual Rain translates the theoretical flexibility of the underlying models into a structured operational workflow. The user must specify several key configuration elements, including (i) the seasonal partition, (ii) the marginal distribution of non-zero rainfall, (iii) the representation of the autocorrelation structure, (iv) the AR model order, (v) the imposed scaling exponent <inline-formula><mml:math id="M150" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, (vi) the return periods adopted during MRC calibration, and (vii) the length of the rainfall time series. These choices inevitably involve trade-offs between statistical accuracy, robustness of parameter estimation, computational efficiency, and data availability.</p>
      <p id="d2e3974">The seasonal partition represents one of the most influential configuration choices. Increasing the number of seasonal groups generally improves the representation of the annual rainfall cycle but simultaneously reduces the amount of data available for estimating the marginal distributions and autocorrelation structure within each season. Conversely, grouping several consecutive months provides more robust parameter estimates, particularly when relatively short rainfall records are available, at the expense of a less detailed representation of month-to-month variability. Transitions between independently calibrated seasons may also introduce discontinuities in model parameters or dependence properties at seasonal boundaries. Virtual Rain therefore provides diagnostic information to support the user in selecting a seasonal structure appropriate to the available record and application rather than assuming that a single partition is universally optimal.</p>
      <p id="d2e3977">A similar compromise characterizes the selection of the marginal distribution. The software estimates several candidate distributions independently for each season while encouraging the adoption of a single distributional family throughout the year whenever possible. Although different distributions may locally provide the best statistical fit, adopting a common distribution improves consistency, reproducibility, and interpretability of the resulting stochastic model while limiting unnecessary model complexity. The selected distribution and its fitted parameters remain subject to sampling uncertainty, particularly when seasonal stratification leaves relatively few wet observations. Consequently, differences among similarly performing candidate distributions should not necessarily be interpreted as evidence of a uniquely identifiable marginal model.</p>
      <p id="d2e3981">The representation of temporal dependence also reflects the balance between flexibility and operational simplicity. In the present application, the empirical ACS structure was adopted because it provided the closest agreement with the observed rainfall series without introducing additional calibration parameters. Virtual Rain nevertheless allows users to employ a parametric ACS whenever a smoother analytical representation is preferred. Similarly, the autoregressive order should not be interpreted as a uniquely identifiable parameter but rather as a practical modelling choice that controls the persistence reproduced by the stochastic generator. Diagnostic comparisons at lags beyond those explicitly included in the autoregressive formulation provide useful information on the ability of the calibrated model to propagate temporal dependence. The MRC disaggregation module follows the same general philosophy. The scaling exponent <inline-formula><mml:math id="M151" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> is treated as an imposed calibration input and may, in principle, be estimated from local sub-daily observations or obtained from external information such as regional IDF/DDF relationships. In the present case study, however, <inline-formula><mml:math id="M152" display="inline"><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.251</mml:mn></mml:mrow></mml:math></inline-formula> was estimated from the available 15 <inline-formula><mml:math id="M153" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula> observations. The application presented here therefore represents the data-rich pathway and should not be interpreted as an empirical demonstration of calibration in the complete absence of local sub-daily observations. The possibility of supplying independently derived regional scaling information represents a capability of the software that remains to be evaluated explicitly in data-sparse applications.</p>
      <p id="d2e4011">The interpretation of the MRC outer-scale parameter <inline-formula><mml:math id="M154" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> also deserves clarification. The parameter <inline-formula><mml:math id="M155" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> is jointly estimated with <inline-formula><mml:math id="M156" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="italic">β</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M157" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>LN</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> during the numerical optimization of the theoretical multifractal IDF relationships and enters the calibration through the scale ratio <inline-formula><mml:math id="M158" display="inline"><mml:mrow><mml:mi>D</mml:mi><mml:mo>/</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M159" display="inline"><mml:mi>d</mml:mi></mml:math></inline-formula> denotes rainfall duration. It therefore represents the outer scale of the calibrated multifractal scaling regime rather than the duration of the rainfall block explicitly disaggregated by the cascade. In the analyzed case study, the fitted value <inline-formula><mml:math id="M160" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M161" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 286.2 <inline-formula><mml:math id="M162" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:math></inline-formula> consequently does not imply that a continuous 286.2 <inline-formula><mml:math id="M163" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:math></inline-formula> cascade is simulated. Following calibration, individual daily rainfall amounts are independently disaggregated using the calibrated cascade parameters while preserving their daily totals. The theoretical interpretation and sensitivity of <inline-formula><mml:math id="M164" display="inline"><mml:mi>D</mml:mi></mml:math></inline-formula> are discussed more extensively in the original methodological formulation (Cappelli et al., 2025a).</p>
      <p id="d2e4107">The integrated use of Modules 1 and 2 introduces an additional source of uncertainty that is important when interpreting the final high-resolution rainfall series. Module 2 receives the synthetic daily rainfall generated by Module 1; consequently, departures generated during daily rainfall simulation may propagate into the subsequent disaggregation stage. Virtual Rain also allows Module 2 to be applied directly to observed daily rainfall, thereby avoiding this specific source of propagated uncertainty when reliable daily observations are available. The present integrated case study does not formally partition the total error into contributions from daily rainfall generation, MRC calibration, and stochastic cascade variability. Application of the MRC model directly to observed daily rainfall, which allows the disaggregation component to be examined separately, is presented in the corresponding methodological study.</p>
      <p id="d2e4110">Parameter uncertainty represents another limitation of the current implementation. Marginal, dependence, extreme-value, and cascade parameters are represented through point estimates in the operational workflow, and uncertainty in these estimates is not currently propagated through the complete Module 1–Module 2 chain. Moreover, combinations of MRC parameters may provide similarly performing solutions to the numerical calibration problem, making parameter identifiability an aspect that should be considered when interpreting individual fitted values. The current implementation should therefore be regarded as providing an operational calibrated solution rather than a complete probabilistic characterization of parameter uncertainty.</p>
      <p id="d2e4113">The temporal resolution attainable through Module 2 is determined by the cascade structure and by the configuration supported by the implementation. Accordingly, Virtual Rain should be applied only at temporal resolutions compatible with the implemented cascade hierarchy and the assumptions of the underlying MRC formulation. Extrapolation to resolutions or cascade configurations not explicitly supported by the software should not be assumed to be valid without additional evaluation. The software documentation identifies the supported inputs and configuration options and should be consulted when applying the toolkit outside the example configuration considered here.</p>
      <p id="d2e4116">The present case study is deliberately limited to a single rain-gauge station and therefore cannot, by itself, establish general transferability across different hydroclimatic regimes. Claims regarding the broader performance of the underlying stochastic methodologies should consequently be interpreted in the context of the multi-site and methodological evaluations reported in the previous studies, rather than as conclusions derived from the present single-site demonstration. In particular, the previous large-sample framework applications provide complementary evidence on performance across multiple rainfall records, whereas the objective here is to demonstrate how the corresponding modelling components can be accessed and combined through Virtual Rain.</p>
      <p id="d2e4120">Potential failure modes should also be considered when applying the software. Short or incomplete records, very small seasonal wet-day samples, poorly constrained extreme-value fits, weakly identifiable cascade parameters, unsuitable seasonal partitions, or IDF information that is inconsistent with the daily rainfall climatology may lead to unstable or physically implausible parameter estimates. Diagnostic outputs should therefore be considered an integral component of model configuration rather than merely a graphical complement to the final simulation. Where calibration fails to converge or produces parameters outside the theoretically or numerically admissible range, the corresponding configuration should not be used without further investigation.</p>
      <p id="d2e4123">Overall, the results presented here support the correct operation and internal consistency of the implemented Virtual Rain workflow for the case study considered, rather than establishing universal robustness or transferability of the software across hydroclimates and datasets. The modular architecture nevertheless provides a flexible basis for broader applications, since the two modules can be operated jointly or independently and several model-configuration choices remain accessible to the user. Future evaluations should extend the software assessment to multiple hydroclimatic settings and include systematic uncertainty quantification, parameter-identifiability analyses, sensitivity experiments, matched-length stochastic ensembles, and benchmarking against alternative rainfall-generation and disaggregation tools. Such analyses would complement the methodological evidence already available and provide a more comprehensive assessment of the operational domain of Virtual Rain.</p>
</sec>
<sec id="Ch1.S6" sec-type="conclusions">
  <label>6</label><title>Conclusion</title>
      <p id="d2e4134">In this paper, we introduced Virtual Rain, a software toolkit designed to integrate complementary methods for simulating rainfall time series at arbitrary resolutions. The toolkit is designed to generate univariate time series that reproduce key hydroclimatic features of observed data, including marginal distributions, autocorrelation structure, and intermittency.</p>
      <p id="d2e4137">A central aspect of this work is the development of a flexible and operational workflow capable of functioning under limited data availability. By combining daily rainfall observations with IDF curve information, the toolkit enables the reconstruction of sub-daily dynamics without requiring continuous high-resolution records.</p>
      <p id="d2e4140">The primary contribution of this study is the implementation of the methodological framework proposed by Papalexiou (2022) and Cappelli et al. (2025a, b, 2026a) within a unified software environment. Virtual Rain provides the first publicly available implementation integrating the complete CoSMoS-2s daily rainfall simulation workflow and the complete MRC rainfall disaggregation workflow through Python and R routines together with an interactive web-based platform.</p>
      <p id="d2e4143">The proposed approach has been assessed through a real-world case study, demonstrating the correctness and usability of the software implementation while reproducing the statistical behavior expected from the underlying methodologies.</p>
      <p id="d2e4148">Beyond the methodological contribution, this study also emphasizes usability and practical implementation. The proposed routines have been integrated into an interactive web-based platform that reproduces the logical structure of the modeling workflow, allowing users to explore, configure, and apply the methodology without requiring advanced programming skills. By enabling full control over the modeling parameters, the platform supports both operational use and a deeper understanding of the underlying processes and assumptions.</p>
      <p id="d2e4151">In this perspective, Virtual Rain can be seen not only as a computational tool, but also as an operational and educational environment, facilitating its adoption across research, professional, and teaching contexts. The modular software architecture also provides a common framework for future methodological developments, including the integration of alternative rainfall generators and disaggregation models. Furthermore, comprehensive benchmarking against alternative stochastic rainfall generators and temporal disaggregation approaches represents a valuable direction for future development and evaluation of Virtual Rain, enabling a broader assessment of its performance across different hydroclimatic conditions and application contexts. Future developments will also focus on enhancing the robustness and reliability of the calibration framework through uncertainty quantification, parameter-identifiability analysis, sensitivity analysis, and multi-start optimization strategies. These developments will provide a more comprehensive assessment of parameter uncertainty and calibration robustness while further extending the flexibility and applicability of the Virtual Rain software framework.</p>
      <p id="d2e4154">The availability of the routines and datasets further supports transparency, reproducibility, and future developments of the proposed approach.</p>
</sec>

      
      </body>
    <back><app-group>

<app id="App1.Ch1.S1">
  <label>Appendix A</label><title>Virtual Rain platform: implementation of the case study workflow</title>
      <p id="d2e4168">This Appendix reports the main interface screens of the Virtual Rain digital platform used to replicate the case study presented in Sect. 4. The screenshots follow the same logical sequence adopted in the methodological workflow,</p>
      <p id="d2e4171">guiding the user from the upload and preprocessing of the observed rainfall series to stochastic simulation, diagnostic evaluation and temporal disaggregation.</p>

      <fig id="FA1" specific-use="star"><label>Figure A1</label><caption><p id="d2e4176">Initial user interface of the Virtual Rain digital platform.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f14.png"/>

      </fig>

      <fig id="FA2" specific-use="star"><label>Figure A2</label><caption><p id="d2e4188">Input interface for uploading the observed daily rainfall time series, including visualization of the first year and annual daily maxima.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f15.png"/>

      </fig>

      <p id="d2e4197">The Appendix is organized according to the two modules introduced in Sect. 3.1: <list list-type="bullet"><list-item>
      <p id="d2e4202">Module 1: Daily rainfall stochastic simulation;</p></list-item><list-item>
      <p id="d2e4206">Module 2: Sub-hourly rainfall disaggregation.</p></list-item></list></p>

      <fig id="FA3" specific-use="star"><label>Figure A3</label><caption><p id="d2e4211">Seasonality interface supporting the user-defined selection of the number of seasonal periods and the starting month. The seasonal partition is specified by the user and is not automatically determined by the software.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f16.png"/>

        
      </fig>

      <p id="d2e4222">Figure A1 shows the initial access interface of the platform, from which the user can select one of the two rainfall models and start the modelling workflow.</p>
<sec id="App1.Ch1.S1.SS1">
  <label>A1</label><title>Module 1 – daily rainfall simulation</title>
      <p id="d2e4232">Figure A2 reports the upload interface for the observed rainfall data together with the first exploratory diagnostics, including daily rainfall variability and annual maxima. These preliminary outputs allow the user to visually inspect the rainfall series before starting the stochastic modelling workflow.</p>
      <p id="d2e4235">Figure A3 illustrates the interface used to define the seasonal partitioning of the rainfall series based on the monthly seasonal component plot automatically generated by the platform. This step represents a key modelling choice, since the selected seasonal aggregation directly affects both the fitting of marginal distributions and the calibration of the autocorrelation structures.</p>

      <fig id="FA4" specific-use="star"><label>Figure A4</label><caption><p id="d2e4240">Wet period module: calibration results of marginal distributions for non-zero rainfall values.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f17.png"/>

          
        </fig>

      <p id="d2e4252">Figure A4 shows the calibration results of the candidate marginal distributions fitted to wet-day rainfall values for each seasonal group. Both graphical and tabular outputs are provided to support the user in selecting the most appropriate marginal distribution according to the fitting performance and the reproduction of the upper-tail behavior.</p>

      <fig id="FA5" specific-use="star"><label>Figure A5</label><caption><p id="d2e4257">ACS and AR(<inline-formula><mml:math id="M165" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>) interface: calibration results of the autocorrelation structure.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f18.png"/>

        </fig>

      <p id="d2e4273">Figure A5 reports the ACS calibration for both the binary and continuous rainfall processes based on the number of lags specified by the user. The interface allows the comparison between empirical and fitted Spearman ACSs obtained after calibration. At this stage, the user can select either the empirical ACS or the preferred parametric representation. The interface also allows the specification of the autoregressive order (<inline-formula><mml:math id="M166" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>). It is important to note that, when the empirical ACS is selected, the number of lags necessarily coincides with the order (<inline-formula><mml:math id="M167" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>) of the AR model.</p>

      <fig id="FA6" specific-use="star"><label>Figure A6</label><caption><p id="d2e4292">Diagnostic interface: comparison between observed and simulated statistical properties for model evaluation.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f19.png"/>

        </fig>

      <p id="d2e4301">Figure A6 illustrates the diagnostic interface used to evaluate the consistency between observed and simulated rainfall statistics through ensemble-based comparisons. In this step, the user first specifies the number of synthetic daily time series to be generated. The quality of the simulations is then assessed by comparing observed and simulated properties, including: (i) autocorrelation structure, describing temporal dependence; (ii) seasonal cycle based on monthly mean rainfall; (iii) ranked annual maxima (highest, median and lowest); (iv) summary statistics, including dry-day probability (p0), mean wet-day rainfall, standard deviation, and extreme percentiles (P95, P99 and P99.9). These diagnostics support model diagnostic and help the user refine the modelling configuration when necessary.</p>

      <fig id="FA7" specific-use="star"><label>Figure A7</label><caption><p id="d2e4307">Results interface: visualization of the simulated series (first year) and summary of simulation settings.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f20.png"/>

        </fig>

      <p id="d2e4316">Figure A7 presents the final output interface of Module 1, including the simulated rainfall series and a summary of the selected stochastic-model configuration. From this interface, the user can directly download the generated rainfall series or automatically transfer the simulated dataset to Module 2 for temporal disaggregation into sub-hourly resolutions.</p>
</sec>
<sec id="App1.Ch1.S1.SS2">
  <label>A2</label><title>Module 2 – sub-hourly rainfall disaggregation</title>
      <p id="d2e4328">Figure A8 shows the input interface of the disaggregation module, where the user specifies the starting date of the uploaded rainfall time series together with the scaling exponent <inline-formula><mml:math id="M168" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, representing the slope of the IDF curves in logarithmic scale. This parameter is required for the calibration of the MRC model and controls the scaling relationship across temporal resolutions.</p>

      <fig id="FA8" specific-use="star"><label>Figure A8</label><caption><p id="d2e4340">Input interface of the Sub-hourly Disaggregation Module showing the required inputs, including the starting date of the rainfall series and the IDF scaling exponent <inline-formula><mml:math id="M169" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f21.png"/>

        </fig>

      <p id="d2e4356">Figure A9 reports the preliminary extreme-rainfall analysis, including the visualization of the first year of the rainfall series and the annual maximum daily rainfall values. The interface also provides the Gumbel plot comparing the empirical distribution of the <inline-formula><mml:math id="M170" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients with the fitted GEV distributions obtained using three estimation methods: Maximum Likelihood (MLE), Probability Weighted Moments (PWM), and L-moments (L-mom).</p>
      <p id="d2e4367">Figure A10 presents the estimated GEV parameters according to the method selected in the previous step, together with the mean annual rainfall intensity and the corresponding <inline-formula><mml:math id="M171" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients used as inputs for the MRC calibration procedure. The platform also allows the user to directly provide custom <inline-formula><mml:math id="M172" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients instead of estimating them from the observed rainfall series.</p>
      <p id="d2e4384">Figure A11 illustrates the calibration results of the MRC model, including the comparison between theoretical and empirical IDF curves for the selected return periods. The interface also reports the estimated MRC parameters resulting from the numerical optimization procedure and the corresponding objective-function value.</p>
      <p id="d2e4387">Figure A12 shows the interface used to configure the temporal disaggregation process, including the target temporal resolution (up to 1 <inline-formula><mml:math id="M173" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">min</mml:mi></mml:mrow></mml:math></inline-formula>) and the number of stochastic realizations to be generated.</p>
      <p id="d2e4398">Figure A13 presents the graphical comparison between the observed daily rainfall series and the corresponding disaggregated sub-hourly realization generated by the MRC model.</p>
      <p id="d2e4402">Figure A14 reports a comprehensive summary of the statistical properties of the disaggregated rainfall series. The interface includes key indicators such as sample size, dry-period frequency, mean and standard deviation, extreme percentiles, maximum rainfall values at multiple aggregation scales, autocorrelation coefficients, and IDF-related parameters. These outputs provide a complete characterization of the generated time series and support the evaluation of its statistical consistency. This final step concludes Module 2 and allows the user to directly download the disaggregated rainfall series.</p>

      <fig id="FA9"><label>Figure A9</label><caption><p id="d2e4408">Preliminary analysis interface showing daily rainfall for the first year, annual maximum daily rainfall and the Gumbel plot comparing GEV fits obtained through MLE, PWM and L-mom methods.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f22.png"/>

        </fig>

<fig id="FA10"><label>Figure A10</label><caption><p id="d2e4422">Interface reporting estimated GEV parameters, mean annual rainfall intensity and the <inline-formula><mml:math id="M174" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>-coefficients associated with the selected return periods.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f23.png"/>

        </fig>

<fig id="FA11"><label>Figure A11</label><caption><p id="d2e4443">MRC calibration interface showing the comparison between imposed and calibrated IDF curves for the selected return periods, together with the estimated MRC parameters and objective-function value.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f24.png"/>

        </fig>

      <fig id="FA12"><label>Figure A12</label><caption><p id="d2e4457">Disaggregation setup interface used to define the target temporal resolution and the number of stochastic simulations.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f25.png"/>

        </fig>

<fig id="FA13"><label>Figure A13</label><caption><p id="d2e4471">Disaggregation results interface showing the comparison between the observed daily rainfall series and the generated sub-hourly disaggregated series for the first simulation year.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f26.png"/>

        </fig>

<fig id="FA14"><label>Figure A14</label><caption><p id="d2e4485">Summary table interface reporting the statistical properties of the disaggregated rainfall series together with the calibrated MRC parameters and IDF-related statistics.</p></caption>
          
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/9489/2026/gmd-19-9489-2026-f27.png"/>

        </fig>

</sec>
</app>
  </app-group><notes notes-type="codedataavailability"><title>Code and data availability</title>

      <p id="d2e4501">The Virtual Rain source code, executable routines, documentation, and data used to reproduce the analyses presented in this manuscript are permanently archived on Zenodo (<ext-link xlink:href="https://doi.org/10.5281/zenodo.22747568" ext-link-type="DOI">10.5281/zenodo.22747568</ext-link>, Cappelli et al., 2026d). The archived release corresponds to Virtual Rain v2 and includes the Python implementation of Module 1, the R implementation of Module 2, the case-study data, and a dedicated README.txt file providing software requirements, input and output descriptions, execution instructions, reproducibility guidance, licensing information, and citation instructions. The Virtual Rain source code is distributed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). The rainfall data used in the case study originate from the Settore Idrologico e Geologico Regionale (SIR) – Regione Toscana and are distributed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence. To reproduce the analyses, users should download the archived release and follow the module-specific and complete-workflow instructions provided in README.txt. The archived software should be cited as Cappelli et al. (2026d, <ext-link xlink:href="https://doi.org/10.5281/zenodo.22747568" ext-link-type="DOI">10.5281/zenodo.22747568</ext-link>).</p>
  </notes><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d2e4517">FC: Conceptualization, Methodology, Software, Validation, Data Curation, Formal Analysis, Writing – Original Draft. SG: Conceptualization, Supervision, Methodology, Funding Acquisition, Writing – Review and Editing. AP: Data Curation, Investigation, Validation, Resources, Writing – Review and Editing. ES: Software, Formal Analysis, Validation, Data Curation, Writing – Review and Editing. All authors approved the final manuscript.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d2e4523">The contact author has declared that none of the authors has any competing interests.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d2e4531">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. The authors bear the ultimate responsibility for providing appropriate place names. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.</p>
  </notes><ack><title>Acknowledgements</title><p id="d2e4537">The authors also wish to thank Innosystem S.r.l., particularly Fabrizio Piergentili and Stefano Bianchini, for their valuable support and collaboration during the development of this work.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d2e4542">This work was funded by the WE-FLOOD project (FIS-2024-01376), supported by the Italian Ministry of University and Research (MUR) under the Italian Science Fund (<italic>Fondo Italiano per la Scienza</italic>, FIS), Call FIS 3 (CUP J53C25002290001). Further financial support was provided through the collaboration agreement between the Autorità di Bacino Distrettuale dell'Appennino Meridionale and the Department for Innovation in Biological, Agri-food and Forest Systems (DIBAF) of Università degli Studi della Tuscia (CUP F54J16000030001 and CUP F52G16000010001).</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d2e4551">This paper was edited by Charles Onyutha and reviewed by three anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bib1"><label>1</label><mixed-citation>Cappelli, F. and Grimaldi, S.: Methodological developments of the CoSMoS framework for the statistical modeling of precipitation time series, in: Statistical Science: From Theory to Applied Research II, edited by: Martella, F., Arima, S., Marino, M. F., and Mollica, C., Italian Statistical Society Series on Advances in Statistics, Springer, Cham, <ext-link xlink:href="https://doi.org/10.1007/978-3-032-30877-1_75" ext-link-type="DOI">10.1007/978-3-032-30877-1_75</ext-link>, 2026.</mixed-citation></ref>
      <ref id="bib1.bib2"><label>2</label><mixed-citation>Cappelli, F., Papalexiou, S. M., Markonis, Y., and Grimaldi, S.: PyCoSMoS: An advanced toolbox for simulating real-world hydroclimatic data, Environ. Model. Softw., 178, 106076, <ext-link xlink:href="https://doi.org/10.1016/j.envsoft.2024.106076" ext-link-type="DOI">10.1016/j.envsoft.2024.106076</ext-link>, 2024.</mixed-citation></ref>
      <ref id="bib1.bib3"><label>3</label><mixed-citation>Cappelli, F., Volpi, E., Langousis, A., Deidda, R., Perdios, A., Furcolo, P., and Grimaldi, S.: Sub-daily rainfall simulation using multifractal canonical disaggregation: A parsimonious calibration strategy based on intensity–duration–frequency curves, Stoch. Environ. Res. Risk Assess., 39, 1–19, <ext-link xlink:href="https://doi.org/10.1007/s00477-024-02827-8" ext-link-type="DOI">10.1007/s00477-024-02827-8</ext-link>, 2025a.</mixed-citation></ref>
      <ref id="bib1.bib4"><label>4</label><mixed-citation>Cappelli, F., Volpi, E., Langousis, A., Deidda, R., Perdios, A., and Grimaldi, S.: Rainfall simulation based on parsimonious calibration of a multifractal canonical disaggregation scheme in the Arno River Basin, Italy, J. Hydrol. Reg. Stud., 59, 102447, <ext-link xlink:href="https://doi.org/10.1016/j.ejrh.2025.102447" ext-link-type="DOI">10.1016/j.ejrh.2025.102447</ext-link>, 2025b.</mixed-citation></ref>
      <ref id="bib1.bib5"><label>5</label><mixed-citation>Cappelli, F., Volpi, E., Langousis, A., Papalexiou, S. M., Deidda, R., Perdios, A., and Grimaldi, S.: Simulating sub-daily rainfall time series in the absence of sub-daily observations, J. Hydrol., 675, 135660, <ext-link xlink:href="https://doi.org/10.1016/j.jhydrol.2026.135660" ext-link-type="DOI">10.1016/j.jhydrol.2026.135660</ext-link>, 2026a. </mixed-citation></ref>
      <ref id="bib1.bib6"><label>6</label><mixed-citation>Cappelli, F., Petroselli, A., and Grimaldi, S.: ARNO-RAIN: a comprehensive dataset of observed (20 years) and simulated (2000 years) sub-hourly precipitation series for 70 rain gauges, [Dataset], Zenodo, <ext-link xlink:href="https://doi.org/10.5281/zenodo.19220354" ext-link-type="DOI">10.5281/zenodo.19220354</ext-link>, 2026b.</mixed-citation></ref>
      <ref id="bib1.bib7"><label>7</label><mixed-citation>Cappelli, F., Papalexiou, S. M., Markonis, Y., Volpi, E., and Grimaldi, S.: Bridging flexibility and usability: configuring CoSMoS-2s for operational rainfall simulation in the Arno River Basin, Hydrolog. Sci. J.,  1–14, <ext-link xlink:href="https://doi.org/10.1080/02626667.2026.2710203" ext-link-type="DOI">10.1080/02626667.2026.2710203</ext-link>, 2026c.</mixed-citation></ref>
      <ref id="bib1.bib8"><label>8</label><mixed-citation>Cappelli, F., Grimaldi, S., Petroselli, A., and Santinami, E.: Virtual Rain v1.0: A Unified Toolkit for High-Resolution Rainfall Simulation and Disaggregation, Version v2, Zenodo [code and data set], <ext-link xlink:href="https://doi.org/10.5281/zenodo.22747568" ext-link-type="DOI">10.5281/zenodo.22747568</ext-link>, 2026d.</mixed-citation></ref>
      <ref id="bib1.bib9"><label>9</label><mixed-citation>Fischer, S., Dallan, E., Fiori, A., Grimaldi, S., Kochanek, K., Prieto, C., Reis Jr., D. S., and Volpi, E.: Hydrological design in the helping decade – inspiring the community to innovate the hydrological design concept, Hydrolog. Sci. J., 70, 375–389, <ext-link xlink:href="https://doi.org/10.1080/02626667.2024.2436634" ext-link-type="DOI">10.1080/02626667.2024.2436634</ext-link>, 2025.</mixed-citation></ref>
      <ref id="bib1.bib10"><label>10</label><mixed-citation>Grimaldi, S., Volpi, E., Langousis, A., Papalexiou, S. M., De Luca, D. L., Piscopia, R., Nerantzaki, S. D., Papacharalampous, G., and Petroselli, A.: Continuous hydrologic modelling for small and ungauged basins: A comparison of eight rainfall models for sub-daily runoff simulations, J. Hydrol., 610, 127866, <ext-link xlink:href="https://doi.org/10.1016/j.jhydrol.2022.127866" ext-link-type="DOI">10.1016/j.jhydrol.2022.127866</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib11"><label>11</label><mixed-citation>Koutsoyiannis, D.: Stochastics of Hydroclimatic Extremes: A Cool Look at Risk, Kallipos, <ext-link xlink:href="https://doi.org/10.57713/kallipos-1" ext-link-type="DOI">10.57713/kallipos-1</ext-link>, 2025.</mixed-citation></ref>
      <ref id="bib1.bib12"><label>12</label><mixed-citation>Koutsoyiannis, D., Onof, C., and Wheater, H. S.: Multivariate rainfall disaggregation at a fine timescale, Water Resour. Res., 39, 1173, <ext-link xlink:href="https://doi.org/10.1029/2002WR001600" ext-link-type="DOI">10.1029/2002WR001600</ext-link>, 2003.</mixed-citation></ref>
      <ref id="bib1.bib13"><label>13</label><mixed-citation>Langousis, A., Veneziano, D., Furcolo, P., and Lepore, C.: Multifractal rainfall extremes: Theoretical analysis and practical estimation, Chaos Soliton. Fract., 39, 1182–1194, <ext-link xlink:href="https://doi.org/10.1016/j.chaos.2007.06.004" ext-link-type="DOI">10.1016/j.chaos.2007.06.004</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib14"><label>14</label><mixed-citation>Northrop, P. J.: Stochastic models of rainfall, Annu. Rev. Stat. Appl., 11, 363–389, <ext-link xlink:href="https://doi.org/10.1146/annurev-statistics-040622-023838" ext-link-type="DOI">10.1146/annurev-statistics-040622-023838</ext-link>, 2024.</mixed-citation></ref>
      <ref id="bib1.bib15"><label>15</label><mixed-citation>Onof, C. and Arnbjerg-Nielsen, K.: Quantification of anticipated future changes in high resolution design rainfall for urban areas, Atmos. Res., 92, 350–363, <ext-link xlink:href="https://doi.org/10.1016/j.atmosres.2009.01.014" ext-link-type="DOI">10.1016/j.atmosres.2009.01.014</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib16"><label>16</label><mixed-citation>Papalexiou, S. M.: Unified theory for stochastic modelling of hydroclimatic processes: Preserving marginal distributions, correlation structures, and intermittency, Adv. Water Resour., 115, 234–252, <ext-link xlink:href="https://doi.org/10.1016/j.advwatres.2018.02.013" ext-link-type="DOI">10.1016/j.advwatres.2018.02.013</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib17"><label>17</label><mixed-citation>Papalexiou, S. M.: Rainfall generation revisited: Introducing CoSMoS-2s and advancing copula-based intermittent time series modeling, Water Resour. Res., 58, e2021WR031641, <ext-link xlink:href="https://doi.org/10.1029/2021WR031641" ext-link-type="DOI">10.1029/2021WR031641</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib18"><label>18</label><mixed-citation>Pérez, F. and Granger, B. E.: IPython: A system for interactive scientific computing, Comput. Sci. Eng., 9, 21–29, <ext-link xlink:href="https://doi.org/10.1109/MCSE.2007.53" ext-link-type="DOI">10.1109/MCSE.2007.53</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib19"><label>19</label><mixed-citation>Volpi, E., Grimaldi, S., Aghakouchak, A., Castellarin, A., Chebana, F., Papalexiou, S.M., Aksoy, H., Bárdossy, A., Cancelliere, A., Chen, Y., and Deidda, R.: The legacy of STAHY: milestones, achievements, challenges, and open problems in statistical hydrology, Hydrolog. Sci. J., 69, 1913–1949, <ext-link xlink:href="https://doi.org/10.1080/02626667.2024.2385686" ext-link-type="DOI">10.1080/02626667.2024.2385686</ext-link>, 2024.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Virtual Rain v1.0: a unified toolkit for high-resolution  rainfall simulation and disaggregation</article-title-html>
<abstract-html/>
<ref-html id="bib1.bib1"><label>1</label><mixed-citation>
      
Cappelli, F. and Grimaldi, S.:
Methodological developments of the CoSMoS framework for the statistical modeling of precipitation time series, in: Statistical Science: From Theory to Applied Research II, edited by: Martella, F., Arima, S., Marino, M. F., and Mollica, C., Italian Statistical Society Series on Advances in Statistics, Springer, Cham, <a href="https://doi.org/10.1007/978-3-032-30877-1_75" target="_blank">https://doi.org/10.1007/978-3-032-30877-1_75</a>, 2026.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>2</label><mixed-citation>
      
Cappelli, F., Papalexiou, S. M., Markonis, Y., and Grimaldi, S.:
PyCoSMoS: An advanced toolbox for simulating real-world hydroclimatic data, Environ. Model. Softw., 178, 106076, <a href="https://doi.org/10.1016/j.envsoft.2024.106076" target="_blank">https://doi.org/10.1016/j.envsoft.2024.106076</a>, 2024.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>3</label><mixed-citation>
      
Cappelli, F., Volpi, E., Langousis, A., Deidda, R., Perdios, A., Furcolo, P., and Grimaldi, S.:
Sub-daily rainfall simulation using multifractal canonical disaggregation: A parsimonious calibration strategy based on intensity–duration–frequency curves, Stoch. Environ. Res. Risk Assess., 39, 1–19, <a href="https://doi.org/10.1007/s00477-024-02827-8" target="_blank">https://doi.org/10.1007/s00477-024-02827-8</a>, 2025a.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>4</label><mixed-citation>
      
Cappelli, F., Volpi, E., Langousis, A., Deidda, R., Perdios, A., and Grimaldi, S.:
Rainfall simulation based on parsimonious calibration of a multifractal canonical disaggregation scheme in the Arno River Basin, Italy, J. Hydrol. Reg. Stud., 59, 102447, <a href="https://doi.org/10.1016/j.ejrh.2025.102447" target="_blank">https://doi.org/10.1016/j.ejrh.2025.102447</a>, 2025b.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>5</label><mixed-citation>
      
Cappelli, F., Volpi, E., Langousis, A., Papalexiou, S. M., Deidda, R., Perdios, A., and Grimaldi, S.: Simulating sub-daily rainfall time series in the absence of sub-daily observations, J. Hydrol., 675, 135660, <a href="https://doi.org/10.1016/j.jhydrol.2026.135660" target="_blank">https://doi.org/10.1016/j.jhydrol.2026.135660</a>, 2026a.


    </mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>6</label><mixed-citation>
      
Cappelli, F., Petroselli, A., and Grimaldi, S.:
ARNO-RAIN: a comprehensive dataset of observed (20 years) and simulated (2000 years) sub-hourly precipitation series for 70 rain gauges, [Dataset], Zenodo, <a href="https://doi.org/10.5281/zenodo.19220354" target="_blank">https://doi.org/10.5281/zenodo.19220354</a>, 2026b.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>7</label><mixed-citation>
      
Cappelli, F., Papalexiou, S. M., Markonis, Y., Volpi, E., and Grimaldi, S.: Bridging flexibility and usability: configuring CoSMoS-2s for operational rainfall simulation in the Arno River Basin, Hydrolog. Sci. J.,  1–14, <a href="https://doi.org/10.1080/02626667.2026.2710203" target="_blank">https://doi.org/10.1080/02626667.2026.2710203</a>, 2026c.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>8</label><mixed-citation>
      
Cappelli, F., Grimaldi, S., Petroselli, A., and Santinami, E.: Virtual Rain v1.0: A Unified Toolkit for High-Resolution Rainfall Simulation and Disaggregation, Version v2, Zenodo [code and data set], <a href="https://doi.org/10.5281/zenodo.22747568" target="_blank">https://doi.org/10.5281/zenodo.22747568</a>, 2026d.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>9</label><mixed-citation>
      
Fischer, S., Dallan, E., Fiori, A., Grimaldi, S., Kochanek, K., Prieto, C., Reis Jr., D. S., and Volpi, E.:
Hydrological design in the helping decade – inspiring the community to innovate the hydrological design concept, Hydrolog. Sci. J., 70, 375–389, <a href="https://doi.org/10.1080/02626667.2024.2436634" target="_blank">https://doi.org/10.1080/02626667.2024.2436634</a>, 2025.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>10</label><mixed-citation>
      
Grimaldi, S., Volpi, E., Langousis, A., Papalexiou, S. M., De Luca, D. L., Piscopia, R., Nerantzaki, S. D., Papacharalampous, G., and Petroselli, A.:
Continuous hydrologic modelling for small and ungauged basins: A comparison of eight rainfall models for sub-daily runoff simulations, J. Hydrol., 610, 127866, <a href="https://doi.org/10.1016/j.jhydrol.2022.127866" target="_blank">https://doi.org/10.1016/j.jhydrol.2022.127866</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>11</label><mixed-citation>
      
Koutsoyiannis, D.:
Stochastics of Hydroclimatic Extremes: A Cool Look at Risk, Kallipos, <a href="https://doi.org/10.57713/kallipos-1" target="_blank">https://doi.org/10.57713/kallipos-1</a>, 2025.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>12</label><mixed-citation>
      
Koutsoyiannis, D., Onof, C., and Wheater, H. S.:
Multivariate rainfall disaggregation at a fine timescale, Water Resour. Res., 39, 1173, <a href="https://doi.org/10.1029/2002WR001600" target="_blank">https://doi.org/10.1029/2002WR001600</a>, 2003.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>13</label><mixed-citation>
      
Langousis, A., Veneziano, D., Furcolo, P., and Lepore, C.:
Multifractal rainfall extremes: Theoretical analysis and practical estimation, Chaos Soliton. Fract., 39, 1182–1194, <a href="https://doi.org/10.1016/j.chaos.2007.06.004" target="_blank">https://doi.org/10.1016/j.chaos.2007.06.004</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>14</label><mixed-citation>
      
Northrop, P. J.:
Stochastic models of rainfall, Annu. Rev. Stat. Appl., 11, 363–389, <a href="https://doi.org/10.1146/annurev-statistics-040622-023838" target="_blank">https://doi.org/10.1146/annurev-statistics-040622-023838</a>, 2024.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>15</label><mixed-citation>
      
Onof, C. and Arnbjerg-Nielsen, K.:
Quantification of anticipated future changes in high resolution design rainfall for urban areas, Atmos. Res., 92, 350–363, <a href="https://doi.org/10.1016/j.atmosres.2009.01.014" target="_blank">https://doi.org/10.1016/j.atmosres.2009.01.014</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>16</label><mixed-citation>
      
Papalexiou, S. M.:
Unified theory for stochastic modelling of hydroclimatic processes: Preserving marginal distributions, correlation structures, and intermittency, Adv. Water Resour., 115, 234–252, <a href="https://doi.org/10.1016/j.advwatres.2018.02.013" target="_blank">https://doi.org/10.1016/j.advwatres.2018.02.013</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>17</label><mixed-citation>
      
Papalexiou, S. M.:
Rainfall generation revisited: Introducing CoSMoS-2s and advancing copula-based intermittent time series modeling, Water Resour. Res., 58, e2021WR031641, <a href="https://doi.org/10.1029/2021WR031641" target="_blank">https://doi.org/10.1029/2021WR031641</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>18</label><mixed-citation>
      
Pérez, F. and Granger, B. E.:
IPython: A system for interactive scientific computing, Comput. Sci. Eng., 9, 21–29, <a href="https://doi.org/10.1109/MCSE.2007.53" target="_blank">https://doi.org/10.1109/MCSE.2007.53</a>, 2007.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>19</label><mixed-citation>
      
Volpi, E., Grimaldi, S., Aghakouchak, A., Castellarin, A., Chebana, F., Papalexiou, S.M., Aksoy, H., Bárdossy, A., Cancelliere, A., Chen, Y., and Deidda, R.: The legacy of STAHY: milestones, achievements, challenges, and open problems in statistical hydrology, Hydrolog. Sci. J., 69, 1913–1949, <a href="https://doi.org/10.1080/02626667.2024.2385686" target="_blank">https://doi.org/10.1080/02626667.2024.2385686</a>, 2024.

    </mixed-citation></ref-html>--></article>
