Preprints
https://doi.org/10.5194/egusphere-2026-6282
https://doi.org/10.5194/egusphere-2026-6282
16 Oct 2026
 | 16 Oct 2026
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

Native NetCDF climate forcing in SWAT+ 62: implementation, numerical equivalence, and input performance

Celray James Chawanda, Jeffrey G. Arnold, Raghavan Srinivasan, Olaf David, and Jose Pablo Teran Orsini

Abstract. Large-scale hydrological models need climate forcing at thousands of locations. The Soil and Water Assessment Tool Plus (SWAT+) stores measured weather as separate text files for each station and variable, so file counts, storage and initialisation time grow with each station. Existing NetCDF tools for SWAT+ prepare data outside the model and still write these text files. Reading one compressed dataset inside the model would remove this burden without changing how SWAT+ simulates hydrology. We developed a native NetCDF-4 pathway and a converter for existing station files, and tested the pathway's effect on model results, storage and input time. The reader runs at initialisation and fills the existing climate arrays, so the daily process code is unchanged; one entry in file.cio selects it, and existing text-input projects run as before. Paired runs of an uncalibrated Zambezi River basin model with 1,148 stations over 1980–1985 produced identical output files, and all 15,098,496 daily forcing values matched at 32-bit precision. At 700 stations, the NetCDF inputs needed 83.84 % less storage (235.6 MB against 1,457.6 MB). In the fixed-domain, warm-cache benchmark, process time through completion of climate loading was 5.8 s for NetCDF and 53.6 s for text; text was faster only at 5 stations. Each test used one compiler and one machine; the reader expects the converter's schema and loads the prepared domain into memory. Because the saving recurs in every run, calibration, sensitivity analysis and ensemble studies of regional to global SWAT+ models gain most, and each project's climate forcing becomes one self-describing file that is simpler to share, archive and reproduce.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Celray James Chawanda, Jeffrey G. Arnold, Raghavan Srinivasan, Olaf David, and Jose Pablo Teran Orsini

Status: open (until 11 Dec 2026)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Celray James Chawanda, Jeffrey G. Arnold, Raghavan Srinivasan, Olaf David, and Jose Pablo Teran Orsini
Celray James Chawanda, Jeffrey G. Arnold, Raghavan Srinivasan, Olaf David, and Jose Pablo Teran Orsini
Metrics will be available soon.
Latest update: 16 Oct 2026
Download
Short summary
Large Soil and Water Assessment Tool Plus projects store daily weather in thousands of text files. We added a reader that loads the same weather from one compressed file at startup and leaves the hydrological calculations unchanged. In an uncalibrated Zambezi test, the two input routes wrote identical output files. At 700 stations, the compressed climate inputs used 83.84 % less storage and reduced benchmark initialisation time about ninefold.
Share