Examples of GribGridRecord


Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return DisciplineName
   */
  public final String getDisciplineName(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    return ParameterTable.getDisciplineName(ggr.getDiscipline());
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return CategoryName
   */
  public final String getCategoryName(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();
    return ParameterTable.getCategoryName(ggr.getDiscipline(), pds.getParameterCategory());
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr record to check
   * @return Parameter.
   */
  public GridParameter getParameter(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();

    // NCEP is default, table has all parameters even local ones > 191
    if (firstID.getCenter_id() == 7 ||
        ggr.getParameterNumber() < 192 && pds.getParameterCategory() < 192 &&  ggr.getDiscipline()  < 192)
      return ParameterTable.getParameter(ggr.getDiscipline(), pds.getParameterCategory(), ggr.getParameterNumber());
    else  { // get local parameter for center
      return ParameterTable.getParameter(ggr.getDiscipline(), pds.getParameterCategory(), ggr.getParameterNumber(), firstID.getCenter_id());
    }
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

  /**
   * @param gr GridRecord
   * @return int[] representing the parameter discipline, category, and parmeter number
   */
  public int[] getParameterId(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();

    int[] result = new int[4];
    result[0] = 2;
    result[1] = ggr.getDiscipline();
    result[2] = pds.getParameterCategory();
    result[3] = ggr.getParameterNumber();
    return result;
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return ProductDefinitionName
   */
  public final String getProductDefinitionName(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();

    return Grib2Tables.codeTable4_0( pds.getProductDefinitionTemplate());
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return ProductDefinition
   */
  public final int getProductDefinition(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();

    return pds.getProductDefinitionTemplate();
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return typeGenProcessName
   */
  public final int getGenProcessType(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    Grib2Pds pds = (Grib2Pds) ggr.getPds();
    return pds.getGenProcessType();
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return LevelName
   */
  public final String getLevelName(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    return Grib2Tables.getTypeSurfaceNameShort(ggr.getLevelType1());
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return LevelDescription
   */
  public final String getLevelDescription(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    return Grib2Tables.codeTable4_5(ggr.getLevelType1());
  }
View Full Code Here

Examples of ucar.grib.GribGridRecord

   *
   * @param gr GridRecord
   * @return LevelUnit
   */
  public final String getLevelUnit(GridRecord gr) {
    GribGridRecord ggr = (GribGridRecord) gr;
    return Grib2Tables.getTypeSurfaceUnit(ggr.getLevelType1());
  }
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.