Ejemplo n.º 1
0
 static double getValue(CompoundData compoundData, String name) throws IOException {
   CompoundType type = compoundData.getType();
   int memberIndex = type.getMemberIndex(name);
   double v = compoundData.getDouble(memberIndex);
   double scalingFactor = getScalingFactor(type.getMember(memberIndex));
   return v * scalingFactor;
 }