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

@param writer : write to this Writer, should have encoding of UTF-8 if applicable. 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#writeToWriter
Write the NcML representation : dont show coodinate values