|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.CoordinateSystem
visad.georef.NavigatedCoordinateSystem
visad.georef.MapProjection
visad.jmet.GRIBCoordinateSystem
public class GRIBCoordinateSystem
| Constructor Summary | |
|---|---|
GRIBCoordinateSystem(int gridNumber)
constructor for well-known grid numbers. |
|
GRIBCoordinateSystem(int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double lov)
Constructor for a Polar Stereographic (GRIB type code = 5) with RealTupleType.LatitudeLongitudeTuple as a reference. |
|
GRIBCoordinateSystem(int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double Latin1,
double Latin2,
double Lov)
Constructor for a Lambert conformal (GRIB type code = 3) with RealTupleType.LatitudeLongitudeTuple as a reference. |
|
GRIBCoordinateSystem(int Ni,
int Nj,
double La1,
double Lo1,
double Di,
double Dj)
Constructor for a simple latitude-longitude (GRIB type code = 0) with RealTupleType.LatitudeLongitudeTuple as a reference. |
|
GRIBCoordinateSystem(int gridTypeCode,
int Ni,
int Nj,
double La1,
double Lo1,
double La2,
double Lo2,
double Di,
double Dj)
Constructor for a latitude-longitude (GRIB type code = 0) with RealTupleType.LatitudeLongitudeTuple as a reference. |
|
GRIBCoordinateSystem(RealTupleType ref,
int gridNumber)
constructor for well-known grid numbers |
|
GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double lov)
Constructor for a Polar Stereographic (GRIB type code = 5) with RealTupleType.LatitudeLongitudeTuple as a reference. |
|
GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double Latin1,
double Latin2,
double Lov)
Constructor for a Lambert conformal (GRIB type code = 3) |
|
GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
int Ni,
int Nj,
double La1,
double Lo1,
double La2,
double Lo2,
double Di,
double Dj)
constructor for a latitude-longitude (GRIB type code = 0). |
|
| Method Summary | |
|---|---|
boolean |
equals(Object cs)
determine if the Coordinate System in question is an GRIBCoordinateSystem |
double[][] |
fromReference(double[][] tuples)
convert from lat,lon to x,y |
double |
getAspectRatio()
return the ratio of the grid spacing between rows and columns |
Rectangle2D |
getDefaultMapArea()
return the bounding box for this projection |
static boolean |
isGridNumberKnown(int gridNumber)
find out if the specified grid number (GRIB code) is known |
static void |
main(String[] args)
|
double[][] |
toReference(double[][] tuples)
convert from x,y to lat,lon |
| Methods inherited from class visad.georef.MapProjection |
|---|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toString |
| Methods inherited from class visad.georef.NavigatedCoordinateSystem |
|---|
getLatitudeIndex, getLongitudeIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GRIBCoordinateSystem(int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double lov)
throws VisADException
gridTypeCode - GRIB-1 grid typeLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)DxDy - spacing between grid points at 60Nlov - orientation of the grid (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double lov)
throws VisADException
ref - reference RealTupleType (should be lat/lon)gridTypeCode - GRIB-1 grid typeLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)DxDy - spacing between grid points at 60Nlov - orientation of the grid (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double Latin1,
double Latin2,
double Lov)
throws VisADException
ref - reference RealTupleType (should be lat/lon)gridTypeCode - GRIB-1 grid typeLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)DxDy - ?Latin1 - first intersecting latitude (degrees)Latin2 - second intersecting latitude (degrees)Lov - orientation of the grid (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(int gridTypeCode,
double La1,
double Lo1,
double DxDy,
double Latin1,
double Latin2,
double Lov)
throws VisADException
gridTypeCode - GRIB-1 grid typeLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)DxDy - ?Latin1 - first intersecting latitude (degrees)Latin2 - second intersecting latitude (degrees)Lov - orientation of the grid (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(int gridTypeCode,
int Ni,
int Nj,
double La1,
double Lo1,
double La2,
double Lo2,
double Di,
double Dj)
throws VisADException
gridTypeCode - GRIB-1 grid typeNi - number of points (W-E) along a latitude circleNj - number of points (N-S) along a longitude circleLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)La2 - latitude of last grid point (degrees)Lo2 - longitude of last grid point (degrees)Di - longitudinal direction increment (degrees)Dj - latitudinal direction increment (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(RealTupleType ref,
int gridTypeCode,
int Ni,
int Nj,
double La1,
double Lo1,
double La2,
double Lo2,
double Di,
double Dj)
throws VisADException
ref - reference RealTupleType (should be lat/lon)gridTypeCode - GRIB-1 grid typeNi - number of points (W-E) along a latitude circleNj - number of points (N-S) along a longitude circleLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)La2 - latitude of last grid point (degrees)Lo2 - longitude of last grid point (degrees)Di - longitudinal direction increment (degrees)Dj - latitudinal direction increment (degrees)
VisADException - couldn't create the necessary VisAD object
When type=3, then the parameters are (see construtor for 3):
ref = ref, Ni = Ni, Nj = Nj, La1 = La1, Lo1 = Lo1, La2 = DxDy,
Lo2 = Latin1, Di = Latin2, Dj = lov
public GRIBCoordinateSystem(int Ni,
int Nj,
double La1,
double Lo1,
double Di,
double Dj)
throws VisADException
Ni - number of points (W-E) along a latitude circleNj - number of points (N-S) along a longitude circleLa1 - latitude of first grid point (degrees)Lo1 - longitude of first grid point (degrees)Di - longitudinal direction increment (degrees)Dj - latitudinal direction increment (degrees)
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(int gridNumber)
throws VisADException
gridNumber - GRIB grid number
VisADException - couldn't create the necessary VisAD object
public GRIBCoordinateSystem(RealTupleType ref,
int gridNumber)
throws VisADException
ref - reference RealTupleType (should be lat/lon)gridNumber - GRIB grid number
VisADException - couldn't create the necessary VisAD object| Method Detail |
|---|
public double[][] toReference(double[][] tuples)
throws VisADException
toReference in class CoordinateSystemtuples - contains the x,y coordinates (grid col, row)
VisADException - if problem with conversion.
public double[][] fromReference(double[][] tuples)
throws VisADException
fromReference in class CoordinateSystemtuples - contains the lat,lon coordinates
VisADException - if problem with conversion.public boolean equals(Object cs)
equals in class CoordinateSystemcs - the object in question.
true if and only if this instance equals cs.public Rectangle2D getDefaultMapArea()
getDefaultMapArea in class MapProjectionpublic double getAspectRatio()
public static boolean isGridNumberKnown(int gridNumber)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||