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.
I'm proposing using the skipping boundary crossings in x and y as our compression algorithm over the previous manual one. Skipping boundary crossings in x and y works to "compress" the tilted field as the number of layers out is always equal to the number in. Rather than merge vertical layers from the top down, we only record values and create new path segments when a z boundary is crossed. This distributes the compression randomly throughout the column rather than starting at the top.
The key change is here:
It would skip the boundary crossings and values for the pixels highlighted. Those segments still count toward the path length of the previous value.
I was motivated to look into this after than errors we saw in the aerosol PR:

Now, with this change we don't have higher percent differences with the 3D direct surface field for some solar zenith angles:

In fact, the simplified TICA has lower errors overall for runs with and without aerosols. It also has the added benefits of:
Finally, the simplified TICA can be run for theta greater than 70 degrees, but percent absolute errors increase dramatically after ~75 degrees:
