-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code comments #11
Comments
Dear @jrising, Thanks for reviewing the code! We've made modifications based on your feedback and have also provided more detailed responses to some of your comments:
Thank you for your comment. We use 30 as a divisor because the model operates at a monthly temporal resolution. The final planting and harvesting months are determined by rounding up the computed value using the
Thank you for your suggestion. We see the benefit of encoding this in the data file to reduce errors. However, our goal is to keep the data in its raw form while providing the processing codes for transparency. If this part were embedded in the data file, it wouldn’t be as clear for users to check the code. Additionally, the processing behaves differently depending on the selected crops. To improve clarity, we’ve cleaned up the crop calendar and moved the exception-handling code into a separate function.
Thank you for your question. The aggregate nature of the yield data at the country level limits our ability to separately analyze the impacts of climate change on irrigated versus rainfed crops. We use rainfed-land-weighted climate data because rainfed crops are directly dependent on precipitation and temperature, making them more sensitive to climate variability than irrigated crops, which have more stable water availability. By incorporating rainfed land-weighted precipitation and temperature, the model better captures yield responses to changing climate conditions in historical periods. To ensure consistency, future climate projections also use rainfed land-weighted climate to project yield shocks.
Thank you for your insightful comment. Gaia is designed to operate at the country level for several reasons. First, it is intended to support global integrated assessment modeling, which typically relies on coarser spatial resolutions, such as country and regional scales. Additionally, the availability of global crop yield data imposes constraints; for example, FAOSTAT provides yield data at the country level, which is essential for gaia's empirical model fitting. |
openjournals/joss-reviews#7538
Comments on code in
R
:gaia/R/crop_calendars.R
Line 26 in f4a0e78
gaia/R/crop_calendars.R
Line 47 in f4a0e78
gaia/R/data_aggregation.R
Line 29 in f4a0e78
gaia/R/data_aggregation.R
Line 51 in f4a0e78
gaia/R/weighted_climate.R
Line 98 in f4a0e78
gaia/R/yield_impacts_functions.R
Line 439 in f4a0e78
The text was updated successfully, but these errors were encountered: