fix makeshorelinedf so it deals with swapped dimension; use time var instead of "year"; remove unused variable