Nearly there!

Not tested!!! Does most of the Wang correction, but it still needs to save the output file, and it would probably be nice not to require TOA rad filenames etc (these can be calculated on the fly by the program, so you only use the DN data files from USGS). Also, need to calculate reflectance, but can't find fresnel water reflectance numbers. Might find some numbers here: Carder, K. L., Reinersman, P., Chen, R. F., Muller-Karger, F., Davis, C. O., & Hamilton, M. (1993). AVIRIS calibration and application in coastal oceanic environments. Remote Sensing of Environment, 44, pp. 205 -216