private double GetTemperatureSOIRange(MapSelector sh, int index)
{
double retval = index;
if (sh.MapData != null)
{
if (sh.MapData.Length > index)
{
retval = (Convert.ToDouble(sh.MapData.GetValue(index)) * 0.1) - 273.1;
}
}
return Math.Round(retval, 0);
}