if (positive != null) {
v.addAttribute(new Attribute("positive", positive));
}
if (units != null) {
AxisType axisType;
if (SimpleUnit.isCompatible("millibar", units)) {
axisType = AxisType.Pressure;
} else if (SimpleUnit.isCompatible("m", units)) {
axisType = AxisType.Height;
} else {
axisType = AxisType.GeoZ;
}
v.addAttribute(
new Attribute(
"grid_level_type",
Integer.toString(record.getLevelType1())));
v.addAttribute(new Attribute(_Coordinate.AxisType,
axisType.toString()));
v.addAttribute(new Attribute(_Coordinate.Axes, dims));
if (!hcs.isLatLon()) {
v.addAttribute(new Attribute(_Coordinate.Transforms,
hcs.getGridName()));
}