Package ucar.nc2.iosp.grid
Class GridHorizCoordSys
- java.lang.Object
-
- ucar.nc2.iosp.grid.GridHorizCoordSys
-
public class GridHorizCoordSys extends Object
A horizontal coordinate system created from a GridDefRecordNote on "false_easting" and "fale_northing" projection parameters:
- false_easting(northing) = The value added to all x (y) values in the rectangular coordinates for a map projection. This value frequently is assigned to eliminate negative numbers. Expressed in the unit of measure identified in Planar Coordinate Units.
- We dont currently use, assuming that the x and y are just fine as negetive numbers.
-
-
Constructor Summary
Constructors Constructor Description GridHorizCoordSys(GridDefRecord gds, GridTableLookup lookup, Group g)
Create a new GridHorizCoordSys with the grid definition and lookup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDxInKm()
Get the X spacing in kilometersdouble
getDyInKm()
Get the Y spacing in kilometersGridDefRecord
getGds()
returns the gds for this hcsprotected String
getGDSprefix()
String
getGridName()
Get the grid nameGroup
getGroup()
Get the groupString
getID()
Get the IDint
getNx()
Get the number of x pointsint
getNy()
Get the number of Y pointsboolean
isLatLon()
Is this a lat/lon grid
-
-
-
Constructor Detail
-
GridHorizCoordSys
public GridHorizCoordSys(GridDefRecord gds, GridTableLookup lookup, Group g)
Create a new GridHorizCoordSys with the grid definition and lookup- Parameters:
gds
- grid definitionlookup
- lookup table for namesg
- Group for this coord system
-
-
Method Detail
-
getID
public String getID()
Get the ID- Returns:
- the ID
-
getGridName
public String getGridName()
Get the grid name- Returns:
- the grid name
-
getGroup
public Group getGroup()
Get the group- Returns:
- the group
-
isLatLon
public boolean isLatLon()
Is this a lat/lon grid- Returns:
- true if is lat/lon
-
getNx
public int getNx()
Get the number of x points- Returns:
- the number of x points
-
getNy
public int getNy()
Get the number of Y points- Returns:
- the number of Y points
-
getDxInKm
public double getDxInKm()
Get the X spacing in kilometers- Returns:
- the X spacing in kilometers
-
getDyInKm
public double getDyInKm()
Get the Y spacing in kilometers- Returns:
- the Y spacing in kilometers
-
getGDSprefix
protected String getGDSprefix()
-
getGds
public GridDefRecord getGds()
returns the gds for this hcs- Returns:
- gds GridDefRecord
-
-