|
|||||||||
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.GribGDSPolarStereo
public class GribGDSPolarStereo
A class that represents the grid definition section (GDS) of a GRIB record.
Field Summary | |
---|---|
protected int |
grid_proj_center
Projection Center Flag. |
protected double |
grid_startx
starting x value using this projection. |
protected double |
grid_starty
starting y value using this projection. |
protected double |
latitude_ts
Latitude of Center - assumed 60 N or 60 S based on note 2 of table D |
protected double |
SCALE_FACTOR
Central Scale Factor. |
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 | |
---|---|
GribGDSPolarStereo(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 |
getGrid_startx()
|
double |
getGrid_starty()
|
double |
getGridCenterLat()
Get the Latitude of the circle where grid lengths are defined |
double |
getGridCenterLon()
|
double[] |
getGridCoords()
Get grid coordinates in longitude/latitude 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 |
getGridLon1()
Get x-coordinate/longitude of grid start point. |
double |
getGridLov()
Get East longitude parallel to y-axis |
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. |
double |
getLatitudeTrueScale()
|
int |
getLength()
Get length in bytes of this section. |
int |
getProjCenterFlag()
Get projection center flag. |
double[] |
getXCoords()
Get all longitude coordinates |
double[] |
getYCoords()
Get all latitude 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, getGridLatSP, getGridLon2, getGridLonSP, getGridRotAngle |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int grid_proj_center
protected double grid_startx
protected double grid_starty
protected final double SCALE_FACTOR
protected double latitude_ts
Constructor Detail |
---|
public GribGDSPolarStereo(BitInputStream in, int[] header) throws java.io.IOException, NoValidGribException, NotSupportedException
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 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()
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 int getProjCenterFlag()
public int getGridScanmode()
getGridScanmode
in class GribRecordGDS
public double getGridCenterLon()
public double getGridCenterLat()
public double getLatitudeTrueScale()
public double[] getXCoords()
getXCoords
in class GribRecordGDS
public double[] getYCoords()
getYCoords
in class GribRecordGDS
public double[] getGridCoords()
getGridCoords
in class GribRecordGDS
GribRecordGDS.getGridCoords()
public double getGrid_startx()
public double getGrid_starty()
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 |