cdm/src/main/java/ucar/nc2/NetcdfFileWriter.java
public void write(String varname, Array values) throws java.io.IOException, InvalidRangeException {
    write(findVariable(varname), values);
  }
public void write(String varname, Array values) throws java.io.IOException, InvalidRangeException {
    write(findVariable(varname), values);
  }
// use these calls to write data to the file