NCAR / DART

Data Assimilation Research Testbed
https://dart.ucar.edu/
Apache License 2.0
189 stars 142 forks source link

do not allow convert_all_obs_verticals_first to be false #427

Closed nancycollins closed 1 year ago

nancycollins commented 1 year ago

drop support for letting get_close do lazy vertical conversion on observations. test if this namelist item is false and error out. the default is true so users setting this to false seems unlikely. but it shouldn't be left there because it results in wrong DART QCs in the output file. eventually this option should be deprecated and removed from the namelist.

Description:

add a check for a user setting this namelist false and error out with a message.

Fixes issue

426

Types of changes

Documentation changes needed?

Tests

set convert_all_obs_verticals_first to false in the namelist and run filter on anything.

Checklist for merging

Checklist for release

Testing Datasets

hkershaw-brown commented 1 year ago

closing this, I don't think this is a settled issue about the correct thing to do here.

Here was the code change: ~line 295

is_doing_vertical_conversion = (has_vertical_choice() .and. vertical_localization_on())

! this option is deprecated and will be removed in some future release.
if (.not. convert_all_obs_verticals_first) then
   call error_handler(E_ERR,'assim_tools_init:', &
                      'namelist item "convert_all_obs_verticals_first" is deprecated and will be removed in a future release', &
                      source, &
                      text2='it must have a value of .true. or be removed from the &assim_tools_nml namelist')

endif

call log_namelist_selections(num_special_cutoff, cache_override)

Screen Shot 2024-01-04 at 10 01 41 AM