first attempt at joining and binning by depth. and fixed problem with biological time (POSIX was saved in local computer time, not UTC time)