|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordGDS
GribGDSLambert
public final 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. |
static int |
LAMBERT_GRID_TYPE
|
protected int |
proj_center
Projection Center Flag. |
Fields inherited from class GribRecordGDS |
---|
adiacent_i, 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()
GribGDSLambert |
|
GribGDSLambert(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 latitude/longitude adapted from J.P. |
double |
getGridDY()
Get y-increment/distance between two grid points. |
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[] |
getGridLonLatEnvelope()
|
double |
getGridLonSP()
Get longitude of south pole of a rotated latitude/longitude grid. |
double |
getGridLov()
Get orientation of the grid |
int |
getGridScanmode()
Get scan mode (sign of increments). |
Map |
getImplementationHints()
|
String |
getName()
|
int |
getProjCenter()
Get Projection Center flag - see note 5 of Table D. |
double |
getRhoRef()
|
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. |
Set<Integer> |
getSupportedTypes()
|
double[] |
getXCoords()
Get all x Axis grid coordinates |
double[] |
getYCoords()
Get all y Axis grid coordinates |
int |
hashCode()
|
boolean |
isAvailable()
|
void |
setGridLatin1(double grid_latin1)
|
void |
setGridLatin2(double grid_latin2)
|
void |
setProjCenter(int proj_center)
|
void |
setRhoRef(double rhoRef)
|
String |
toString()
Get a string representation of this GDS. |
void |
writeTo(OutputStream out)
writeTo |
Methods inherited from class GribRecordGDS |
---|
compare, getGridDX, getGridLat1, getGridLat2, getGridLon1, getGridLon2, getGridMode, getGridNX, getGridNY, getGridRotAngle, getGridType, getLength, 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 LAMBERT_GRID_TYPE
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(ImageInputStream in, int[] header) throws IOException
in
- bit input stream with GDS contentheader
- -
int array with first six octets of the GDS
IOException
- if stream can not be opened etc.
NoValidGribException
- if stream contains no valid GRIB filepublic GribGDSLambert()
Method Detail |
---|
public int hashCode()
hashCode
in class GribRecordGDS
public boolean equals(Object obj)
equals
in class GribRecordGDS
public double getGridLov()
public double getGridDY()
getGridDY
in class GribRecordGDS
public int 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 void setGridLatin1(double grid_latin1)
public void setGridLatin2(double grid_latin2)
public void setProjCenter(int proj_center)
public double getRhoRef()
public void setRhoRef(double rhoRef)
public double[] getXCoords()
public double[] getYCoords()
public double[] getGridCoords()
getGridCoords
in class GribRecordGDS
public double[] getGridLonLatEnvelope()
public String toString()
toString
in class GribRecordGDS
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 |