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

fix: bug fix for obs_sort_module.F90. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/obs_sort_module.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3155,15 +3155,17 @@ SUBROUTINE output_obs ( obs , unit , file_name , num_obs , out_opt, forinput, &
!ob itself is written Obsgrid may not find any valid obs to write and
!thus we have an ob header without any actual obs. An ob of this format
!in the OBS_DOMAIN* file will cause WRF obs nudging to crash
IF((.NOT. is_sounding) .AND. &
(.NOT. eps_equal(next%meas%height%data, obs(i)%info%elevation, 1.))) THEN
obs(i)%info%discard = .TRUE.
PRINT '(A,A,A,A,F12.2,A,F12.2,A,A,A,A)','WARNING: Ob indicates is_sounding=.FALSE. ',&
'but the ob height does ',&
'not match the station elevation. This ob will be omitted since Obsgrid assumes ',&
'is_sounding=.FALSE. indicates a surface ob. Height = ', next%meas%height%data, &
', Elevation = ', obs(i)%info%elevation,', Ob ID = ',TRIM(ADJUSTL(obs(i)%location%id)),&
', Ob Time = ', obs(i)%valid_time%date_char
IF (ASSOCIATED (next)) THEN
IF((.NOT. is_sounding) .AND. &
(.NOT. eps_equal(next%meas%height%data, obs(i)%info%elevation, 1.))) THEN
obs(i)%info%discard = .TRUE.
PRINT '(A,A,A,A,F12.2,A,F12.2,A,A,A,A)','WARNING: Ob indicates is_sounding=.FALSE. ',&
'but the ob height does ',&
'not match the station elevation. This ob will be omitted since Obsgrid assumes ',&
'is_sounding=.FALSE. indicates a surface ob. Height = ', next%meas%height%data, &
', Elevation = ', obs(i)%info%elevation,', Ob ID = ',TRIM(ADJUSTL(obs(i)%location%id)),&
', Ob Time = ', obs(i)%valid_time%date_char
ENDIF
ENDIF

!BPR END
Expand Down