ESCOMP / CMEPS

NUOPC Community Mediator for Earth Prediction Systems
https://escomp.github.io/CMEPS/
24 stars 79 forks source link

Improve the NET SALT Budget table in diags.log #367

Closed gustavo-marques closed 1 year ago

gustavo-marques commented 1 year ago

The values in the table do not have enough precision to provide useful information. Here is an example: image

Possible solution is to write these values using exponential format (e.g., -3.8234056 E-8).

gustavo-marques commented 1 year ago

Looks like I do not have permission to select "Assignees". CC'ing @mvertens and @jedwards4b

jedwards4b commented 1 year ago

@gustavo-marques can you recommend a short test case to look at this?

gustavo-marques commented 1 year ago

A test using --res f09_t061 --compset B1850MOM

and with

STOP_N: 1
STOP_OPTION: months

Should be enough to test this.

jedwards4b commented 1 year ago

I wonder if it would be better to change the units from kg/m2s to Gg/m2s ( 10^9) or Mg/m2s (10^6) ?

jedwards4b commented 1 year ago

How does this look?

(med_diag_print_summary) NET HEAT BUDGET (W/m2): period =    daily: date =     10106     0
                           atm            lnd            rof            ocn         ice nh         ice sh            glc        *SUM*  
    hfreeze          0.00000000     0.00000000     0.00000000     0.07946875    -0.07597372    -0.00349502     0.00000000    -0.00000000
    hmelt            0.00000000     0.00000000     0.00000000    -5.69402385     0.64188891     5.05213494     0.00000000    -0.00000000
    hnetsw        -149.99943310    32.11437108     0.00000000     0.00000000     0.01324774     1.94948549     0.00000000  -115.92232879
    hlwdn         -337.50420952    83.73268349     0.00000000   237.89444768     4.67110400    11.22864443     0.00000000     0.02267008
    hlwup          386.54463061  -101.81999874     0.00000000  -267.49705718    -5.58333464   -11.64619039     0.00000000    -0.00195034
    hlatvap         72.41913021    -8.59456752     0.00000000   -63.54881945    -0.05878422    -0.21780723     0.00000000    -0.00084821
    hlatfus          1.00749005    -0.46762857     0.00000000    -0.30156791    -0.05134075    -0.19039293     0.00000000    -0.00344010
    hiroff           0.00000000     0.01809130    -0.00000000    -0.01864752     0.00000000     0.00000000     0.00000000    -0.00055623
    hsen            18.41464366    -6.75594812     0.00000000   -11.21335730    -0.23111429     0.13383742     0.00000000     0.34806137
    hrain            0.00000000     0.00000000     0.00000000     1.85344826     0.00000000     0.00000000     0.00000000     1.85344826
    hsnow            0.00000000     0.00000000     0.00000000    -0.00041958     0.00000000     0.00000000     0.00000000    -0.00041958
    hevap            0.00000000     0.00000000     0.00000000    -2.26006419     0.00000000     0.00000000     0.00000000    -2.26006419
    hcond            0.00000000     0.00000000     0.00000000     0.00817099     0.00000000     0.00000000     0.00000000     0.00817099
    hrofl            0.00000000     0.00000000     0.00000000     0.04825007     0.00000000     0.00000000     0.00000000     0.04825007
    hrofi            0.00000000     0.00000000     0.00000000    -0.00031835     0.00000000     0.00000000     0.00000000    -0.00031835
           *SUM*    -9.11774809    -1.77299708    -0.00000000  -110.65048959    -0.67430696     6.30621671     0.00000000  -115.90932502

(med_diag_print_summary) NET WATER BUDGET (kg/m2s*1e6): period =    daily: date =     10106     0
                           atm            lnd            rof            ocn         ice nh         ice sh            glc        *SUM*  
    wmelt            0.00000000     0.00000000     0.00000000    13.52507873     1.93562258   -15.46070130     0.00000000     0.00000000
    wrain          -27.50917295     6.33316607     0.00000000    20.76547226     0.01543029     0.38119572     0.00000000    -0.01390862
    wsnow           -3.01914909     1.40134423     0.00000000     0.90370964     0.15385301     0.57055119     0.00000000     0.01030897
    wevap           28.93644878    -3.42990159     0.00000000   -25.40936404    -0.02076856    -0.07673256     0.00000000    -0.00031797
    wrunoff          0.00000000    -2.92015965     2.28309726     0.63524113     0.00000000     0.00000000     0.00000000    -0.00182126
    wfrzrof          0.00000000    -0.05421426     0.00000000     0.05588110     0.00000000     0.00000000     0.00000000     0.00166684
           *SUM*    -1.59187326     1.33023479     2.28309726    10.47601882     2.08413731   -14.58568697     0.00000000    -0.00407204

(med_diag_print_summary) NET SALT BUDGET (kg/m2s): period =    daily: date =     10106     0
                              atm               lnd               rof               ocn            ice nh            ice sh               glc           *SUM*  
    saltf            0.0000000         0.0000000         0.0000000       -0.89694365E-06   -0.66093672E-07    0.96303732E-06     0.0000000         0.0000000    
           *SUM*     0.0000000         0.0000000         0.0000000       -0.89694365E-06   -0.66093672E-07    0.96303732E-06     0.0000000         0.0000000    
gustavo-marques commented 1 year ago

Looks great. Thanks, Jim! I think we should keep kg/m2s.