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

add a mini filter: h5z-clamp, with a filter ID of 45678 #11

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

shaomeng
Copy link
Collaborator

@shaomeng shaomeng commented Mar 3, 2025

Filter h5z-clamp does not do anything during compression, and does only one thing during decompression: it clamps any negative value to 0.0. This filter is using an ID of 45678 right now.

Example:

  • nccopy -F "VAR1,45678|32028,2690908160u" <wrf_in> <wrf_out>

Here VAR1 is filtered by h5z-clamp first, then by h5z-sperr second, during compression. In reality h5z-clamp did nothing.
During decompression, h5z-sperr reconstructs all values of the variable, and then any negative ones are filtered to be 0.0 by h5z-clamp.

@shaomeng shaomeng merged commit c07099a into NCAR:main Mar 4, 2025
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.

1 participant