Class TLcdGRIBModelDescriptor

All Implemented Interfaces:
ILcdGRIBConstants, ILcdModelDescriptor, Serializable
Direct Known Subclasses:
TLcdGRIB2ModelDescriptor

@Deprecated public class TLcdGRIBModelDescriptor extends TLcdRasterModelDescriptor implements ILcdModelDescriptor, ILcdGRIBConstants
Deprecated.
The NetCDF decoder should be used to decode GRIB data.
Model descriptor for GRIB models.

TLcdGRIBModelDescriptor contains the values of D, R, E to calculate the original value of a parameter with the formula:

Y * 10D = R + (X*2E)

where

  • Y = original or unpacked value;
  • D = decimal scale factor;
  • R = reference value;
  • X = internal value;
  • E = binary scalefactor;
It also contains methods to calculate original values out of internal values, and vice versa (getActualValue, getInternalValue).

It also contains methods to get the IDs of many features of the GRIB file (e.g. the parameter, the unit of the parameter, the level, originating center, date, grid...). There are some methods that return the meaning of those IDs in a String (getLevel, getGeneratingProcessOrModel, getParameter). For others IDs, the meaning can be found in the tables of the GRIB specification.

There are methods that return the value of the level or layer (getLevelValue, getLayerBottomValue, getLayerTopValue) and the unit for that value (getLevelValueUnit).

