cdm/src/main/java/ucar/nc2/NetcdfFile.java
public void writeNcML(java.io.OutputStream os, String uri) throws IOException {
    NcMLWriter ncmlWriter = new NcMLWriter();
    Element netcdfElem = ncmlWriter.makeNetcdfElement(this, uri);
    ncmlWriter.writeToStream(netcdfElem, os);
  }
public void writeNcML(java.io.OutputStream os, String uri) throws IOException {
    NcMLWriter ncmlWriter = new NcMLWriter();
    Element netcdfElem = ncmlWriter.makeNetcdfElement(this, uri);
    ncmlWriter.writeToStream(netcdfElem, os);
  }
Write the NcML representation: dont show coodinate values

@param os  : write to this OutputStream. Will be closed at end of the method.
@param uri use this for the url attribute; if null use getLocation(). // ??
@throws IOException if error
@see NcMLWriter#writeToStream