Skip to content
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

New Soil temperature tidy up #9283

Merged
merged 26 commits into from
Sep 9, 2024
Merged

Conversation

rcichota
Copy link
Contributor

@rcichota rcichota commented Sep 5, 2024

working on #4080
Several changes to tidy up the code (in general and to make integration with Crop2ML easier)

  • adding summary tags
  • deleting redundant checks
  • remove dictionary (soil properties)
  • ensure model uses value from other models directly (e.g. weather), not copies

sno036 and others added 23 commits May 21, 2024 13:27
… There is an issue with some of the simulations not running with some odd errors. Reassess after the other fixes are in.
…to SoilTemperature

# Conflicts:
#	Tests/UnderReview/SoilTemperature/SoilTemperature.apsimx
…ons and arrays, also mke them and fraction as private
…some that have APSIM equivalent (e.g. Divide)
…to SoilTemperature

# Conflicts:
#	Models/Soils/SoilTemp/SoilTemperature.cs
@rcichota
Copy link
Contributor Author

rcichota commented Sep 9, 2024

The stats are slightly different for the NZ simulation. This is because the weather data has values for wind speed, while the others don't (thus default is always used). As the diffs are small and reading the wind speed from weather data is the right thing to do, these changes can be accepted, and this Pull Request can be merged
NOTE: the sensitivity of soil temperature to wind speed should be better checked in the near future (will Talk with Val), the simulation 'InitialisingSoilCarbonPools' in the Examples folder crashes at times due to soil temperature being estimated outside bounds. That simulation uses WeatherSampler and the crash happens depending on the weather 'selection' (changing the seed). So, this might be caused by some specific value or combination of values (windy vs no wind in consecutive days). Perhaps SoilTemperature needs to apply some bounds to wind to avoid this... I will add this to the list of tasks to finish off the changes to this model for release

…l profile and surface temperature (Average, Minimum and Maximum)
/// <summary>Average soil temperature for each layer (oC)</summary>
public double[] MaximumSoilTemperature { get { return st; } }

/// <summary>Average soil temperature for soil surface (oC)</summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Daily maximum soil temperature

/// <summary>Average soil temperature for soil surface (oC)</summary>
public double AverageSoilSurfaceTemperature { get { return double.NaN; } }

/// <summary>Average soil temperature for each layer (oC)</summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Daily minimum soil temperature

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We thought about using the term "Daily" in the name, but it would make it long, and Dean remarks that all variables in APSIM are on a daily basis... I will correct the info in the summary tag in the next commit...

@hol353 hol353 merged commit f5d3420 into APSIMInitiative:master Sep 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants