Examples of Grib1WriteIndex


Examples of ucar.grib.grib1.Grib1WriteIndex

  /*
   * init
   */
  protected final void setUp() {
    testPath = TestAll.testdataDir + "grid/grib/duplicates/";
    g1wi = new Grib1WriteIndex();
    g2wi = new Grib2WriteIndex();
  }
View Full Code Here

Examples of ucar.grib.grib1.Grib1WriteIndex

        if (grib.lastModified() < gbx.lastModified())
          return;
        System.out.println("IndexExtending " + grib.getName() + " " +
            Calendar.getInstance().getTime().toString());
        // grib, gbx, gribName, gbxName, false(make index)
        new Grib1WriteIndex().extendGribIndex(grib, gbx, args[0], args[1], false);
        //ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);
      } else // create index
        System.out.println("Indexing " + grib.getName() + " " +
            Calendar.getInstance().getTime().toString());
        // grib, gribName, gbxName, false(make index)
        new Grib1WriteIndex().writeGribIndex(grib, args[0], args[1], false);
        //ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);

      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of ucar.grib.grib1.Grib1WriteIndex

        // gbx older then grib
        if (grib.lastModified() < gbx.lastModified())
          return;
        // grib, gbx, gribName, gbxName, false(make index)
        long start = System.currentTimeMillis();
        new Grib1WriteIndex().extendGribIndex(grib, gbx, args[0], args[1], false);
        System.out.println("IndexExtending " + grib.getName() +" took "+
        (System.currentTimeMillis() - start) +" ms BufferSize "+ Grib2WriteIndex.indexRafBufferSize);
        //ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);
      } else // create index
        // grib, gribName, gbxName, false(make index)
        long start = System.currentTimeMillis();
        new Grib1WriteIndex().writeGribIndex(grib, args[0], args[1], false);
        System.out.println("Indexing " + grib.getName() +" took "+
        (System.currentTimeMillis() - start) +" ms BufferSize "+ Grib2WriteIndex.indexRafBufferSize);
        //ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);
      }
    } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.