Class NCTileSource

java.lang.Object
noaa.coastwatch.io.tile.NCTileSource
All Implemented Interfaces:
TileSource

public class NCTileSource extends Object implements TileSource
The NCTileSource class provides tiles from a NetCDF 3 or 4 dataset variable.
Since:
3.3.1
Author:
Peter Hollemans
  • Constructor Details

    • NCTileSource

      public NCTileSource(ucar.nc2.NetcdfFile file, String varName, int rowIndex, int colIndex, int[] start) throws IOException
      Constructs a new NetCDF tile source to access the specified dataset and variable.
      Parameters:
      file - the NetCDF file to access.
      varName - the NetCDF variable name to read.
      rowIndex - the dimension index to use as the row dimension of the 2D slice.
      colIndex - the dimension index to use as the column dimension of the 2D slice.
      start - the starting coordinates for the 2D slice, or null to start at the origin.
      Throws:
      IOException - if a problem occurred accessing the NetCDF file.
      ArrayIndexOutOfBoundsException - if the row or column index is out of bounds with respect to the variable dimensions.
      IllegalArgumentException - if the start coordinate dimensions do not match the variable.
  • Method Details