public class GridAsPointDataset
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GridAsPointDataset.Point |
Constructor and Description |
---|
GridAsPointDataset(java.util.List<GridDatatype> grids) |
Modifier and Type | Method and Description |
---|---|
java.util.List<CalendarDate> |
getDates() |
double |
getMissingValue(GridDatatype grid) |
boolean |
hasTime(GridDatatype grid,
CalendarDate date) |
boolean |
hasVert(GridDatatype grid,
double zCoord) |
static void |
main(java.lang.String[] args) |
GridAsPointDataset.Point |
readData(GridDatatype grid,
CalendarDate date,
double lat,
double lon) |
GridAsPointDataset.Point |
readData(GridDatatype grid,
CalendarDate date,
double zCoord,
double lat,
double lon) |
GridAsPointDataset.Point |
readData(GridDatatype grid,
CalendarDate date,
double ensCoord,
double zCoord,
double lat,
double lon)
Reads one single data for one point.
|
GridAsPointDataset.Point |
readData(GridDatatype grid,
CalendarDate date,
EarthLocation location,
boolean bounded)
Reads data for the given point (earthlocation) and if bounded is true returns data for the closest point within the grid, for points outside of the grid
|
public GridAsPointDataset(java.util.List<GridDatatype> grids)
public java.util.List<CalendarDate> getDates()
public boolean hasTime(GridDatatype grid, CalendarDate date)
public double getMissingValue(GridDatatype grid)
public GridAsPointDataset.Point readData(GridDatatype grid, CalendarDate date, double lat, double lon) throws java.io.IOException
java.io.IOException
public boolean hasVert(GridDatatype grid, double zCoord)
public GridAsPointDataset.Point readData(GridDatatype grid, CalendarDate date, double zCoord, double lat, double lon) throws java.io.IOException
java.io.IOException
public GridAsPointDataset.Point readData(GridDatatype grid, CalendarDate date, double ensCoord, double zCoord, double lat, double lon) throws java.io.IOException
grid
- date
- ensCoord
- zCoord
- lat
- lon
- java.io.IOException
public GridAsPointDataset.Point readData(GridDatatype grid, CalendarDate date, EarthLocation location, boolean bounded) throws java.io.IOException
grid
- read data from heredate
- at this timelocation
- EarthLocation, if altitude is NaN assume that is 2D pointbounded
- if bounded, location must be in grid cell; otherwise get nearest grid point to locationjava.io.IOException
- on bad stuffpublic static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException