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

make clear obs_window_seconds and obs_window_days are unsupported #525

Closed
wants to merge 1 commit into from

Conversation

nancycollins
Copy link
Collaborator

Description

both filter and perfect_model_obs have obs_window_days and obs_window_seconds in their namelists. these are for future use and are currently unsupported. update the docs to be more clear about this and update the code to print out a warning message if they are changed to be >= 0.

also check both the days and seconds values for obs_window_xxx and also init_time_xxx. if either are >= 0, call set_time(). that will catch and print a fatal error if one is set and the other is left at -1. the old code only tested days, so if someone set seconds >= 0 but left days negative the init time would have been set to 0, 0 and the namelist values wouldn't have been used without any message.

Fixes issue

#520

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

I ran Lorenz 96 pmo and filter with various combinations of values in the namelist for both init_time_xxx and obs_window_xxx and it gave me the results i expected.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

…ported

both filter and perfect_model_obs have obs_window_days and obs_window_seconds
in their namelists.  these are for future use and currently unsupported.  update
the docs to be more clear about this and update the code to print out a warning
message if they are changed to be >= 0.

also check both the days and seconds values for obs_window_xxx and also
init_time_xxx.  if either are >= 0, call set_time().
that will catch and print a fatal error if one is set and the other is left at -1.
with the old code, if someone set seconds >= 0 but left days negative, the init
time would have been set to 0, 0 and the namelist values wouldn't be used.
@hkershaw-brown
Copy link
Member

hkershaw-brown commented Sep 6, 2023

closing,

if you need to get the branch:
https://github.com/hkershaw-brown/DART/tree/obs_window_fix

@hkershaw-brown hkershaw-brown deleted the obs_window_fix branch January 4, 2024 14:43
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