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_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in 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, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.Methods 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
-