Notes:
#I'm no longer dating the output files
#"I" is greater here just to ensure a better resolution truth. Since the output is a grid, it shouldn't matter what I we generate with. We'll need to scale the fitted thickness indeces up a bit though, if we want to compare against the true thicknesses.
#resSquare sets the resolution of the grid. resSquare<-100 gives a 100x100 resolution grid.