-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
i.albedo: Add test file #5402
base: main
Are you sure you want to change the base?
i.albedo: Add test file #5402
Conversation
@@ -0,0 +1,164 @@ | |||
from grass.script import core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard way is
import grass.script as gs
flags="l", | ||
overwrite=True, | ||
) | ||
stats = core.parse_command("r.info", map=self.output_raster, flags="r") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use format=json
and then you don't need to convert to float
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.univar below is the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback. I have fixed the code.
This PR introduces a test suite for the i.albedo GRASS GIS module, focusing on various scenarios such as sensor-specific albedo calculations, output range validation, aggressive mode processing, and linear reflectance scaling.
Key updates in this PR include:
Functionality:
Linearity Test and Landsat Aggressive Mode:
Test Case Additions: