We are trying to use PDR Toobox to model the PDR of high-z galaxies using observations of the galaxies' OI145, CII, and FIR. However we've run into an issue when use "LineRatioFit". With these observables there often to minimums in chi-squared in the G and n plan, with a lower G high n option often being unphysical. When we attempt to moddel the observables, "LineRatioFit" returns best fit values that fall neight on the high G, low n solution nor the low G, high n solution. But a combination of both.
Here is an example. We start with the following measurements:
After running the line ratio fit with least squares method, we get the following results.
Graphing this results, we see that LineRatioFit as selected the density from the high G solution, and the radiation field form the low G solution . . . which doesn't follow on the observed mesurements!
If we use the emcee method we get the same result. What is strange, is if we plot the chi-squared map, it correctly gives the best fit value as the high G, low n solution
Is there a way to limit the G and n range so LineRatioFit reports the correct best fit result?