public class GRIBCoordinateSystem extends MapProjection
| Constructor and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toStringgetLatitudeIndex, getLongitudeIndexcanConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnitspublic 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 objectpublic 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 objectpublic 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 objectpublic 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 objectpublic 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 objectpublic 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 = lovpublic 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 objectpublic GRIBCoordinateSystem(int gridNumber)
throws VisADException
gridNumber - GRIB grid numberVisADException - couldn't create the necessary VisAD objectpublic GRIBCoordinateSystem(RealTupleType ref, int gridNumber) throws VisADException
ref - reference RealTupleType (should be lat/lon)gridNumber - GRIB grid numberVisADException - couldn't create the necessary VisAD objectpublic 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 coordinatesVisADException - 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)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.