Deriving an emulation model of a rectangular-basin two-layer numerical model