legacy/src/main/java/ucar/nc2/NetcdfFileWriteable.java
public void write(String fullNameEsc, int[] origin, Array values) throws java.io.IOException, InvalidRangeException {
    if (defineMode)
      throw new UnsupportedOperationException("in define mode");
    ucar.nc2.Variable v2 = findVariable(fullNameEsc);
    if (v2 == null)
      throw new IllegalArgumentException("NetcdfFileWriteable.write illegal variable name = " + fullNameEsc);

    spiw.writeData(v2, new Section(origin, values.getShape()), values);
    v2.invalidateCache();
  }
public void write(String fullNameEsc, int[] origin, Array values) throws java.io.IOException, InvalidRangeException {
    if (defineMode)
      throw new UnsupportedOperationException("in define mode");
    ucar.nc2.Variable v2 = findVariable(fullNameEsc);
    if (v2 == null)
      throw new IllegalArgumentException("NetcdfFileWriteable.write illegal variable name = " + fullNameEsc);

    spiw.writeData(v2, new Section(origin, values.getShape()), values);
    v2.invalidateCache();
  }
public void write ( String fullNameEsc , int [ ] origin , Array values ) throws java . io . IOException , InvalidRangeException { if ( defineMode ) throw new UnsupportedOperationException ( "in define mode" ) ; ucar . nc2 . Variable v2 = findVariable ( fullNameEsc ) ; if ( v2 == null ) throw new IllegalArgumentException ( "NetcdfFileWriteable.write illegal variable name = " + fullNameEsc ) ; spiw . writeData ( v2 , new Section ( origin , values . getShape ( ) ) , values ) ; v2 . invalidateCache ( ) ; }
Write data to the named variable. Must not be in define mode.

@param fullNameEsc full, escaped name of variable. IllegalArgumentException if variable name does not exist.
@param origin  offset within the variable to start writing.
@param values  write this array; must be same type and rank as Variable
@throws IOException if I/O error
@throws ucar.ma2.InvalidRangeException if values Array has illegal shape
Write data to the named variable . Must not be in define mode .