Changeset 5469


Ignore:
Timestamp:
10/08/20 14:27:16 (4 years ago)
Author:
oboucher
Message:

change of rho according to Gurvan's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/WATER_BUDGET/waterbudget.sh

    r4427 r5469  
    66#--30/11/2016 
    77#--updated 10/05/2019 
     8#--updated July 2020 => Gurvan says dOCE_vol has to be computed with rho_oce/rho_liq 
    89 
    910#--only work for NEMO 1 degree ! mods needed for NEMO025 
     
    9495rho_oce=1027. 
    9596#--average ratio of salty water to fresh water 
    96 fresh2salt=1.035 
     97#fresh2salt=1.035 
    9798#--conversion from /day to /s  
    9899day2sec=86400. 
     
    212213  echo 'OCE vol beg =' ${OCE_vol_daybeg} >> ${fileout} 
    213214  echo 'OCE vol end =' ${OCE_vol_dayend} >> ${fileout} 
    214   dOCE_vol=`python -c "print (${OCE_vol_dayend}-${OCE_vol_daybeg})/${nbyear}/${nbdayinyr}/${day2sec}/1.e6"` 
     215  dOCE_vol=`python -c "print  ${rho_oce}/${rho_liq}*(${OCE_vol_dayend}-${OCE_vol_daybeg})/${nbyear}/${nbdayinyr}/${day2sec}/1.e6"` 
    215216else 
    216217  maxtimestep=`ncdump -h ${file_oce_mthend} | grep currently | grep -o -E '[0-9]+'` 
     
    219220  echo 'OCE vol beg =' ${OCE_vol_mthbeg} >> ${fileout} 
    220221  echo 'OCE vol end =' ${OCE_vol_mthend} >> ${fileout} 
    221   dOCE_vol=`python -c "print (${OCE_vol_mthend}-${OCE_vol_mthbeg})/${nbyear}/${nbdayinyr}/${day2sec}/1.e6"` 
     222  dOCE_vol=`python -c "print  ${rho_oce}/${rho_liq}*(${OCE_vol_mthend}-${OCE_vol_mthbeg})/${nbyear}/${nbdayinyr}/${day2sec}/1.e6"` 
    222223fi 
    223224echo 'These estimates of d OCE (converted to Sv) are approximate'  >> ${fileout} 
Note: See TracChangeset for help on using the changeset viewer.