cdm/src/main/java/ucar/nc2/NetcdfFile.java
public static NetcdfFile openInMemory(String name, byte[] data) throws IOException {
    ucar.unidata.io.InMemoryRandomAccessFile raf = new ucar.unidata.io.InMemoryRandomAccessFile(name, data);
    return open(raf, name, null, null);
  }
public static NetcdfFile openInMemory(String name, byte[] data) throws IOException {
    ucar.unidata.io.InMemoryRandomAccessFile raf = new ucar.unidata.io.InMemoryRandomAccessFile(name, data);
    return open(raf, name, null, null);
  }
Open an in-memory netcdf file.

@param name name of the dataset. Typically use the filename or URI.
@param data in-memory netcdf file
@return memory-resident NetcdfFile
@throws java.io.IOException if error