Class GRIBResult<T extends GeoLocation>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
org.deltava.beans.wx.GRIBResult<T>
- Type Parameters:
T- the data type
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>, 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:
-
Field Summary
Fields inherited from class AbstractList
modCountFields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
ConstructorsConstructorDescriptionGRIBResult(int w, int h, float dLat, float dLng) Initializes the collection. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the latitude of this location.doubleReturns the longitude of this location.getNW()getResult(GeoLocation loc) getSE()voidsetStart(float lat, float lng) Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface GeoLocation
distanceFeet, distanceToMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
GRIBResult
public GRIBResult(int w, int h, float dLat, float dLng) Initializes the collection.- Parameters:
w- the widthh- the heightdLat- the latitude delta in degreesdLng- the longitude delta in degrees
-
-
Method Details
-
setStart
public void setStart(float lat, float lng) -
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getNW
-
getSE
-
getResult
-