first working version of tmin_sea