public static float convertPressureUnitIndexToFactor(int index) {
       switch (index) {
            case 0: 
                return HPA;
            case 1:
                return KPA;
            case 2:
                return PSI;
            case 3:
                return BAR;
            case 4:
                return MILLIBAR; 
            case 5:
                return ATM; 
            default:
                return HPA;
        } 
    }