The code is now successful in the calculating of FSLE for only one snapshot.