|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordGDS
GribGDSRotatedLatLon
public final class GribGDSRotatedLatLon
A class that represents the grid definition section (GDS) of a GRIB record with a Rotated Lat/Lon grid projection.
Field Summary | |
---|---|
protected double |
grid_latspst
y-coordinate/latitude of south pole of stretching. |
protected double |
grid_lonspst
x-coordinate/longitude of south pole of stretching. |
protected double |
grid_stretchfact
Stretching factor rotated lat/lon grid. |
static int |
ROTATED_LATLON_GRID_TYPE
|
Fields inherited from class GribRecordGDS |
---|
adiacent_i, 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 | |
---|---|
GribGDSRotatedLatLon()
GribGDSRotatedLatLon |
|
GribGDSRotatedLatLon(ImageInputStream in,
int[] header)
Constructs a GribRecordGDS object from a bit input stream. |
Method Summary | |
---|---|
boolean |
canProduce(int GDSType)
|
boolean |
equals(Object obj)
|
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 |
getGridLatSPST()
Get y-coordinate/latitude of south pole of stretching. |
double |
getGridLon1()
Get longitude of grid start point. |
double |
getGridLon2()
Get longitude of grid end point. |
double |
getGridLonSPST()
Get x-coordinate/longitude of south pole of of stretching. |
int |
getGridMode()
Get grid mode. |
int |
getGridNX()
Get number of grid columns. |
int |
getGridNY()
Get number of grid rows. |
double |
getGridRotAngle()
Get grid rotation angle of a rotated latitude/longitude grid. |
int |
getGridScanmode()
Get scan mode (sign of increments). |
double |
getGridStretchingFactor()
Get stretching factor. |
int |
getGridType()
Get type of grid. |
Map |
getImplementationHints()
|
int |
getLength()
Get length in bytes of this section. |
String |
getName()
|
Set<Integer> |
getSupportedTypes()
|
int |
hashCode()
|
boolean |
isAvailable()
|
void |
setGridLatSPST(double grid_latspst)
|
void |
setGridLonSPST(double grid_lonspst)
|
void |
setGridStretchingFactor(double grid_strfact)
Set stretching factor. |
String |
toString()
Get a string representation of this GDS. |
void |
writeTo(OutputStream out)
writeTo |
Methods inherited from class GribRecordGDS |
---|
compare, getGridLatSP, getGridLonSP, isAdiacent_i_Or_j, setGridDX, setGridDY, setGridLat1, setGridLat2, setGridLatSP, setGridLon1, setGridLon2, setGridLonSP, setGridMode, setGridNX, setGridNY, setGridRotAngle, setGridScanmode, setGridType, setLength |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ROTATED_LATLON_GRID_TYPE
protected double grid_latspst
protected double grid_lonspst
protected double grid_stretchfact
Constructor Detail |
---|
public GribGDSRotatedLatLon(ImageInputStream in, int[] header) throws IOException
in
- bit input stream with GDS content
IOException
- if stream can not be opened etc.
NoValidGribException
- if stream contains no valid GRIB filepublic GribGDSRotatedLatLon()
Method Detail |
---|
public int hashCode()
hashCode
in class GribRecordGDS
public boolean equals(Object obj)
equals
in class GribRecordGDS
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 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[] getGridCoords()
getGridCoords
in class GribRecordGDS
public String toString()
toString
in class GribRecordGDS
public double getGridStretchingFactor()
public void setGridStretchingFactor(double grid_strfact)
public double getGridRotAngle()
getGridRotAngle
in class GribRecordGDS
public double getGridLatSPST()
public double getGridLonSPST()
public void setGridLatSPST(double grid_latspst)
grid_latspst
- The grid_latspst to set.public void setGridLonSPST(double grid_lonspst)
grid_lonspst
- The grid_lonspst to set.public void writeTo(OutputStream out) throws IOException
GribRecordGDS
writeTo
in class GribRecordGDS
out
- OutputStream
IOException
- DOCUMENT ME!public String getName()
public Set<Integer> getSupportedTypes()
public boolean isAvailable()
public boolean canProduce(int GDSType)
public Map getImplementationHints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |