Package ucar.grib.grib1

Examples of ucar.grib.grib1.GribPDSParamTable


        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


        // 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

      if (edition == 2) {
        Grib2Pds pds2 = (Grib2Pds) pds;
        p = ParameterTable.getParameter(discipline, pds2.getParameterCategory(), pds.getParameterNumber());

      } else {
        GribPDSParamTable pt = null;
        try {
          pt = GribPDSParamTable.getParameterTable(center, subCenter, tableVersion);
        } catch (NotSupportedException e) {
          logger.error("Failed to get Parameter name for " + this);
        }
        p = pt.getParameter( pds.getParameterNumber());
      }

    return p;
  }
View Full Code Here

TOP

Related Classes of ucar.grib.grib1.GribPDSParamTable

Copyright © 2018 www.massapicom. 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.