Abstract
In computational fluid dynamics (CFD) and ocean modeling, the discrete grid or "mesh" is a fundamental component of simulation accuracy and validity. However, the complex GIS-based workflows used to generate these meshes are often poorly documented and rarely shared, creating a significant barrier to reproducibility. This paper introduces an integrated solution that bridges the gap between active research and long-term data curation. By embedding the PyRDM library into the QMesh tool, researchers can now automate the publication of meshes, raw input data, and software versions to persistent repositories like Figshare and Zenodo. This "push-button" approach facilitates the generation of citable Digital Object Identifiers (DOIs), incentivizing open science practices within the modeling community.
Introduction: The Reproducibility Gap in Ocean Modeling
The "mesh" serves as the foundation upon which numerical equations are solved in ocean modeling. Constructing these meshes is a non-trivial task, typically requiring Geographical Information Systems (GIS) to manage complex coastline geometries and bathymetric data. While simulation results are frequently published in peer-reviewed journals, the specific mesh and the raw GIS files used to create it are often omitted from the public record. Furthermore, the exact version of the software used to generate the mesh is rarely specified.
This lack of transparency creates a "reproducibility gap." Manually gathering, versioning, and uploading large, multi-file datasets to repositories is a tedious process that many researchers bypass. To address this, there is a clear need for tools that lower the technical hurdles and provide direct motivation for open data sharing through automation.
Methodology and System Integration
The authors developed a pipeline that integrates research data management (RDM) directly into the mesh generation workflow. The core of this system is the integration of QMesh, a software package developed at Imperial College London for converting GIS geometries into computational meshes, with PyRDM (Python Research Data Management).
PyRDM acts as an automated interface that communicates with the APIs of online repositories such as Figshare, Zenodo, and DSpace. This integration allows users to publish their work directly from the environment where it is created.
Automated Data Parsing and Versioning
A key innovation of this tool is its ability to understand the structure of GIS projects. Rather than requiring the user to manually select files for upload, the tool automatically parses QGIS project files. By searching for <datasource> tags, it identifies every shapefile and NetCDF file associated with the project, ensuring that no critical dependencies are missing from the published record.
Simultaneously, the tool addresses software reproducibility. Using the Git version control system, it identifies the exact state of the QMesh source code used for a specific mesh. This code is then published to a separate but linked repository, ensuring that the data and the software used to produce it are treated as distinct, citable objects.
Case Study: Orkney and Shetland Isles
To demonstrate the tool's efficacy in a realistic scientific context, the authors applied it to a mesh generation project for the Orkney and Shetland Isles. This complex geographical area required multiple input layers, including:
- Coastline and Engineering Geometries: Provided via shapefiles.
- Bathymetry and Mesh Metrics: Provided via NetCDF files.
The tool successfully processed these diverse inputs, generated an unstructured computational mesh, and published the entire project to Figshare. The process resulted in the generation of a DOI, allowing the dataset to be formally cited in subsequent publications.
Key Insights and Results
The primary success of this integration is the reduction of the publication process to a "push-button" action. By automating metadata assignment—such as titles, tags, and author information—based on the QGIS project properties, the tool significantly reduces the manual burden on the scientist.
The authors argue that automation is the most effective incentive for improving data sharing. When the barrier to entry is lowered to a single click within an existing workflow, researchers are far more likely to engage in open science practices.
Limitations and Future Directions
Despite the successful demonstration, several challenges remain:
- API Inconsistencies: Differences in API support across repositories (e.g., Zenodo's lack of a search API at the time of the study) can hinder full automation.
- Storage Constraints: High-fidelity meshes can exceed the free storage limits of many repositories, suggesting a need for better integration with institutional cloud solutions.
- Dependency Tracking: While the tool tracks the version of QMesh, it does not yet automatically track external dependencies like the Gmsh library. Since different versions of these libraries can produce variations in the final mesh, full reproducibility remains an ongoing goal.
Conclusion
Integrating RDM into the GIS workflow represents a significant step toward making ocean modeling more transparent and reproducible. By treating software and data as equally important citable objects and automating the publication process, this pipeline provides a practical model for open science in computational research.
Summary updated