add new routines for calculating the apparent optical depth