You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importxarrayasxrimportnumpyasnpimportsysinfile=sys.argv[1]
anl=xr.open_dataset('anl_'+infile)
rhos=330.0cp_ice=2106.c1=1.0Lsub=2.835e6Lvap=2.501e6Lfresh=Lsub-Lvaprnslyr=1.0puny=1.0E-012# icepack formulate for snow temperatureA=c1/ (rhos*cp_ice)
B=Lfresh/cp_icezTsn=A*anl['qsno001'][:].values+B# icepack formula for max snow tempatureTmax=-anl['qsno001'][:].values*puny*rnslyr/(rhos*cp_ice*anl['vsnon'][:].values)
# enthlap at max now tempetarureQmax=rhos*cp_ice*(Tmax-Lfresh/cp_ice)
# fill in new enthalpy where snow temperature is too highnewq=np.where(zTsn<=Tmax,anl['qsno001'][:].values,Qmax)
newf=np.where(anl['vicen'] >0.00001,anl['aicen'][:].values,0.0)
# fill in snow enthalpy (0) where there is no snownewq2=np.where(anl['vsnon'][:]==0.0,anl['qsno001'][:].values,newq)
anl['qsno001'][:]=newq2anl['aicen'][:]=newf# write out fileanl.to_netcdf(infile)
The above features need to be added to the soca2cice var change.
The text was updated successfully, but these errors were encountered:
Description
There are a few more cases for which the CICE model forecast becomes unstable.
Solution
Something needs to be done about snow enthalpy and small sea-ice concentration values.
Solution from Philip Pegion:
The above features need to be added to the
soca2cice
var change.The text was updated successfully, but these errors were encountered: