@Test public void test1() throws InvalidRangeException, IOException { H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl("H5header/header")); TestDir.readAll(TestDir.cdmUnitTestDir +"formats/hdf5/npoess/ExampleFiles/AVAFO_NPP_d2003125_t10109_e101038_b9_c2005829155458_devl_Tst.h5"); H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl()); }
@AfterClass static public void after() { H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@AfterClass static public void after() { H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@AfterClass static public void after() { H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@AfterClass static public void after() { H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@Test @Category(NeedsCdmUnitTest.class) public void testVlenStrings() throws InvalidRangeException, IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); try (NetcdfFile ncfile = TestH5.openH5("support/vlstra.h5")) { System.out.println("\n**** testReadNetcdf4 done\n\n" + ncfile); } H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl()); }
@Test @Category(NeedsCdmUnitTest.class) public void misc() throws IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); // bitfields, opaque try (NetcdfFile ncfile = TestH5.openH5("support/bitop.h5")) { System.out.println("\n" + ncfile); } H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl()); }
@Test @Category(NeedsCdmUnitTest.class) public void testBitfield() throws InvalidRangeException, IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); try (NetcdfFile ncfile = TestH5.openH5("samples/bitfield.h5")) { } H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl()); }
@Test @Category(NeedsCdmUnitTest.class) public void testCompoundString() throws InvalidRangeException, IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); TestDir.readAll(TestH5.testDir + "support/cstr.h5"); H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl()); }
public void utestEnum() throws IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); String filename = TestN4reading.testDir+"nc4/tst_enum_data.nc"; NetcdfFile ncfile = NetcdfFile.open(filename); Variable v = ncfile.findVariable("primary_cloud"); Array data = v.read(); System.out.println("\n**** testReadNetcdf4 done\n\n" + ncfile); logger.debug(NCdumpW.toString(data, "primary_cloud", null)); ncfile.close(); H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl()); }
@After public void after() throws IOException { dodsfile.close(); H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@Test @Category(NeedsCdmUnitTest.class) public void testCompoundEnum() throws IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); try (NetcdfFile ncfile = TestH5.openH5("support/cenum.h5")) { Variable v = ncfile.findVariable("enum"); Array data = v.read(); logger.debug("enum data = {}", NCdumpW.toString(data)); System.out.println("\n**** testReadNetcdf4 done\n\n" + ncfile); } H5header.setDebugFlags(new DebugFlagsImpl("")); }
public void problem() throws InvalidRangeException, IOException { H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl("H5header/header")); try (NetcdfFile ncfile = TestH5.open("C:/data/HDF5Files/CrIMSS - CrIS - ATMS/ATMS/ATMS_SCIENCE_RDR/RASCI_npp_d20030125_t104457_e104505_b00016_c20061210190242_den_SWC.h5")) { Variable dset = ncfile.findVariable("Data_Products/ATMS-SCIENCE-RDR/ATMS-SCIENCE-RDR_Aggr"); assert (null != dset); Array data = dset.read(); logger.debug(NCdumpW.toString(data, dset.getFullName(), null)); } H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl()); }
static public void setDebugFlags(ucar.nc2.util.DebugFlags debugFlag) { debug = debugFlag.isSet("H5iosp/read"); debugPos = debugFlag.isSet("H5iosp/filePos"); debugHeap = debugFlag.isSet("H5iosp/Heap"); debugFilter = debugFlag.isSet("H5iosp/filter"); debugFilterIndexer = debugFlag.isSet("H5iosp/filterIndexer"); debugChunkIndexer = debugFlag.isSet("H5iosp/chunkIndexer"); debugVlen = debugFlag.isSet("H5iosp/vlen"); H5header.setDebugFlags(debugFlag); H4header.setDebugFlags(debugFlag); if(debugFilter) H5tiledLayoutBB.debugFilter = debugFilter; }
static public void setDebugFlags(ucar.nc2.util.DebugFlags debugFlag) { debug = debugFlag.isSet("H5iosp/read"); debugPos = debugFlag.isSet("H5iosp/filePos"); debugHeap = debugFlag.isSet("H5iosp/Heap"); debugFilter = debugFlag.isSet("H5iosp/filter"); debugFilterIndexer = debugFlag.isSet("H5iosp/filterIndexer"); debugChunkIndexer = debugFlag.isSet("H5iosp/chunkIndexer"); debugVlen = debugFlag.isSet("H5iosp/vlen"); skipEos = debugFlag.isSet("HdfEos/turnOff"); H5header.setDebugFlags(debugFlag); H4header.setDebugFlags(debugFlag); }
@Test public void test3() throws InvalidRangeException, IOException { H5header.setDebugFlags( new ucar.nc2.util.DebugFlagsImpl("H5header/reference")); try (NetcdfFile ncfile = TestH5.openH5("npoess/ExampleFiles/GDNBF-VNCCO_NPP_d2003125_t101038_e10116_b9_c2005829162517_dev.h5")) { Variable dset = ncfile.findVariable("Data_Products/VIIRS-DNB-FGEO/VIIRS-DNB-FGEO_Aggr"); assert (null != dset); } }
static public void setDebugFlags(ucar.nc2.util.DebugFlags debugFlag) { debug = debugFlag.isSet("H5iosp/read"); debugPos = debugFlag.isSet("H5iosp/filePos"); debugHeap = debugFlag.isSet("H5iosp/Heap"); debugFilter = debugFlag.isSet("H5iosp/filter"); debugFilterIndexer = debugFlag.isSet("H5iosp/filterIndexer"); debugChunkIndexer = debugFlag.isSet("H5iosp/chunkIndexer"); debugVlen = debugFlag.isSet("H5iosp/vlen"); skipEos = debugFlag.isSet("HdfEos/turnOff"); H5header.setDebugFlags(debugFlag); H4header.setDebugFlags(debugFlag); }
@Test @Category(NeedsCdmUnitTest.class) public void testOpaque() throws InvalidRangeException, IOException { H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header")); try (NetcdfFile ncfile = TestH5.openH5("samples/opaque.h5")) { System.out.println("\n" + ncfile); Variable v2 = ncfile.findVariable("Opaque"); assert v2 != null; Array data = v2.read(); assert data.getElementType() == ByteBuffer.class : data.getElementType(); System.out.println("data size= " + new Section(data.getShape())); logger.debug("Opaque data = {}", NCdumpW.toString(data)); Array odata = v2.read(new Section("1:20")); assert odata.getElementType() == ByteBuffer.class; assert odata.getSize() == 20; } H5header.setDebugFlags(new DebugFlagsImpl("")); }