Fix mom6 get close state #976
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.
Description:
fix index passed to below sea floor
fix: dist calculation only after call to convert_vertical_state
Cannot assume convert_all_state_verticals_first is set to true assim_tools_mod
and even if you are doing horizonal distance only for localization, still need
to convert the state location to m to check against the depth of the ocean floor
in m.
Fixes issue
fixes #973
Types of changes
Documentation changes needed?
Tests
Please describe any tests you ran to verify your changes.
Ran filter with 1 obs and 1 for the increment (⚠️ not this is not commited to the branch) to make spheres (with vertical localization on) or cylinders (for horizontal localization only). Using z* case. The plots are (output_to_filter.nc - input_to_filter.nc
Checklist for merging
Checklist for release
Testing Datasets