|
|||||||||
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.GribGDSLambert
public class GribGDSLambert
A class that represents the Grid Definition Section (GDS) of a GRIB record using the Lambert Conformal projection.
Field Summary | |
---|---|
protected double |
grid_latin1
Latin 1 - The first latitude from pole at which secant cone cuts the sperical earth. |
protected double |
grid_latin2
Latin 2 - The second latitude from pole at which secant cone cuts the sperical earth. |
protected double |
grid_latsp
latitude of south pole. |
protected double |
grid_lonsp
longitude of south pole. |
protected double |
grid_startx
starting x value using this projection. |
protected double |
grid_starty
starting y value using this projection. |
protected int |
proj_center
Projection Center Flag. |
Fields inherited from class net.sourceforge.jgrib.GribRecordGDS |
---|
EARTH_RADIUS, grid_dx, grid_dy, grid_lat1, grid_lat2, grid_lon1, grid_lon2, grid_mode, grid_nx, grid_ny, grid_rotang, grid_scan, grid_type, length |
Constructor Summary | |
---|---|
GribGDSLambert(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)
Method overrides GribRecordGDS.equals, which in turn overrides the default Object.equals method. |
double[] |
getGridCoords()
Get grid coordinates in latitude/longitude adapted from J.P. |
double |
getGridDX()
Get x-increment/distance between two grid points. |
double |
getGridDY()
Get y-increment/distance between two grid points. |
double |
getGridLat1()
Get y-coordinate/latitude of grid start point. |
double |
getGridLatin1()
Get first latitude from the pole at which cone cuts spherical earth - see note 8 of Table D |
double |
getGridLatin2()
Get second latitude from the pole at which cone cuts spherical earth - see note 8 of Table D |
double |
getGridLatSP()
Get latitude of south pole. |
double |
getGridLon1()
Get x-coordinate/longitude of grid start point. |
double |
getGridLonSP()
Get longitude of south pole of a rotated latitude/longitude grid. |
double |
getGridLov()
Get orientation of the grid |
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 |
getProjCenter()
Get Projection Center flag - see note 5 of Table D. |
double |
getStartX()
Get starting x value for this grid - THIS IS NOT A LONGITUDE, but an x value calculated for this specific projection, based on an origin of latin1, lov. |
double |
getStartY()
Get starting y value for this grid - THIS IS NOT A LATITUDE, but an y value calculated for this specific projection, based on an origin of latin1, lov. |
double[] |
getXCoords()
Get all x Axis grid coordinates |
double[] |
getYCoords()
Get all y Axis grid coordinates |
int |
hashCode()
Overides method from GribRecordGDS |
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 |
---|
getGridLat2, getGridLon2, getGridRotAngle |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int proj_center
protected double grid_latin1
protected double grid_latin2
protected double grid_latsp
protected double grid_lonsp
protected double grid_startx
protected double grid_starty
Constructor Detail |
---|
public GribGDSLambert(BitInputStream in, int[] header) throws java.io.IOException, NoValidGribException
in
- bit input stream with GDS contentheader
- - int array with first six octets of the GDS
java.io.IOException
- if stream can not be opened etc.
NoValidGribException
- if stream contains no valid GRIB fileMethod 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()
hashCode
in class GribRecordGDS
GribRecordGDS.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class GribRecordGDS
GribRecordGDS.equals(java.lang.Object)
public int getLength()
getLength
in class GribRecordGDS
public int getGridType()
getGridType
in class GribRecordGDS
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 getGridLov()
public double getGridDX()
getGridDX
in class GribRecordGDS
public double getGridDY()
getGridDY
in class GribRecordGDS
public double getProjCenter()
public int getGridScanmode()
getGridScanmode
in class GribRecordGDS
public double getGridLatin1()
public double getGridLatin2()
public double getGridLatSP()
getGridLatSP
in class GribRecordGDS
public double getGridLonSP()
getGridLonSP
in class GribRecordGDS
public double getStartX()
public double getStartY()
public double[] getXCoords()
getXCoords
in class GribRecordGDS
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 |