Class NOAA1bCachedGrid

All Implemented Interfaces:
Cloneable, ValueSource

public class NOAA1bCachedGrid extends CachedGrid
The NOAA1b cached grid class is a cached grid that understands how to read variable data from NOAA1b files.
Since:
3.1.3
Author:
Peter Hollemans
  • Field Details

    • DEFAULT_CACHE_SIZE

      public static final int DEFAULT_CACHE_SIZE
      Default cache size in bytes.
      See Also:
  • Constructor Details

    • NOAA1bCachedGrid

      public NOAA1bCachedGrid(Grid grid, NOAA1bReader reader) throws IOException
      Constructs a new read-only NOAA1b cached grid with the specified properties.
      Parameters:
      grid - the grid to use for attributes.
      reader - the HDF reader data source.
      Throws:
      IOException - if a problem occurred accessing the NOAA1b file.
  • Method Details

    • getDataClass

      public Class getDataClass()
      Description copied from class: DataVariable
      Gets the class associated with components of the data array.
      Overrides:
      getDataClass in class DataVariable
      Returns:
      the data class or null if the data array is null.
    • getDataStream

      public Object getDataStream()
      Description copied from class: CachedGrid
      Gets the cache data stream as an object. This is useful for classes that read and write cached grids.
      Specified by:
      getDataStream in class CachedGrid
      Returns:
      the data stream used for reading and writing data.
    • readTile

      protected TilingScheme.Tile readTile(TilingScheme.TilePosition pos) throws IOException
      Description copied from class: CachedGrid
      Reads the specified tile.
      Specified by:
      readTile in class CachedGrid
      Parameters:
      pos - the tile position to read.
      Returns:
      the tile at the specified position.
      Throws:
      IOException - if an error occurred reading the tile data.
    • writeTile

      protected void writeTile(TilingScheme.Tile tile) throws IOException
      Description copied from class: CachedGrid
      Writes the specified tile. The implementation of this method must set the tile to be not dirty upon successfully writing it, or throw an error.
      Specified by:
      writeTile in class CachedGrid
      Parameters:
      tile - the tile to write.
      Throws:
      IOException - if an error occurred writing the tile data.