|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordGDS
public abstract class GribRecordGDS
A class that represents the grid definition section (GDS) of a GRIB record.
Field Summary | |
---|---|
protected boolean |
adiacent_i
Adiacent rows? |
double |
EARTH_RADIUS
Radius of earth used in calculating projections |
protected double |
grid_dx
x-distance between two grid points can be delta-Lon or delta x. |
protected double |
grid_dy
y-distance of two grid points can be delta-Lat or delta y. |
protected double |
grid_lat1
Latitude of grid start point. |
protected double |
grid_lat2
Latitude of grid end point. |
protected double |
grid_latsp
y-coordinate/latitude of south pole of a rotated lat/lon grid. |
protected double |
grid_lon1
Longitude of grid start point. |
protected double |
grid_lon2
Longitude of grid end point. |
protected double |
grid_lonsp
x-coordinate/longitude of south pole of a rotated lat/lon grid. |
protected int |
grid_mode
Mode of grid (See table 7) only 128 supported == increments given) |
protected int |
grid_nx
Number of grid columns. |
protected int |
grid_ny
Number of grid rows. |
protected double |
grid_rotang
Rotation angle of rotated lat/lon grid. |
protected int |
grid_scan
Scanning mode (See table 8). |
protected int |
grid_type
Type of grid (See table 6) |
protected int |
length
Length in bytes of this section. |
Constructor Summary | |
---|---|
GribRecordGDS()
GribRecordGDS |
|
GribRecordGDS(int[] header)
New constructor created for child classes. |
Method Summary | |
---|---|
int |
compare(GribRecordGDS gds)
rdg - added this method to be used in a comparator for sorting while extracting records. |
boolean |
equals(Object obj)
|
double[] |
getGridCoords()
Get grid coordinates in longitude/latitude |
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 |
getGridLat2()
Get y-coordinate/latitude of grid end point. |
double |
getGridLatSP()
Get y-coordinate/latitude of south pole of a rotated latitude/longitude grid. |
double |
getGridLon1()
Get x-coordinate/longitude of grid start point. |
double |
getGridLon2()
Get x-coordinate/longitude of grid end point. |
double |
getGridLonSP()
Get x-coordinate/longitude of south pole of a rotated latitude/longitude grid. |
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). |
int |
getGridType()
Get type of grid. |
int |
getLength()
Get length in bytes of this section. |
int |
hashCode()
|
boolean |
isAdiacent_i_Or_j()
isAdiacent_i_Or_j |
void |
setGridDX(double grid_dx)
Set delta-Lon between two grid points. |
void |
setGridDY(double grid_dy)
Set delta-Lat between two grid points. |
void |
setGridLat1(double grid_lat1)
set latitude of grid start point. |
void |
setGridLat2(double grid_lat2)
set latitude of grid end point. |
void |
setGridLatSP(double grid_latsp)
set y-coordinate/latitude of south pole of a rotated latitude/longitude grid. |
void |
setGridLon1(double grid_lon1)
set longitude of grid start point. |
void |
setGridLon2(double grid_lon2)
set longitude of grid end point. |
void |
setGridLonSP(double grid_lonsp)
set x-coordinate/longitude of south pole of a rotated latitude/longitude grid. |
void |
setGridMode(int grid_mode)
|
void |
setGridNX(int grid_nx)
set number of grid columns. |
void |
setGridNY(int grid_ny)
set number of grid rows. |
void |
setGridRotAngle(double grid_rotang)
Set grid rotation angle of a rotated latitude/longitude grid. |
void |
setGridScanmode(boolean plus_i,
boolean plus_j,
boolean adiacents_i)
Set scan mode (sign of increments). |
void |
setGridType(int grid_type)
Set type of grid. |
void |
setLength(int length)
|
String |
toString()
Get a string representation of this GDS. |
abstract void |
writeTo(OutputStream out)
writeTo |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int length
protected boolean adiacent_i
protected int grid_type
protected int grid_nx
protected int grid_ny
protected double grid_lat1
protected double grid_lon1
protected int grid_mode
protected double grid_lat2
protected double grid_lon2
protected double grid_dx
protected double grid_dy
protected int grid_scan
protected double grid_latsp
protected double grid_lonsp
protected double grid_rotang
public final double EARTH_RADIUS
Constructor Detail |
---|
public GribRecordGDS(int[] header)
header
- - integer array of header data (octets 1-6) read in
GribGDSFactory exceptions are thrown in children and passed uppublic GribRecordGDS()
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compare(GribRecordGDS gds)
gds
- - the GribRecordGDS to compare to
public int getLength()
public int getGridType()
public void setGridType(int grid_type)
grid_type
- DOCUMENT ME!public int getGridNX()
public void setGridNX(int grid_nx)
grid_nx
- DOCUMENT ME!public int getGridNY()
public void setGridNY(int grid_ny)
grid_ny
- DOCUMENT ME!public double getGridLat1()
public void setGridLat1(double grid_lat1)
grid_lat1
- DOCUMENT ME!public double getGridLon1()
public void setGridLon1(double grid_lon1)
grid_lon1
- DOCUMENT ME!public int getGridMode()
public void setGridMode(int grid_mode)
public double getGridLat2()
public void setGridLat2(double grid_lat2)
grid_lat2
- DOCUMENT ME!public double getGridLon2()
public void setGridLon2(double grid_lon2)
grid_lon2
- DOCUMENT ME!public double getGridDX()
public void setGridDX(double grid_dx)
grid_dx
- DOCUMENT ME!public double getGridDY()
public void setGridDY(double grid_dy)
grid_dy
- DOCUMENT ME!public int getGridScanmode()
public void setGridScanmode(boolean plus_i, boolean plus_j, boolean adiacents_i)
plus_i
- DOCUMENT ME!plus_j
- DOCUMENT ME!adiacents_i
- DOCUMENT ME!public double getGridLatSP()
public void setGridLatSP(double grid_latsp)
grid_latsp
- DOCUMENT ME!public double getGridLonSP()
public void setGridLonSP(double grid_lonsp)
grid_lonsp
- DOCUMENT ME!public double getGridRotAngle()
public void setGridRotAngle(double grid_rotang)
grid_rotang
- DOCUMENT ME!public double[] getGridCoords()
public String toString()
toString
in class Object
public abstract void writeTo(OutputStream out) throws IOException
out
- OutputStream
IOException
- DOCUMENT ME!public boolean isAdiacent_i_Or_j()
public void setLength(int length)
length
- The length to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |