@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 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()); }
@Ignore("not visible on spock") @Test public void testWriteFileOnNarr2() throws Exception { Grib.setDebugFlags(new DebugFlagsImpl("Grib/indexOnly")); testFileSize("B:/ncdc/0409/narr/Narr_A_fc.ncx4", "Accum_snow_surface,Convective_cloud_cover_entire_atmosphere_3_Hour_Average", "2014-10-01T21:00:00Z", "2014-10-02T21:00:00Z", null, true); Grib.setDebugFlags(new DebugFlagsImpl("")); }
@Ignore("B: not visible on spock") @Test public void makeCfsr2() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds094.1", "test/ds094.1", FeatureCollectionType.GRIB2, "B:/rdavm/ds094.1/2011/.*gbx9", null, null, null, null, null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Category(NeedsRdaData.class) @Test public void testRdvamds277p6() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds277.6", "test/ds277.6", FeatureCollectionType.GRIB1, "D:/work/rdavm/ds277.6/monthly/.*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()); }
@Ignore("B: not visible on spock") @Test public void makeCfsr() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds093.1", "test/ds093.1", FeatureCollectionType.GRIB2, "B:/rdavm/ds093.1/data/.*gbx9", null, null, null, null, null); // config.gribConfig.unionRuntimeCoord = true; boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Ignore("B: not visible on spock") @Test public void testNam20() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("Nam10", "Nam10", FeatureCollectionType.GRIB1, "B:/atm/nam20/.*gbx9", null, null, null, "file", null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.testIndexOnly, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Ignore("B: not visible on spock") @Test public void testNcdcGfsanl3() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("Gfs003anl", "Gfs003anl", FeatureCollectionType.GRIB1, "B:/ncdc/0416/indexes/gfsanl3/**/gfsanl_3_.*gbx9", null, null, null, null, null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Ignore("B: not visible on spock") @Test public void testNcdcGfsanl4() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("Gfs004anl", "Gfs004anl", FeatureCollectionType.GRIB2, "B:/ncdc/0416/indexes/gfsanl3/**/gfsanl_4_.*gbx9", null, null, null, null, null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Category(NeedsRdaData.class) @Test public void testRdvamds084p3() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds084.3", "test/ds084.3", FeatureCollectionType.GRIB2, "D:/work/rdavm/ds084.3/**/.*gbx9", null, null, null, "directory", null); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.nocheck, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Category(NeedsRdaData.class) @Test public void testRdvamds628p5() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("ds628.5.MRUTC", "test/ds628.5", FeatureCollectionType.GRIB1, "D:/work/rdavm/ds628.5/fcst_surf125_var_diurnal/**/fcst_surf125_var.*.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 public void testRdvamds083p2_PofP() throws IOException { FeatureCollectionConfig config = new FeatureCollectionConfig("ds083.2-pofp", "test/ds083.2-pofp", FeatureCollectionType.GRIB1, TestDir.cdmUnitTestDir + "gribCollections/rdavm/ds083.2/PofP/**/.*grib1", null, null, null, "directory", null); boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@After public void after() throws IOException { dodsfile.close(); H5header.setDebugFlags(new DebugFlagsImpl("")); // make sure debug flags are off }
@BeforeClass static public void before() { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); countersAll = GribCoordsMatchGbx.getCounters(); }
@Ignore("B: not visible on spock") @Test public void testNcdcNarr() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("NcdcNarr", "NcdcNarr", FeatureCollectionType.GRIB1, "B:/ncdc/0402/home/tomcat/dans-tdm-content/content/tdm/cache/GribIndex/global/nomads/nexus/narr/**/.*gbx9", null, null, null, null, null); config.setFilter("B:/ncdc/0402/home/tomcat/dans-tdm-content/content/tdm/cache/GribIndex/global/nomads/nexus/narr/", "\\d{6}/\\d{8}/.*gbx9$"); boolean changed = GribCdmIndex.updateGribCollection(config, CollectionUpdateType.always, logger); System.out.printf("changed = %s%n", changed); Grib.setDebugFlags(new DebugFlagsImpl()); }
@Test public void createNDFD() throws IOException { Grib.setDebugFlags(new DebugFlagsImpl("Grib/debugGbxIndexOnly")); FeatureCollectionConfig config = new FeatureCollectionConfig("NDFD-CONUS-5km", "test/NDFD-CONUS-5km", FeatureCollectionType.GRIB2, TestDir.cdmUnitTestDir + "datasets/NDFD-CONUS-5km/.*grib2$", null, null, null, "file", null); config.gribConfig.addGdsHash("-197088379", "-198041691"); config.gribConfig.useGenType = true; boolean changed = GribCdmIndex.updateGribCollection(config, updateMode, logger); System.out.printf("changed = %s%n", changed); }
@Ignore("not visible on spock") @Test public void testWriteFileOnNarr3() throws Exception { Grib.setDebugFlags(new DebugFlagsImpl("Grib/indexOnly")); ProjectionRect rect = new ProjectionRect( new ProjectionPointImpl(-5645, -4626), 11329, 8992); testFileSize("B:/ncdc/0409/narr/Narr_A_fc.ncx4", "Accum_snow_surface,Convective_cloud_cover_entire_atmosphere_3_Hour_Average", "2014-10-01T21:00:00Z", "2014-10-02T21:00:00Z", rect, true); Grib.setDebugFlags(new DebugFlagsImpl("")); }
@Before public void setUp() throws Exception { DODSNetcdfFile.setPreload(false); dodsfile = TestDODSRead.open("test.50"); DODSNetcdfFile.setPreload(true); DODSNetcdfFile.setDebugFlags(new DebugFlagsImpl("DODS/serverCall")); }
@BeforeClass static public void before() { GribIosp.debugIndexOnlyCount = 0; GribCollectionImmutable.countGC = 0; PartitionCollectionImmutable.countPC = 0; RandomAccessFile.enableDefaultGlobalFileCache(); RandomAccessFile.setDebugLeaks(true); Grib.setDebugFlags(new DebugFlagsImpl("Grib/indexOnly")); GribCdmIndex.setGribCollectionCache(new ucar.nc2.util.cache.FileCacheGuava("GribCollectionCacheGuava", 100)); GribCdmIndex.gribCollectionCache.resetTracking(); }