first version of tmin_sea