public void makeNetCDF() throws IOException, InvalidRangeException {
String helloGreek = makeString(helloGreekCode, true);
helloGreek = "";
System.out.println("normalized= "+showString(helloGreek));
String filename = "C:/data/unicode/helloNorm.nc";
NetcdfFileWriter ncfile = NetcdfFileWriter.createNew(filename, true);
ucar.nc2.Dimension dim = ncfile.addDimension(helloGreek, 20);
ncfile.addVariable(helloGreek, DataType.CHAR, helloGreek);
ncfile.addVariableAttribute(helloGreek, "units", helloGreek);
ncfile.create();
ArrayChar.D1 data = new ArrayChar.D1(dim.getLength());
data.setString(helloGreek);
ncfile.write(helloGreek, data);
ncfile.close();
NetcdfFile nc = NetcdfFile.open(filename);
Variable v = ncfile.findVariable(helloGreek);
assert v != null;
assert v.getShortName().equals(helloGreek);
Attribute att = v.findAttribute("units");
assert att != null;
assert att.isString();
assert(helloGreek.equals(att.getStringValue()));
nc.close();
}