Since:
6.5
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • TLcdGRIBModelDescriptor Link icon

      public TLcdGRIBModelDescriptor(String aSourceName, String aDisplayName, String aTypeName)
      Deprecated.
      Creates a new TLcdGRIBModelDescriptor with the given names.
      Parameters:
      aSourceName - the name of the data source.
      aDisplayName - the display name of the data source.
      aTypeName - the type name of the data source.
  • Method Details Link icon

    • getGRIBEdition Link icon

      public int getGRIBEdition()
      Deprecated.
      Returns the edition number of the GRIB format. The only values that are currently supported are 1 and 2.
      Returns:
      1 or 2.
      See Also:
    • setGRIBEdition Link icon

      public void setGRIBEdition(int aGRIBEdition)
      Deprecated.
      Sets the edition number of the GRIB format.
      Parameters:
      aGRIBEdition - The edition number of the GRIB format. Should be 1 or 2.
      See Also:
    • getParameterTableVersion Link icon

      public int getParameterTableVersion()
      Deprecated.
      Returns the Parameter Table Version number. (Parameter table version numbers 128-254 are reserved for local use.)
      Returns:
      The parameter table version number.
      See Also:
    • setParameterTableVersion Link icon

      public void setParameterTableVersion(int aParameterTableVersion)
      Deprecated.
      Sets the Parameter Table Version number.
      Parameters:
      aParameterTableVersion - The parameter table version number.
      See Also:
    • getOriginatingCenterID Link icon

      public int getOriginatingCenterID()
      Deprecated.
      Returns the identification number of the originating center. Table 0 of the GRIB specification defines the centers corresponding to the originating center IDs.
      Returns:
      The identification number of the originating center.
      See Also:
    • setOriginatingCenterID Link icon

      public void setOriginatingCenterID(int aOriginatingCenterID)
      Deprecated.
      Sets the identification number of the originating center.
      Parameters:
      aOriginatingCenterID - The identification number of the originating center.
      See Also:
    • getGeneratingProcessOrModelID Link icon

      public int getGeneratingProcessOrModelID()
      Deprecated.
      Returns the identification number of the process or model generating the GRIB data. Table A of the GRIB specification defines the processes and models corresponding to the IDs.
      Returns:
      The identification number of the process or model generating the data.
      See Also:
    • setGeneratingProcessOrModelID Link icon

      public void setGeneratingProcessOrModelID(int aGeneratingProcessOrModelID)
      Deprecated.
      Sets the identification number of the process or model generating the GRIB data.
      Parameters:
      aGeneratingProcessOrModelID - The identification number of the process or model generating the data.
      See Also:
    • getGridID Link icon

      public int getGridID()
      Deprecated.
      Returns the identification number of the grid. Table B of the GRIB specification defines the grids corresponding to the grid IDs.
      Returns:
      The identification number of the grid.
      See Also:
    • setGridID Link icon

      public void setGridID(int aGridID)
      Deprecated.
      Sets the identification number of the grid.
      Parameters:
      aGridID - The identification number of the grid.
      See Also:
    • getParameterIndicator Link icon

      public int getParameterIndicator()
      Deprecated.
      Returns the number of the parameter. Table B of the GRIB specification defines the parameters corresponding to the parameter indicators.
      Returns:
      The number of the parameter.
      See Also:
    • setParameterIndicator Link icon

      public void setParameterIndicator(int aParameterIndicator)
      Deprecated.
      Sets the number of the parameter.
      Parameters:
      aParameterIndicator - The number of the parameter.
      See Also:
    • getYear Link icon

      public int getYear()
      Deprecated.
      Returns the year of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Returns:
      The year of the time of forecast.
      See Also:
    • setYear Link icon

      public void setYear(int aYear)
      Deprecated.
      Sets the year of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Parameters:
      aYear - The year of the time of forecast.
      See Also:
    • getMonth Link icon

      public int getMonth()
      Deprecated.
      Returns the month of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Returns:
      The month of the time of forecast,
      See Also:
    • setMonth Link icon

      public void setMonth(int aMonth)
      Deprecated.
      Sets the month of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Parameters:
      aMonth - The month of the time of forecast.
      See Also:
    • getDay Link icon

      public int getDay()
      Deprecated.
      Returns the day of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Returns:
      The day of the time of forecast.
      See Also:
    • setDay Link icon

      public void setDay(int aDay)
      Deprecated.
      Sets the day of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Parameters:
      aDay - The day of the time of forecast.
      See Also:
    • getHour Link icon

      public int getHour()
      Deprecated.
      Returns the hour of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Returns:
      The hour of the time of forecast.
      See Also:
    • setHour Link icon

      public void setHour(int aHour)
      Deprecated.
      Sets the hour of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Parameters:
      aHour - The hour of the time of forecast.
      See Also:
    • getMinute Link icon

      public int getMinute()
      Deprecated.
      Returns the minute of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Returns:
      The minute of the time of forecast.
      See Also:
    • setMinute Link icon

      public void setMinute(int aMinute)
      Deprecated.
      Sets the minute of the time of forecast or start of time period (for averaging or accumulation of analysis).
      Parameters:
      aMinute - The minute of the time of forecast.
      See Also:
    • getForecastTimeUnit Link icon

      public int getForecastTimeUnit()
      Deprecated.
      Returns the number of the forecast time unit. Table 4 of the GRIB specification defines the forecast time units.
      Returns:
      The number of the forecast time unit.
      See Also:
    • setForecastTimeUnit Link icon

      public void setForecastTimeUnit(int aForecastTimeUnit)
      Deprecated.
      Sets the number of the forecast time unit.
      Parameters:
      aForecastTimeUnit - The number of the forecast time unit.
      See Also:
    • getPeriodOfTimeP1 Link icon

      public int getPeriodOfTimeP1()
      Deprecated.
      Returns the period of time P1, expressed as a number of time units. It is 0 for analysis or initialized analysis.
      Returns:
      The period of time P1.
      See Also:
    • setPeriodOfTimeP1 Link icon

      public void setPeriodOfTimeP1(int aPeriodOfTimeP1)
      Deprecated.
      Sets the period of time P1, expressed as a number of time units.
      Parameters:
      aPeriodOfTimeP1 - The period of time P1.
      See Also:
    • getPeriodOfTimeP2 Link icon

      public int getPeriodOfTimeP2()
      Deprecated.
      Returns the period of time P2, expressed as a number of time units. It is 0 for analysis or initialized analysis.
      Returns:
      The period of time P2.
      See Also:
    • setPeriodOfTimeP2 Link icon

      public void setPeriodOfTimeP2(int aPeriodOfTimeP2)
      Deprecated.
      Sets the period of time P2, expressed as a number of time units.
      Parameters:
      aPeriodOfTimeP2 - The period of time P2.
      See Also:
    • getTimeInterval Link icon

      public int getTimeInterval()
      Deprecated.
      Returns the time interval between successive analysis, successive initialized analysis, or forecasts, undergoing averaging or accumulation, expressed as a number of time units.
      Returns:
      The time interval between successive forecasts.
      See Also:
    • setTimeInterval Link icon

      public void setTimeInterval(int aTimeInterval)
      Deprecated.
      Sets the time interval between successive analysis, successive initialized analysis, or forecasts, undergoing averaging or accumulation, expressed as a number of time units.
      Parameters:
      aTimeInterval - The time interval between successive forecasts.
      See Also:
    • getTimeRangeIndicator Link icon

      public int getTimeRangeIndicator()
      Deprecated.
      Returns the time range indicator.
      Returns:
      The time range indicator.
      See Also:
    • setTimeRangeIndicator Link icon

      public void setTimeRangeIndicator(int aTimeRangeIndicator)
      Deprecated.
      Sets the time range indicator.
      Parameters:
      aTimeRangeIndicator - the time range indicator.
      See Also:
    • getLevelIndicator Link icon

      public int getLevelIndicator()
      Deprecated.
      Returns the identification number of the level or layer. Table 3 of the GRIB specification defines the levels corresponding to the level IDs.
      Returns:
      The identification number of the level or layer.
      See Also:
    • setLevelIndicator Link icon

      public void setLevelIndicator(int aLevelIndicator)
      Deprecated.
      Sets the identification number of the level or layer.
      Parameters:
      aLevelIndicator - The identification number of the level or layer.
      See Also:
    • getLayerTopValue Link icon

      public int getLayerTopValue()
      Deprecated.
      Returns the top value of the layer, if specified. Otherwise, it is 0.
      Returns:
      The top value of the layer.
      See Also:
    • setLayerTopValue Link icon

      public void setLayerTopValue(int aLayerTopValue)
      Deprecated.
      Sets the top value of the layer.
      Parameters:
      aLayerTopValue - The top value of the layer.
      See Also:
    • getLayerBottomValue Link icon

      public int getLayerBottomValue()
      Deprecated.
      Returns the bottom value of the layer, if specified. Otherwise, it is 0.
      Returns:
      The bottom value of the layer.
      See Also:
    • setLayerBottomValue Link icon

      public void setLayerBottomValue(int aLayerBottomValue)
      Deprecated.
      Sets the bottom value of the layer.
      Parameters:
      aLayerBottomValue - The bottom value of the layer.
      See Also:
    • getLevelValue Link icon

      public int getLevelValue()
      Deprecated.
      Returns the value of the level, if specified. Otherwise, it is 0.
      Returns:
      The value of the level.
      See Also:
    • setLevelValue Link icon

      public void setLevelValue(int aLevelValue)
      Deprecated.
      Sets the value of the level.
      Parameters:
      aLevelValue - The value of the level.
      See Also:
    • getNumberIncludedInAverage Link icon

      public int getNumberIncludedInAverage()
      Deprecated.
      Sets the number included in the average, when the time range indicator indicates an average or accumulation. Otherwise, it is zero.
      Returns:
      The number included in the average.
      See Also:
    • setNumberIncludedInAverage Link icon

      public void setNumberIncludedInAverage(int aNumberIncludedInAverage)
      Deprecated.
      Sets the number included in the average.
      Parameters:
      aNumberIncludedInAverage - The number included in the average.
      See Also:
    • getNumberMissingFromAveragesOrAccumulations Link icon

      public int getNumberMissingFromAveragesOrAccumulations()
      Deprecated.
      Returns the number missing from averages or accumulations.
      Returns:
      The number missing from averages.
      See Also:
    • setNumberMissingFromAveragesOrAccumulations Link icon

      public void setNumberMissingFromAveragesOrAccumulations(int aNumberMissingFromAveragesOrAccumulations)
      Deprecated.
      Sets the number missing from averages or accumulations.
      Parameters:
      aNumberMissingFromAveragesOrAccumulations - The number missing from averages.
      See Also:
    • getCenturyOfInitialReferenceTime Link icon

      public int getCenturyOfInitialReferenceTime()
      Deprecated.
      Returns the century of the initial reference time. Note that it is 20 until Jan. 1, 2001.
      Returns:
      The century of the initial reference time.
      See Also:
    • setCenturyOfInitialReferenceTime Link icon

      public void setCenturyOfInitialReferenceTime(int aCenturyOfInitialReferenceTime)
      Deprecated.
      Sets the century of the initial reference time.
      Parameters:
      aCenturyOfInitialReferenceTime - The century of initial reference time.
      See Also:
    • getSubCenterID Link icon

      public int getSubCenterID()
      Deprecated.
      Returns the identification number of the subcenter. Table C of the GRIB specification defines the subcenters corresponding to the subcenter IDs.
      Returns:
      The identification number of the subcenter.
      See Also:
    • setSubCenterID Link icon

      public void setSubCenterID(int aSubCenterID)
      Deprecated.
      Sets the identification number of the subcenter.
      Parameters:
      aSubCenterID - The identification number of the subcenter.
      See Also:
    • getDataRepresentationType Link icon

      public int getDataRepresentationType()
      Deprecated.
      Returns the identification number of the data representation type. Table 6 of the GRIB specification defines the data presentation type.
      Returns:
      The identification number of the data representation type.
      See Also:
    • setDataRepresentationType Link icon

      public void setDataRepresentationType(int aDataRepresentationType)
      Deprecated.
      Sets the identification number of the data representation type.
      Parameters:
      aDataRepresentationType - The identification number of the data representation type.
      See Also:
    • getDecimalScaleFactor Link icon

      public int getDecimalScaleFactor()
      Deprecated.
      Returns the decimal scale factor D of the data in the GRIB file.
      Returns:
      The decimal scale factor D of the data.
      See Also:
    • setDecimalScaleFactor Link icon

      public void setDecimalScaleFactor(int aDecimalScaleFactor)
      Deprecated.
      Sets the decimal scale factor D of the data in the GRIB file.
      Parameters:
      aDecimalScaleFactor - the decimal scale factor D of the data.
      See Also:
    • getBinaryScaleFactor Link icon

      public int getBinaryScaleFactor()
      Deprecated.
      Returns the binary scale factor E of the data in the GRIB file.
      Returns:
      The binary scale factor E of the data.
      See Also:
    • setBinaryScaleFactor Link icon

      public void setBinaryScaleFactor(int aBinaryScaleFactor)
      Deprecated.
      Sets the binary scale factor E of the data in the GRIB file.
      Parameters:
      aBinaryScaleFactor - The binary scale factor E of the data.
      See Also:
    • getReferenceValue Link icon

      public double getReferenceValue()
      Deprecated.
      Returns the reference value R of the data in the GRIB file.
      Returns:
      The reference value R of the data.
      See Also:
    • setReferenceValue Link icon

      public void setReferenceValue(double aReferenceValue)
      Deprecated.
      Sets the reference value R of the data in the GRIB file.
      Parameters:
      aReferenceValue - The reference value R of the data.
      See Also:
    • getBitCount Link icon

      public int getBitCount()
      Deprecated.
      Returns the number of bits into which a value is packed.
      Returns:
      The number of bits into which a value is packed.
      See Also:
    • setBitCount Link icon

      public void setBitCount(int aBitCount)
      Deprecated.
      Sets the number of bits into which a value is packed.
      Parameters:
      aBitCount - The number of bits into which a value is packed.
      See Also:
    • getVerticalCoordinateParameters Link icon

      public double[] getVerticalCoordinateParameters()
      Deprecated.
      Returns the vertical coordinate parameters associated with hybrid vertical coordinate systems
      Returns:
      The vertical coordinate parameters associated with hybrid vertical coordinate systems.
      See Also:
    • setVerticalCoordinateParameters Link icon

      public void setVerticalCoordinateParameters(double[] aVerticalCoordinateParameters)
      Deprecated.
      Sets the vertical coordinate parameters associated with hybrid vertical coordinate systems.
      Parameters:
      aVerticalCoordinateParameters - The vertical coordinate parameters associated with hybrid vertical coordinate systems.
      See Also:
    • getParameter Link icon

      public String getParameter()
      Deprecated.
      Returns the description (name) of the parameter of the model.
      Returns:
      The description of the parameter of the model.
      See Also:
    • setParameter Link icon

      public void setParameter(String aParameter)
      Deprecated.
      Sets the description (name) of the parameter of the model.
      Parameters:
      aParameter - The description of the parameter of the model.
      See Also:
    • getParameterUnit Link icon

      public String getParameterUnit()
      Deprecated.
      Returns the measurement unit of the parameter of the model.
      Returns:
      The measurement unit of the parameter of the model.
      See Also:
    • setParameterUnit Link icon

      public void setParameterUnit(String aParameterUnit)
      Deprecated.
      Sets the measurement unit of the parameter of the model.
      Parameters:
      aParameterUnit - The measurement unit of the parameter of the model.
      See Also:
    • getParameterAbbreviation Link icon

      public String getParameterAbbreviation()
      Deprecated.
      Returns the abbreviation of the parameter of the model.
      Returns:
      The abbreviation of the parameter of the model.
      See Also:
    • setParameterAbbreviation Link icon

      public void setParameterAbbreviation(String aParameterAbbreviation)
      Deprecated.
      Sets the abbreviation of the parameter of the model.
      Parameters:
      aParameterAbbreviation - The abbreviation of the parameter of the model.
      See Also:
    • getOrganization Link icon

      public String getOrganization()
      Deprecated.
      Returns the name of the organization.
      Returns:
      The name of the organization.
      See Also:
    • setOrganization Link icon

      public void setOrganization(String aOrganization)
      Deprecated.
      Sets the name of the organization.
      Parameters:
      aOrganization - The name of the organization.
      See Also:
    • getUsage Link icon

      public String getUsage()
      Deprecated.
      Returns the text describing the usage of the parameter table.
      Returns:
      The text describing the usage of the parameter table.
      See Also:
    • setUsage Link icon

      public void setUsage(String aUsage)
      Deprecated.
      Sets the text describing the usage of the parameter table.
      Parameters:
      aUsage - The text describing the usage of the parameter table.
      See Also:
    • getGeneratingProcessOrModel Link icon

      public String getGeneratingProcessOrModel()
      Deprecated.
      Returns the name of the generating process or model, or the constant UNKNOWN if they are not known.
      Returns:
      The name of the generating process or model.
      See Also:
    • setLevelValues Link icon

      public void setLevelValues(int aLayerBottomValue, int aLayerTopValue)
      Deprecated.
      Sets the bottom and top values of a layer, if they are specified. Sets the value of a level, if it is specified. The values that are not specified are set to 0.
      Parameters:
      aLayerBottomValue - The bottom value of the layer.
      aLayerTopValue - The top value of the layer.
      See Also:
    • getLevel Link icon

      public String getLevel()
      Deprecated.
      Returns the name of the level or layer of the GRIB file, or the constant UNKNOWN if the level is not set.
      Returns:
      The name of the level or layer of the GRIB file.
      See Also:
    • getLevelValueUnit Link icon

      public String getLevelValueUnit()
      Deprecated.
      Returns the unit in which the value is expressed, or the empty string if the level is not set.
      Returns:
      The unit in which the value is expressed.
      See Also:
    • getInternalValue Link icon

      public int getInternalValue(double aOriginalValue)
      Deprecated.
      Converts a given actual parameter value into the value that is stored internally in the GRIB file.
      Parameters:
      aOriginalValue - The value to convert.
      Returns:
      The internal value corresponding with the given parameter value.
      See Also:
    • getActualValue Link icon

      public double getActualValue(int aInternalValue)
      Deprecated.
      Converts a given parameter value that is stored internally in the GRIB file into into the actual value.
      Parameters:
      aInternalValue - The value to convert.
      Returns:
      The parameter value corresponding to the given internal value.
      See Also: