Package ucar.nc2.grib.grib2
Class Grib2Gds
- java.lang.Object
-
- ucar.nc2.grib.grib2.Grib2Gds
-
- Direct Known Subclasses:
GdsSpherical,Grib2Gds.CurvilinearOrthogonal,Grib2Gds.LambertConformal,Grib2Gds.LatLon,Grib2Gds.Mercator,Grib2Gds.PolarStereographic,Grib2Gds.SpaceViewPerspective
@Immutable public abstract class Grib2Gds extends Object
Template-specific fields for Grib2SectionGridDefinition LOOK hashCode not right, cant use approximate float compare- Since:
- 4/2/11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrib2Gds.AbstractRotatedLatLonstatic classGrib2Gds.AlbersEqualAreastatic classGrib2Gds.CurvilinearOrthogonalstatic classGrib2Gds.GaussLatLonstatic classGrib2Gds.LambertConformalstatic classGrib2Gds.LatLonstatic classGrib2Gds.Mercatorstatic classGrib2Gds.PolarStereographicstatic classGrib2Gds.RotatedLatLonstatic classGrib2Gds.RotatedLatLon32769static classGrib2Gds.SpaceViewPerspective
-
Field Summary
Fields Modifier and Type Field Description intcenterprotected byte[]datafloatearthRadiusintearthShapeprotected inthashCodeprotected intlastOctetfloatmajorAxisfloatminorAxisprotected int[]nptsInLineprotected intscanModeinttemplate
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static Grib2Gdsfactory(int template, byte[] data)protected voidfinish()protected ucar.unidata.geoloc.EarthgetEarth()StringgetNameShort()int[]getNptsInLine()intgetNx()intgetNxRaw()intgetNy()intgetNyRaw()protected intgetOctet(int index)byte[]getRawBytes()intgetScanMode()inthashCode()booleanisLatLon()booleanisThin()abstract GdsHorizCoordSysmakeHorizCoordSys()voidsetCenter(int center)abstract voidtestHorizCoordSys(Formatter f)voidtestScanMode(Formatter f)
-
-
-
Field Detail
-
data
protected final byte[] data
-
template
public int template
-
center
public int center
-
earthRadius
public float earthRadius
-
majorAxis
public float majorAxis
-
minorAxis
public float minorAxis
-
scanMode
protected int scanMode
-
earthShape
public int earthShape
-
nptsInLine
protected int[] nptsInLine
-
lastOctet
protected int lastOctet
-
hashCode
protected int hashCode
-
-
Method Detail
-
factory
public static Grib2Gds factory(int template, byte[] data)
-
finish
protected void finish()
-
makeHorizCoordSys
public abstract GdsHorizCoordSys makeHorizCoordSys()
-
testHorizCoordSys
public abstract void testHorizCoordSys(Formatter f)
-
testScanMode
public void testScanMode(Formatter f)
-
getNx
public int getNx()
-
getNy
public int getNy()
-
getNxRaw
public int getNxRaw()
-
getNyRaw
public int getNyRaw()
-
getNptsInLine
public int[] getNptsInLine()
-
getRawBytes
public byte[] getRawBytes()
-
getScanMode
public int getScanMode()
-
setCenter
public void setCenter(int center)
-
isLatLon
public boolean isLatLon()
-
getNameShort
public String getNameShort()
-
isThin
public boolean isThin()
-
getOctet
protected int getOctet(int index)
-
getEarth
protected ucar.unidata.geoloc.Earth getEarth()
-
-