Looking at it now.. something odd is happening with the helium / hydrogen average, at least in some of the boxels... How is the average being calculated? An example of a problem boxel is Wepooe EA-A e, where the average is lower than both the maximum and the minimum.
OK, I think what's happening here is that there are planets that lack these elements, and so in the database I have "null". The average adds these in as zeroes, but the "min" value looks for something "defined" (that is, a true zero is OK, but not null). That's clearly confusing. I probably should skip planets with no values for those elements.That's strange. Probably a stupid typo in the code, or something, or referencing the wrong variable. I'll look.