!Find the maximum concentration of phy (excluding the accumulation in the bottom layer; k=6:80)
let max_phy=phy[k=6:80@max]
!plot max_phy
!frame/file=phy_concentration_SCM.gif
!Phy concentration normalized (between 0 and 1). To assess the presence of a SCM, it could be usefull to normalized phy in order to remove the effect of changes in the concentration troughout the season.
let norm_phy=phy/max_phy
!Determination of the depth of the SCM.
let depth_SCM=norm_phy[k=1:80@loc:1]
!plot depth_SCM
!frame/file=depth_SCM.gif
!Determination of the nitracline.
let d_nit=nit[k=1:80@ddc]
let nitracline=d_nit[k=40:80@loc:-0.02]
!The centered derivative of normalized phy (excluding the accumulation in the bottom layer; k=6:80@ddc).
let d_norm_phy=norm_phy[k=6:80@ddc]
!Absolute values of d_norm_phy. To avoid "s" profiles.