diff --git a/CHANGELOG.md b/CHANGELOG.md index 240d5d83..f7ed8477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed bug in ASCAT EUMET soil moisture obs reader. - Fixed Restart=1 when the domain is not global. ### Removed diff --git a/GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90 b/GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90 index 67aa07fe..3d412a45 100644 --- a/GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90 +++ b/GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90 @@ -1951,8 +1951,8 @@ subroutine read_obs_sm_ASCAT_EUMET( & date_time_tmp%sec = int(tmp_data(kk, 6)) ! skip if record outside of current assim window - if ( datetime_lt_refdatetime( date_time_tmp, date_time_low ) .and. & - datetime_le_refdatetime( date_time_up, date_time_tmp ) ) cycle + if ( datetime_lt_refdatetime( date_time_tmp, date_time_low ) .or. & ! obs is before start of assim window *or* + datetime_le_refdatetime( date_time_up, date_time_tmp ) ) cycle ! obs is after end of assim window ! skip if record contains invalid soil moisture value if ( tmp_data(kk, 7) > 100. .or. tmp_data(kk, 7) < 0. ) cycle