@Test public void testCompressionGzip() throws IOException { File uncompressedFile = new File(TestDir.cdmLocalTestDataDir + "compress/testGzip.nc"); uncompressedFile.delete(); try (NetcdfFile ncfile = NetcdfFiles.open(TestDir.cdmLocalTestDataDir + "compress/testGzip.nc.gz")) { assertThat(ncfile.getRootGroup().findAttributeString("yo", "barf")).isEqualTo("face"); Variable temp = ncfile.findVariable("temperature"); assertThat(temp).isNotNull(); assertThat(temp.findAttributeString("units", "barf")).isEqualTo("K"); } try (NetcdfFile ncfile = NetcdfFiles.open(TestDir.cdmLocalTestDataDir + "compress/testGzip.nc.zip")) { assertThat(ncfile.getRootGroup().findAttributeString("yo", "barf")).isEqualTo("face"); Variable temp = ncfile.findVariable("temperature"); assertThat(temp).isNotNull(); assertThat(temp.findAttributeString("units", "barf")).isEqualTo("K"); } }
public static NetcdfFile open(String location) throws IOException { return open(location, -1, null); }
NetcdfFiles { public static NetcdfFile open(String location) throws IOException { return open(location, -1, null); } }
NetcdfFiles { public static NetcdfFile open(String location) throws IOException { return open(location, -1, null); }  }
NetcdfFiles { public static NetcdfFile open(String location) throws IOException { return open(location, -1, null); }  static void registerIOProvider(String className); static void registerIOProvider(Class<?> iospClass); static void registerRandomAccessFileProvider(String className); static void registerRandomAccessFileProvider(Class<?> rafClass); static NetcdfFile open(String location); static NetcdfFile open(String location, ucar.nc2.util.CancelTask cancelTask); static NetcdfFile open(String location, int buffer_size, ucar.nc2.util.CancelTask cancelTask); static NetcdfFile open(String location, int buffer_size, ucar.nc2.util.CancelTask cancelTask,
      Object iospMessage); static NetcdfFile open(String location, String iospClassName, int bufferSize, CancelTask cancelTask,
      Object iospMessage); static boolean canOpen(String location); static NetcdfFile openInMemory(String filename); static NetcdfFile openInMemory(URI uri); static NetcdfFile openInMemory(String name, byte[] data); static NetcdfFile openInMemory(String name, byte[] data, String iospClassName); static NetcdfFile open(ucar.unidata.io.RandomAccessFile raf, String location,
      @Nullable ucar.nc2.util.CancelTask cancelTask, @Nullable Object iospMessage); static NetcdfFile build(IOServiceProvider spi, ucar.unidata.io.RandomAccessFile raf, String location,
      ucar.nc2.util.CancelTask cancelTask); static String makeValidCdmObjectName(String shortName); static String makeValidCDLName(String vname); static String makeValidPathName(String vname); static String makeNameUnescaped(String vname); static String makeFullName(Group g); static String makeFullName(Variable v); static String makeFullNameSectionSpec(Variable v); }
NetcdfFiles { public static NetcdfFile open(String location) throws IOException { return open(location, -1, null); }  static void registerIOProvider(String className); static void registerIOProvider(Class<?> iospClass); static void registerRandomAccessFileProvider(String className); static void registerRandomAccessFileProvider(Class<?> rafClass); static NetcdfFile open(String location); static NetcdfFile open(String location, ucar.nc2.util.CancelTask cancelTask); static NetcdfFile open(String location, int buffer_size, ucar.nc2.util.CancelTask cancelTask); static NetcdfFile open(String location, int buffer_size, ucar.nc2.util.CancelTask cancelTask,
      Object iospMessage); static NetcdfFile open(String location, String iospClassName, int bufferSize, CancelTask cancelTask,
      Object iospMessage); static boolean canOpen(String location); static NetcdfFile openInMemory(String filename); static NetcdfFile openInMemory(URI uri); static NetcdfFile openInMemory(String name, byte[] data); static NetcdfFile openInMemory(String name, byte[] data, String iospClassName); static NetcdfFile open(ucar.unidata.io.RandomAccessFile raf, String location,
      @Nullable ucar.nc2.util.CancelTask cancelTask, @Nullable Object iospMessage); static NetcdfFile build(IOServiceProvider spi, ucar.unidata.io.RandomAccessFile raf, String location,
      ucar.nc2.util.CancelTask cancelTask); static String makeValidCdmObjectName(String shortName); static String makeValidCDLName(String vname); static String makeValidPathName(String vname); static String makeNameUnescaped(String vname); static String makeFullName(Group g); static String makeFullName(Variable v); static String makeFullNameSectionSpec(Variable v); static final String reservedFullName; }