Class GRIBResult<T extends GeoLocation>

Type Parameters:
T - the data type
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>, GeoLocation

public class GRIBResult<T extends GeoLocation> extends ArrayList<T> implements GeoLocation
A collection to store a gridded result from a GRIB file, tracking the corners of the grid.
Since:
5.2
Version:
7.2
Author:
Luke
See Also:
  • Constructor Details

    • GRIBResult

      public GRIBResult(int w, int h, float dLat, float dLng)
      Initializes the collection.
      Parameters:
      w - the width
      h - the height
      dLat - the latitude delta in degrees
      dLng - the longitude delta in degrees
  • Method Details

    • setStart

      public void setStart(float lat, float lng)
    • getLatitude

      public double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees
    • getNW

      public GeoLocation getNW()
    • getSE

      public GeoLocation getSE()
    • getResult

      public T getResult(GeoLocation loc)