Opened 9 years ago

Closed 9 years ago

#430 closed defect (fixed)

Fix bug in OmA and OmB diagnostics

Reported by: Ian Culverwell Owned by: Ian Culverwell
Priority: normal Milestone: 9.0
Component: ropp_1dvar Version: 8.0
Keywords: Cc:

Description

One can sometimes find (eg attached)

*** max(omb), min(omb) =   9.99990e+07 -9.99990e+07
*** max(oma), min(oma) =   9.99990e+07 -9.99990e+07

when examining the diagnostic output variables OmB and OmA from ropp_1dvar_{bangle/refrac}. The -ropp_MDFV values presumably come from unmasked missing A (or B) values being used in the differencing.

This can probably (needs checking) be cured by replacing

  WHERE (obs % bangle > ropp_MDTV)
     diag % OmA = (obs % bangle - diag % res_bangle % bangle)
  ELSEWHERE
     diag % OmA = ropp_MDFV
  END WHERE

with

  WHERE ( (obs % bangle > ropp_MDTV) .AND. &
          (diag % res_bangle % bangle > ropp_MDTV) ) 
     diag % OmA = (obs % bangle - diag % res_bangle % bangle)
  ELSEWHERE
     diag % OmA = ropp_MDFV
  END WHERE

in ropp_1dvar_diagnostics.f90. Similarly for OmB in ropp_qc_omb.f90.

Attachments (2)

atm20120612_neut.nc (4.3 MB ) - added by Ian Culverwell 9 years ago.
atm20120612_neut.nc
test1.sh (1.5 KB ) - added by Ian Culverwell 9 years ago.
test1.sh

Change history (6)

by Ian Culverwell, 9 years ago

Attachment: atm20120612_neut.nc added

atm20120612_neut.nc

comment:1 by Ian Culverwell, 9 years ago

Yes, that seems to work. Changes

ncks -Q -H  -ddim_unlim,2 -ddim_lev1b,0 -vOmA,OmB IT-1DVAR-04_y_cntl.nc

OmA[600]=9.9999e+07 

OmB[600]=9.9999e+07

ncmax OmA IT-1DVAR-04_y_cntl.nc
9.9999e+07

ncmax OmB IT-1DVAR-04_y_cntl.nc
9.9999e+07 

to

ncks -H -Q -ddim_unlim,2 -ddim_lev1b,0 -vOmA,OmB IT-1DVAR-04_y_test1.nc

OmA[600]=-9.9999e+07 

OmB[600]=-9.9999e+07 

ncmax OmA IT-1DVAR-04_y_test1.nc
0.00444357 

ncmax OmB IT-1DVAR-04_y_test1.nc
0.00522239 

Code changes committed at r4772.

by Ian Culverwell, 9 years ago

Attachment: test1.sh added

test1.sh

comment:2 by Ian Culverwell, 9 years ago

($ROPP_ROOT/Work/ROPP9.0/ropp_1dvar/OmA/test1.sh test script attached for reference.)

comment:3 by Ian Culverwell, 9 years ago

Closing ticket.

comment:4 by Ian Culverwell, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.