Changeset 5469
- Timestamp:
- 10/08/20 14:27:16 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/WATER_BUDGET/waterbudget.sh
r4427 r5469 6 6 #--30/11/2016 7 7 #--updated 10/05/2019 8 #--updated July 2020 => Gurvan says dOCE_vol has to be computed with rho_oce/rho_liq 8 9 9 10 #--only work for NEMO 1 degree ! mods needed for NEMO025 … … 94 95 rho_oce=1027. 95 96 #--average ratio of salty water to fresh water 96 fresh2salt=1.03597 #fresh2salt=1.035 97 98 #--conversion from /day to /s 98 99 day2sec=86400. … … 212 213 echo 'OCE vol beg =' ${OCE_vol_daybeg} >> ${fileout} 213 214 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"` 215 216 else 216 217 maxtimestep=`ncdump -h ${file_oce_mthend} | grep currently | grep -o -E '[0-9]+'` … … 219 220 echo 'OCE vol beg =' ${OCE_vol_mthbeg} >> ${fileout} 220 221 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"` 222 223 fi 223 224 echo 'These estimates of d OCE (converted to Sv) are approximate' >> ${fileout}
Note: See TracChangeset
for help on using the changeset viewer.