Hi Carole,
The code you posted might actually help a lot, in fact! And I think that modifying the source code might also potentially help with what we're hoping to do, but first, I had some questions regarding your description of the process used for the paper, as it contradicts my previous understanding of the process/methods involved, so I wanted to ask about that in order to make sure the problem isn't arising in my misunderstanding of the Gardner Method's appropriate implementation itself.
As I'd understood it, the Gardner method uses the following equations to determine Rd (this is the two-layer form described in the paper we discussed, but the essentials remain the same) - Wn being the weight of the n'th photon, with
Di;n being the pathlength (through layer i), and
Xn being the net displacement, with the diffuse reflectance being the sum of those photon weights averaged by the total number of photons I spoke to Syeda and received some files, including infiles that appear to have been, at the very least, templates for their work on this, but the infiles used ROfFx. As I understand it, for what you're saying to function as a means of testing the Gardner method, they would have had to use ROfRho in order to know/account for displacement.
![Gardner.PNG](https://groups.google.com/group/virtual-photonics/attach/bcd2403f88bc/Gardner.PNG?part=0.1&view=1)
If you'd be open to meeting over Zoom or similar to discuss this more easily, with the potential for me to demonstrate more directly what I'm referring to, I would appreciate it! If you don't have the time or need to spend your energy on other things, that's totally understandable too.
Thank you very much,
Daemon