Raw data and source code for: A full-scale climate model of the Chinese solar greenhouse

Published: 14 May 2026| Version 2 | DOI: 10.17632/x67mw8fwd2.2
Contributors:
Weituo Sun, Chungui Lu, Anne Coules, Xiaoming Wei, Wengang Zheng

Description

This dataset provides the experimental data and MATLAB source code for the manuscript ‘A full-scale climate model of the Chinese solar greenhouse’ by Weituo Sun, Chungui Lu, Anne Coules, Xiaoming Wei, and Wengang Zheng. The data support model validation, and the code package implements the process-based dynamic climate model for a standard Chinese solar greenhouse (CSG). This sharing facilitates model reproducibility, code reuse, and further development of greenhouse climate modelling and model-based control approaches. 1. Data Two Excel files, ‘ClimateCropControl_Exp_v1.xlsx’ and ‘ClimateCropControl_Exp_v2.xlsx’, are included. They correspond to the two experiments reported in the manuscript. Exp_v1 is a warm-season CSG lettuce cultivation experiment from 9 April to 14 May 2020 over 35 days. Exp_v2 is a cold-season CSG lettuce cultivation experiment from 30 January to 16 March 2022 over 45 days. Each Excel file contains four worksheets: ‘Outdoor climate’ provides outdoor CO2 concentration, air temperature, relative humidity, shortwave radiation, and wind speed. ‘Controls’ provides thermal blanket position, roof vent opening, and side vent opening. ‘Lettuce growth summary_Sim’ provides crop state variables, mainly crop dry weight and leaf area index. ‘Greenhouse climate’ provides measured indoor CO2 concentration, air temperature, relative humidity, and shortwave radiation, which are used for model validation only and are not included as model inputs. Climate and control data are recorded at 5-min intervals, and crop states at 5-day intervals. 2. Code The code package includes the main program, model functions, parameter file, plotting scripts, input data file, output folder, and user guide. It is configured to run the Exp_v2 case by default. The main program reads the input data, loads model parameters, solves the state equations, plots simulated and measured curves of the four indoor climate variables, calculates RMSE and RRMSE, and saves the workspace. The data/ folder contains the Excel input file. The functions/, parameters/, and plotting/ folders contain the model functions, parameter definitions, and optional post-processing scripts, respectively. The results/ folder stores the workspace file generated after model simulation. The built-in ‘ode45’ solver is used to solve the differential equations. The Optimization Toolbox is required because ‘fsolve’ is used to solve the algebraic energy balance equations for roof surface temperatures. To reproduce the default case, run the main program, and then run the optional plotting scripts when needed. To apply the program to other greenhouse scenarios, users should revise the input data, greenhouse-dependent parameters, crop parameters and functions, time settings, local apparent solar time, or initial state values as needed. Detailed instructions are provided in ‘User Guide for the CSG Climate Model Code’, which is included in the code package.

Files

Steps to reproduce

See ‘User Guide for the CSG Climate Model Code’ included in the attached code package.

Categories

Horticulture, Agricultural Engineering, Building Simulation, Greenhouse

Funders

Licence