Class EarthDataViewFactory

java.lang.Object
noaa.coastwatch.gui.EarthDataViewFactory

public class EarthDataViewFactory extends Object
The EarthDataViewFactory uses an EarthDataReader and variable name to create an EarthDataView for displaying a view of the variable data.
Since:
3.2.0
Author:
Peter Hollemans
  • Constructor Details

    • EarthDataViewFactory

      public EarthDataViewFactory()
  • Method Details

    • getInstance

      public static EarthDataViewFactory getInstance()
      Gets a shared instance of this class.
      Returns:
      the shared instance.
      Since:
      3.8.1
    • setSubsetSize

      public void setSubsetSize(int subsetSize)
      Sets the grid subset size. If the EarthDataReader passed to create(noaa.coastwatch.io.EarthDataReader, java.lang.String) is capable of reading grid subsets via the GridSubsetReader interface, the specified grid subset dimension will be used to limit the total size of grid data read. The default subset size is set at 256, which is appropriate for previewing grid data.
      Parameters:
      subsetSize - the grid subset size.
    • create

      public EarthDataView create(EarthDataReader reader, String varName)
      Creates a new data view.
      Parameters:
      reader - the reader to use for variable data.
      varName - the variable name to view.
      Returns:
      a new view of the data variable, or null on error.