Class TLcdGRIBTileDecoder

java.lang.Object
com.luciad.format.raster.ALcdTileDecoder
com.luciad.format.grib.TLcdGRIBTileDecoder
All Implemented Interfaces:
ILcdTileDecoder, ILcdInputStreamFactoryCapable

@Deprecated public class TLcdGRIBTileDecoder extends ALcdTileDecoder implements ILcdTileDecoder
Deprecated.
The NetCDF decoder should be used to decode GRIB data.
This ILcdTileDecoder decodes GRIB files.
Since:
6.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    The sampling strategy that returns the average value of the corners of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns all values of the DTED tile, including the extra last row and the last column.
    static final int
    Deprecated.
    The sampling strategy that returns the maximum value of the corners of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns the minimum value of the corners of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns the North-East corner of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns the North-West corner of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns the South-East corner of each DTED sample cell.
    static final int
    Deprecated.
    The sampling strategy that returns the South-West corner of each DTED sample cell.
    static final int
    Deprecated.
    The tile value representing unknown GRIB values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Returns the sample strategy.
    protected ILcdTileInfo
    readTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer)
    Deprecated.
    Reads a sub-tile from an input stream.
    void
    setSampleStrategy(int aSampleStrategy)
    Deprecated.
    Sets the sample strategy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.luciad.format.raster.ILcdTileDecoder

    readTile, readTile
  • Field Details

    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
      Deprecated.
      The tile value representing unknown GRIB values.
      See Also:
    • NORTH_WEST_CORNER

      public static final int NORTH_WEST_CORNER
      Deprecated.
      The sampling strategy that returns the North-West corner of each DTED sample cell.
      See Also:
    • SOUTH_WEST_CORNER

      public static final int SOUTH_WEST_CORNER
      Deprecated.
      The sampling strategy that returns the South-West corner of each DTED sample cell.
      See Also:
    • NORTH_EAST_CORNER

      public static final int NORTH_EAST_CORNER
      Deprecated.
      The sampling strategy that returns the North-East corner of each DTED sample cell.
      See Also:
    • SOUTH_EAST_CORNER

      public static final int SOUTH_EAST_CORNER
      Deprecated.
      The sampling strategy that returns the South-East corner of each DTED sample cell.
      See Also:
    • MINIMUM

      public static final int MINIMUM
      Deprecated.
      The sampling strategy that returns the minimum value of the corners of each DTED sample cell.
      See Also:
    • MAXIMUM

      public static final int MAXIMUM
      Deprecated.
      The sampling strategy that returns the maximum value of the corners of each DTED sample cell.
      See Also:
    • AVERAGE

      public static final int AVERAGE
      Deprecated.
      The sampling strategy that returns the average value of the corners of each DTED sample cell.
      See Also:
    • EXTENDED

      public static final int EXTENDED
      Deprecated.
      The sampling strategy that returns all values of the DTED tile, including the extra last row and the last column. This row and column are generally duplicated from neighboring tiles. This strategy is useful in other cases, or for performing bilinear interpolation externally.
      See Also:
  • Constructor Details

    • TLcdGRIBTileDecoder

      public TLcdGRIBTileDecoder()
      Deprecated.
  • Method Details

    • setSampleStrategy

      public void setSampleStrategy(int aSampleStrategy)
      Deprecated.
      Sets the sample strategy.
      Parameters:
      aSampleStrategy - one of NORTH_WEST_CORNER, SOUTH_WEST_CORNER, NORTH_EAST_CORNER, SOUTH_EAST_CORNER, MINIMUM, MAXIMUM, AVERAGE, or EXTENDED.
      See Also:
    • getSampleStrategy

      public int getSampleStrategy()
      Deprecated.
      Returns the sample strategy.
      Returns:
      The sample strategy.
      See Also:
    • readTileFromStream

      protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
      Deprecated.
      Description copied from class: ALcdTileDecoder
      Reads a sub-tile from an input stream.
      Specified by:
      readTileFromStream in class ALcdTileDecoder
      Parameters:
      aInputStream - the input stream from which the tile data can be read.
      aImageIndex - the index of the tile in the given input stream (if applicable).
      aSubTileWidth - the width of the sub-tiles, expressed in pixels.
      aSubTileHeight - the height of the sub-tiles, expressed in pixels.
      aSubTileRowIndex - the row number of the sub-tile to be decoded.
      aSubTileColumnIndex - the column number of the sub-tile to be decoded.
      aBuffer - the buffer in which the decoded bytes will be stored.
      Returns:
      ILcdTileInfo information about the decoded tile.
      Throws:
      TLcdCodecException - in case of decoding problems.