Error in index retrieval for Harris Priester model
Hello,
it seems to me that there is a mistake in the search of the altitude index in the density table for the Harris Priester model.
// Search altitude index in density table int ia = 0; while (ia < tabAltRho.length - 2 && posAlt > tabAltRho[ia][0]) { ia++; }
In the while loop, the posAlt should be compared to tabAltRho[ia+1][0] if we expect the satAlt to be between tabAltRho[ia][0] and tabAltRho[ia+1][0].
(from redmine: issue id 152, created on 2013-11-15, closed on 2013-11-15)