waterml/src/main/java/ucar/nc2/ogc/waterml/NcMeasureType.java
public static MeasureType initValue(MeasureType value, PointFeature pointFeat, VariableSimpleIF dataVar)
            throws IOException {
        // TEXT
        StructureMembers.Member firstDataMember = pointFeat.getDataAll().findMember(dataVar.getShortName());
        assert firstDataMember != null : String.format(
                "%s appeared in the list of data variables but not in the StructureData.", dataVar.getShortName());

        Array dataArray = pointFeat.getDataAll().getArray(firstDataMember);
        assert dataArray.getSize() == 1 : String.format("Expected array to be scalar, but its shape was %s.",
                Arrays.toString(dataArray.getShape()));

        double dataVal = dataArray.getDouble(0);
        value.setDoubleValue(dataVal);

        return value;
    }
public static MeasureType initValue(MeasureType value, PointFeature pointFeat, VariableSimpleIF dataVar)
            throws IOException {
        // TEXT
        StructureMembers.Member firstDataMember = pointFeat.getDataAll().findMember(dataVar.getShortName());
        assert firstDataMember != null : String.format(
                "%s appeared in the list of data variables but not in the StructureData.", dataVar.getShortName());

        Array dataArray = pointFeat.getDataAll().getArray(firstDataMember);
        assert dataArray.getSize() == 1 : String.format("Expected array to be scalar, but its shape was %s.",
                Arrays.toString(dataArray.getShape()));

        double dataVal = dataArray.getDouble(0);
        value.setDoubleValue(dataVal);

        return value;
    }
wml2:MeasurementTVP/wml2:value