cdm/src/main/java/ucar/nc2/NCdumpW.java
public static void main(String[] args) {
    if (args.length == 0) {
      System.out.println(usage);
      return;
    }

    StringBuilder sbuff = new StringBuilder();
    for (String arg : args) {
      sbuff.append(arg);
      sbuff.append(" ");
    }

    try {
      Writer writer = new BufferedWriter(new OutputStreamWriter(System.out, CDM.utf8Charset));
      NCdumpW.print(sbuff.toString(), writer, null);

    } catch (IOException ioe) {
      ioe.printStackTrace();
    }
  }
public static void main(String[] args) {
    if (args.length == 0) {
      System.out.println(usage);
      return;
    }

    StringBuilder sbuff = new StringBuilder();
    for (String arg : args) {
      sbuff.append(arg);
      sbuff.append(" ");
    }

    try {
      Writer writer = new BufferedWriter(new OutputStreamWriter(System.out, CDM.utf8Charset));
      NCdumpW.print(sbuff.toString(), writer, null);

    } catch (IOException ioe) {
      ioe.printStackTrace();
    }
  }
Main program.
<p><strong>ucar.nc2.NCdumpW filename [-cdl | -ncml] [-c | -vall] [-v varName1;varName2;..] [-v varName(0:1,:,12)]
</strong>
<p>where: <ul>
<li> filename : path of any CDM readable file
<li> cdl or ncml: output format is CDL or NcML
<li> -vall : dump all variable data
<li> -c : dump coordinate variable data
<li> -v varName1;varName2; : dump specified variable(s)
<li> -v varName(0:1,:,12) : dump specified variable section
</ul>
Default is to dump the header info only.

@param args arguments