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

Fixed issues with mrf chopping and moving #76

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Fixed issues with mrf chopping and moving #76

merged 1 commit into from
Sep 26, 2024

Conversation

jackiryan
Copy link
Collaborator

  • Fixed various indexing bugs associated with mrf_insert
  • Before merging, I still need to conduct functional tests across a variety of data types and layers that we currently produce, such as PREFIRE, corrected reflectance, and others.

<< "In " << in_img.bbox << endl;
}

// Tolerance of 1/2 of an output pixel
Copy link
Member

Choose a reason for hiding this comment

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

What does this tolerance refer to?

CPLError(CE_Failure, CPLE_AppDefined, "Input patch outside of target");
throw 2;
}

// Get the first band, which always exists, use it to collect some info
// tolerance of 1/1000 of the resolution
Copy link
Member

Choose a reason for hiding this comment

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

And what does this tolerance refer to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This tolerance is the tolerance used to determine if the edge of a granule should disqualify it from inclusion in an MRF. The tolerance was too tight previously, slight reprojection or downsampling changes could cause an entire row of data to be excluded for extending to, for example, 90.01 degrees latitude.

@jackiryan
Copy link
Collaborator Author

Merging this PR with "failing" unit tests in the onearth repository as our investigation has determined that the raster discrepancies are acceptable and expected.

@jackiryan jackiryan merged commit 7463d93 into master Sep 26, 2024
1 check 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.

2 participants