public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) {
        // @code
        String udunits = dataVar.getUnitsString();
        if (udunits == null) {  // Variable may not have a "units" attribute.
            return null;
        }

        String ucum = ErddapEDUnits.udunitsToUcum(udunits);
        uom.setCode(ucum);

        return uom;
    }
public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) {
        
        String udunits = dataVar.getUnitsString();
        if (udunits == null) {  
            return null;
        }

        String ucum = ErddapEDUnits.udunitsToUcum(udunits);
        uom.setCode(ucum);

        return uom;
    }
public static UnitReference initUom ( UnitReference uom , VariableSimpleIF dataVar ) { // @code String udunits = dataVar . getUnitsString ( ) ; if ( udunits == null ) { // Variable may not have a "units" attribute. return null ; } String ucum = ErddapEDUnits . udunitsToUcum ( udunits ) ; uom . setCode ( ucum ) ; return uom ; }
wml2:defaultPointMetadata/wml2:DefaultTVPMeasurementMetadata/wml2:uom
wml2 : defaultPointMetadata / wml2 : DefaultTVPMeasurementMetadata / wml2 : uom