cdm/src/main/java/ucar/nc2/NetcdfFile.java
public String toNcML(String url) throws IOException {
    NcMLWriter ncmlWriter = new NcMLWriter();
    ncmlWriter.setWriteVariablesPredicate(NcMLWriter.writeNoVariablesPredicate);

    Element netcdfElement = ncmlWriter.makeNetcdfElement(this, url);
    return ncmlWriter.writeToString(netcdfElement);
  }
public String toNcML(String url) throws IOException {
    NcMLWriter ncmlWriter = new NcMLWriter();
    ncmlWriter.setWriteVariablesPredicate(NcMLWriter.writeNoVariablesPredicate);

    Element netcdfElement = ncmlWriter.makeNetcdfElement(this, url);
    return ncmlWriter.writeToString(netcdfElement);
  }
public String toNcML ( String url ) throws IOException { NcMLWriter ncmlWriter = new NcMLWriter ( ) ; ncmlWriter . setWriteVariablesPredicate ( NcMLWriter . writeNoVariablesPredicate ) ; Element netcdfElement = ncmlWriter . makeNetcdfElement ( this , url ) ; return ncmlWriter . writeToString ( netcdfElement ) ; }
CDL representation of Netcdf header info, non strict
CDL representation of Netcdf header info non strict