STEP 1: Gather the required parameters which include critical depth for stretching (), stretching curve at RHO-points (), sea surface height at RHO-points (ζ), seafloor depth at RHO-points (H), surface stretching parameter (), bottom stretching parameter () and number of vertical levels (...