i.evapo.pm: Add test file #5547
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a regression test suite for the i.evapo.pm module in GRASS GIS. The tests verify that the module correctly computes potential evapotranspiration (ET) using the hourly Penman‐Monteith method. The test suite checks for proper handling of flag options and input parameter dependencies, ensuring robust and reliable ET estimation.
Key Updates in This PR
Functionality:
Validates that the module returns expected univariate statistics for standard inputs while correctly handling special cases. This includes testing that default ET outputs (which may include negative values) are correctly computed and that the -z flag clamps negative values to zero, as well as verifying that the -n flag produces lower ET outputs during night-time conditions.
Ensures that the ET output responds appropriately to changes in input parameters. Specifically, tests confirm that higher net radiation inputs yield higher ET values, while lower relative humidity (drier air) produces higher ET output.
Checks that the ET output scales approximately linearly with varying net radiation values, ensuring that the output for intermediate net radiation closely approximates the average outputs of lower and higher net radiation inputs.
Test Case Additions: