Tool Specification (tool_spec: v1.0) for Containerized Geoscientific Software
Abstract. Containerization is a software development approach in which an application and all its required dependencies are packaged together into a single unit (containers). By encapsulating the runtime environment, containers ensure that software behaves consistently across different operating systems and computing infrastructures. This manuscript presents a lightweight, container-oriented specification (tool_spec: v1.0) for geoscientific software tools, together with an ecosystem of supporting implementations. We propose a standardised directory structure along with certain required metadata specification for the tools that exist within each container. The specification defines a machine-readable interface in /src/tool.yml, a standardized runtime contract based on /in/input.json and /out, and reusable tooling for validation, execution, and metadata conversion. The proposed specification ensures a minimal, standardized interface definition for scientific tools inside containers and aid in computational reproducibility. We showcase the application of the specification through a case study involving the preprocessing of terrain data for the setup of catena-based geometric representations in a process-based hydrological model (CATFLOW), demonstrating how tool_spec compliant workflows enable controlled computational experiments through systematic variation of preprocessing parameters.