|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wdssii.core.DataType org.wdssii.core.LatLonGrid
public class LatLonGrid
A regularly spaced grid where the first dimension is latitude and the second dimension is longitude. The (0,0) location is the north-west corner. In the first dimension, latitude decreases (southward) and in the second dimension, longitude increases (eastward).
Nested Class Summary | |
---|---|
static class |
LatLonGrid.Pixel
|
Field Summary | |
---|---|
private float |
deltaLat
|
private float |
deltaLon
|
private static org.apache.commons.logging.Log |
log
|
private float[][] |
values
|
Fields inherited from class org.wdssii.core.DataType |
---|
attributes, DataUnavailable, MissingData, originLocation, RangeFolded, startTime, typeName |
Constructor Summary | |
---|---|
LatLonGrid(LatLonGrid master)
|
|
LatLonGrid(Location nwCorner,
Date time,
String typeName,
float deltaLat,
float deltaLon,
float[][] values)
|
|
LatLonGrid(Location nwCorner,
Date time,
String typeName,
float deltaLat,
float deltaLon,
int numLat,
int numLon)
All the values are initialized to zero |
Method Summary | |
---|---|
void |
convertToUnit(ucar.units.Unit toUnit)
Converts all the values in this grid to the specified unit. |
float |
getDeltaLat()
positive number that indicates the size of a pixel in lat-direction |
float |
getDeltaLon()
positive number that indicates the size of a pixel in lon-direction |
int |
getNumLat()
|
int |
getNumLon()
|
LatLonGrid.Pixel |
getPixel(Location loc)
returns the Pixel corresponding to the location. |
float |
getValue(LatLonGrid.Pixel p)
|
float |
getValue(Location loc)
Get the value at a Location. |
float[][] |
getValues()
|
void |
setValues(float[][] values2)
Can be used to set all the values of the grid at once. |
Methods inherited from class org.wdssii.core.DataType |
---|
addAttributes, copyOf, getAttribute, getAttributes, getLocation, getTime, getTypeName, getUnit, getUTC, setAttribute, setAttributes, setTypeName, toStringDB |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
private final float deltaLat
private final float deltaLon
private float[][] values
Constructor Detail |
---|
public LatLonGrid(LatLonGrid master)
public LatLonGrid(Location nwCorner, Date time, String typeName, float deltaLat, float deltaLon, float[][] values)
public LatLonGrid(Location nwCorner, Date time, String typeName, float deltaLat, float deltaLon, int numLat, int numLon)
Method Detail |
---|
public float[][] getValues()
public int getNumLat()
public int getNumLon()
public float getDeltaLat()
public float getDeltaLon()
public void convertToUnit(ucar.units.Unit toUnit)
grid
- toUnit
- Use UdUnits.parse() to create this UnitUdUnits.parse()
public float getValue(Location loc)
public LatLonGrid.Pixel getPixel(Location loc)
public float getValue(LatLonGrid.Pixel p)
public void setValues(float[][] values2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |