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 java.util.AbstractList
modCountFields inherited from interface org.deltava.beans.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 java.util.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 java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceToMethods inherited from interface java.util.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
-