public L1BGociFileReader(L1BGociProductReaderPlugIn readerPlugIn) { super(readerPlugIn); H5iosp.setDebugFlags(new DebugFlagsImpl("HdfEos/turnOff")); }
/** * Constructor. * @param flagsOn space-separated list of flags to turn on. */ public DebugFlagsImpl(String flagsOn) { StringTokenizer stoke = new StringTokenizer(flagsOn); while (stoke.hasMoreTokens()) set(stoke.nextToken(), true); }
@AfterClass static public void after() { Grib.setDebugFlags(new DebugFlagsImpl()); System.out.printf("countersAll = %s%n", countersAll); }
/** * Constructor. * @param flagsOn space-separated list of flags to turn on. */ public DebugFlagsImpl(String flagsOn) { StringTokenizer stoke = new StringTokenizer(flagsOn); while (stoke.hasMoreTokens()) set(stoke.nextToken(), true); }
@AfterClass static public void after() { Grib.setDebugFlags(new DebugFlagsImpl()); logger.debug("countersAll = {}", countersAll); Variable.permitCaching = true; }
/** * Constructor. * @param flagsOn space-separated list of flags to turn on. */ public DebugFlagsImpl(String flagsOn) { StringTokenizer stoke = new StringTokenizer(flagsOn); while (stoke.hasMoreTokens()) set(stoke.nextToken(), true); }
@AfterClass static public void after() { Grib.setDebugFlags(new DebugFlagsImpl()); System.out.printf("countersAll = %s%n", countersAll); }
@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()); }
@Test // has one file for for each month, all in same directory public void testTimePartition() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("yearPartition", "test/yearPartition", FeatureCollectionType.GRIB1, TestDir.cdmUnitTestDir + "gribCollections/rdavm/ds627.1/.*gbx9", null, "#ei.mdfa.fc12hr.sfc.regn128sc.#yyyyMMddhh", null, "year", null); System.out.printf("config = %s%n", config); boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@AfterClass static public void after() { H4header.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 }
@AfterClass static public void after() { H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@Test public void testRdvamds083p2() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds083.2_Aggregation", "test/ds083.2", FeatureCollectionType.GRIB1, TestDir.cdmUnitTestDir + "gribCollections/rdavm/ds083.2/grib1/**/.*gbx9", null, null, null, "directory", null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new 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 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 public void testRdvamds627p0() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds627.0_46", "test/ds627.0", FeatureCollectionType.GRIB1, TestDir.cdmUnitTestDir + "gribCollections/rdavm/ds627.0/ei.oper.an.pv/**/.*gbx9", null , "#ei.oper.an.pv/#yyyyMM", null, "directory", null); boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Test // has one file for for each month, all in same directory public void testRdvamds627p1() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("GCpass1-union", "test/GCpass1", FeatureCollectionType.GRIB1, TestDir.cdmUnitTestDir + "gribCollections/rdavm/ds627.1/.*gbx9", null, null, null, "directory", null); boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Ignore("B: not visible on spock") @Test public void testTimePartitionWithSubdirs() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds626.0", "test/ds626.0", FeatureCollectionType.GRIB1, "B:/rdavm/ds626.0/**/.*gbx9", null, "#regn80#...yyyyMMddHH", null, "year", null); // config.gribConfig.unionRuntimeCoord = true; System.out.printf("config = %s%n", config); boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }