|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgrib.GribRecordGDS net.sourceforge.jgrib.GribGDSLatLon
public class GribGDSLatLon
A class that represents the grid definition section (GDS) of a GRIB record with a Lat/Lon grid projection.
Field Summary |
---|
Fields inherited from class net.sourceforge.jgrib.GribRecordGDS |
---|
EARTH_RADIUS, grid_dx, grid_dy, grid_lat1, grid_lat2, grid_latsp, grid_lon1, grid_lon2, grid_lonsp, grid_mode, grid_nx, grid_ny, grid_rotang, grid_scan, grid_type, length |
Constructor Summary | |
---|---|
GribGDSLatLon(BitInputStream in,
int[] header)
Constructs a GribRecordGDS object from a bit input stream. |
Method Summary | |
---|---|
int |
compare(GribRecordGDS gds)
rdg - added this method to be used in a comparator for sorting while extracting records. |
boolean |
equals(java.lang.Object obj)
Overrides Object.equals() - perfect for testing |
double[] |
getGridCoords()
Get grid coordinates in longitude/latitude pairs Longitude is returned in the range +/- 180 degrees |
double |
getGridDX()
Get delta-Lon between two grid points. |
double |
getGridDY()
Get delta-Lat between two grid points. |
double |
getGridLat1()
Get latitude of grid start point. |
double |
getGridLat2()
Get latitude of grid end point. |
double |
getGridLon1()
Get longitude of grid start point. |
double |
getGridLon2()
Get longitude of grid end point. |
int |
getGridMode()
Get grid mode. |
int |
getGridNX()
Get number of grid columns. |
int |
getGridNY()
Get number of grid rows. |
int |
getGridScanmode()
Get scan mode (sign of increments). |
int |
getGridType()
Get type of grid. |
int |
getLength()
Get length in bytes of this section. |
double[] |
getXCoords()
Get longitide coordinates converted to the range +/- 180 |
double[] |
getXCoords(boolean convertTo180)
Get longitide coordinates |
double[] |
getYCoords()
Get all latitude coordinates |
int |
hashCode()
Overrides Object.hashCode() to be used in hashTables |
boolean |
isRotatedGrid()
|
boolean |
isUVEastNorth()
Table J.Resolution and Component Flags, bit 5 (from left) = 2^(8-5) = 8 = 0x08 : false = u and v components are relative to east, north true = u and v components are relative to grid x,y direction (i,j) |
java.lang.String |
toString()
Get a string representation of this GDS. |
Methods inherited from class net.sourceforge.jgrib.GribRecordGDS |
---|
getGridLatSP, getGridLonSP, getGridRotAngle |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribGDSLatLon(BitInputStream in, int[] header) throws java.io.IOException, NoValidGribException, NotSupportedException
in
- bit input stream with GDS contentheader
-
java.io.IOException
- if stream can not be opened etc.
NoValidGribException
- if stream contains no valid GRIB file
NotSupportedException
Method Detail |
---|
public boolean isUVEastNorth()
GribRecordGDS
isUVEastNorth
in class GribRecordGDS
GribRecordGDS.isUVEastNorth()
public int compare(GribRecordGDS gds)
GribRecordGDS
compare
in class GribRecordGDS
gds
- - GribRecordGDS
GribRecordGDS.compare(net.sourceforge.jgrib.GribRecordGDS)
public int hashCode()
GribRecordGDS
hashCode
in class GribRecordGDS
GribRecordGDS.hashCode()
public boolean equals(java.lang.Object obj)
GribRecordGDS
equals
in class GribRecordGDS
GribRecordGDS.equals(java.lang.Object)
public int getLength()
getLength
in class GribRecordGDS
public int getGridType()
getGridType
in class GribRecordGDS
public boolean isRotatedGrid()
public int getGridNX()
getGridNX
in class GribRecordGDS
public int getGridNY()
getGridNY
in class GribRecordGDS
public double getGridLat1()
getGridLat1
in class GribRecordGDS
public double getGridLon1()
getGridLon1
in class GribRecordGDS
public int getGridMode()
getGridMode
in class GribRecordGDS
public double getGridLat2()
getGridLat2
in class GribRecordGDS
public double getGridLon2()
getGridLon2
in class GribRecordGDS
public double getGridDX()
getGridDX
in class GribRecordGDS
public double getGridDY()
getGridDY
in class GribRecordGDS
public int getGridScanmode()
getGridScanmode
in class GribRecordGDS
public double[] getXCoords()
getXCoords
in class GribRecordGDS
public double[] getXCoords(boolean convertTo180)
convertTo180
-
public double[] getYCoords()
getYCoords
in class GribRecordGDS
public double[] getGridCoords()
getGridCoords
in class GribRecordGDS
GribRecordGDS.getGridCoords()
public java.lang.String toString()
toString
in class GribRecordGDS
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |