|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.grid.GridUtil
public class GridUtil
Set of static methods for messing with grids. A grid is defined as a FieldImpl which has one of the following MathTypes structures:
(x,y) -> (parm) (x,y) -> (parm1, ..., parmN) (x,y,z) -> (parm) (x,y,z) -> (parm1, ..., parmN) (t -> (x,y) -> (parm)) (t -> (x,y) -> (parm1, ..., parmN)) (t -> (x,y,z) -> (parm)) (t -> (x,y,z) -> (parm1, ..., parmN)) (t -> (index -> (x,y) -> (parm))) (t -> (index -> (x,y) -> (parm1, ..., parmN))) (t -> (index -> (x,y,z) -> (parm))) (t -> (index -> (x,y,z) -> (parm1, ..., parmN)))In general, t is a time variable, but it might also be just an index.
| Nested Class Summary | |
|---|---|
static class |
GridUtil.Grid2D
Class Grid2D holds a 2d lat/lon and value array |
| Field Summary | |
|---|---|
static int |
DEFAULT_ERROR_MODE
Default error mode used for subsampling grids |
static int |
DEFAULT_SAMPLING_MODE
Default sampling mode used for subsampling grids |
static int |
DEPENDENT_ERRORS
Dependent error mode |
static RealType |
ENSEMBLE_TYPE
ensemble RealType |
static String |
FUNC_AVERAGE
Deprecated. use GridMath.FUNC_AVERAGE |
static String |
FUNC_DIFFERENCE
Deprecated. use GridMath.FUNC_DIFFERENCE |
static String |
FUNC_MAX
Deprecated. use GridMath.FUNC_MAX |
static String |
FUNC_MIN
Deprecated. use GridMath.FUNC_MIN |
static String |
FUNC_SUM
Deprecated. use GridMath.FUNC_SUM |
static int |
INDEPENDENT_ERRORS
Independent error mode |
static int |
NEAREST_NEIGHBOR
Nearest Neighbor sampling mode |
static int |
NO_ERRORS
No error mode |
static String |
SMOOTH_5POINT
Five point smoother identifier |
static String |
SMOOTH_9POINT
Nine point smoother identifier |
static String |
SMOOTH_CIRCULAR
Barnes circular smoother identifier |
static String |
SMOOTH_CRESSMAN
Cressman smoother identifier |
static String |
SMOOTH_GAUSSIAN
Gaussian smoother identifier |
static String |
SMOOTH_RECTANGULAR
Barnes circular smoother identifier |
static int |
WEIGHTED_AVERAGE
Weighted average sampling mode |
| Constructor Summary | |
|---|---|
GridUtil()
Default ctor |
|
| Method Summary | |
|---|---|
static FieldImpl |
applyFunctionOverTime(FieldImpl grid,
String function,
boolean makeTimes)
Deprecated. use GridMath.applyFunctionOverTime(FieldImpl, String, boolean) |
static FieldImpl |
averageOverTime(FieldImpl grid,
boolean makeTimes)
Deprecated. use GridMath.averageOverTime(FieldImpl, boolean) |
static boolean |
canSliceAtLevel(FieldImpl grid,
Real level)
Determine whether the grid in question can be sliced at the level specified (i.e., units or CS allows this) |
static boolean |
canSliceAtLevel(SampledSet spatialSet,
Real level)
Determine whether the set in question can be sliced at the level specified (i.e., units or CS allows this) |
static boolean |
canSwapLatLon(FieldImpl grid)
Can the lat/lons be swapped? |
static FieldImpl |
differenceFromBaseTime(FieldImpl grid)
Deprecated. use GridMath.differenceFromBaseTime(FieldImpl) |
static void |
exportGridToNetcdf(FieldImpl grid)
Write grid out to a netCDF CF compliant file |
static void |
exportGridToNetcdf(FieldImpl grid,
String filename)
Write grid out to a netCDF CF compliant file |
FieldImpl |
extractParam(FieldImpl grid,
MathType paramType)
Extract a single parameter from a grid of multiple parameters. |
static FieldImpl |
extractParam(FieldImpl grid,
ScalarType param)
Extract the param from a sequence, it will be the range type of the individual elements. |
static Range[] |
fieldMinMax(FlatField field)
Find min and max of range data in any VisAD FlatField |
static void |
fillMissing(float[][] grid2D,
float missingValue)
Fill a structure with missing values with nearby grid values |
static int[][] |
findContainedIndices(float[][] latlon,
UnionSet map)
Find the indices of the latlon values contained in the map |
static int[][] |
findContainedIndices(GriddedSet domain,
UnionSet map)
Find the indices of the domain values contained in the map |
static float[][][] |
findContainedLatLons(float[][] latlons,
UnionSet maps)
Find the lat/lon values in the given spatial domain contained by the polygons in the given map set |
static float[][][] |
findContainedLatLons(GriddedSet domain,
UnionSet maps)
Find the lat/lon values in the given spatial domain contained by the polygons in the given map set |
static int[][] |
findIndicesInsideRange(float[][] values,
float min,
float max)
Finds the indices of the values array whose value is in the given range |
static int[][] |
findIndicesOutsideRange(float[][] values,
float min,
float max)
Finds the indices of the values array whose value is not in the given range |
static List<FieldStats> |
findMinMaxAverage(FieldImpl field,
UnionSet mapSets)
Find the min/max and average of a file inside the mapsets |
static FieldStats |
findMinMaxAverageFromRange(FlatField field,
UnionSet mapSets)
Find the min, max and average from the range |
static int[][] |
findNotContainedIndices(float[][] latlon,
UnionSet map)
Find the indices of the latlon values contained in the map |
static int[][] |
findNotContainedIndices(GriddedSet domain,
UnionSet map)
find the indices not contained in the map domian |
static Real |
getAltitude(FieldImpl grid,
Real level)
Get the altitude corresponding to the level specified using the domain of the grid. |
static LatLonPoint |
getCenterLatLonPoint(FieldImpl grid)
Get the latitude/longitude point at the center of the grid. |
static LatLonPoint |
getCenterLatLonPoint(SampledSet spatialDomain)
Get the latitude/longitude point at the center of the domain. |
static RealTuple |
getCenterPoint(FieldImpl grid)
Method to get the center point of a grid's spatial domain as a RealTuple. |
static RealTuple |
getCenterPoint(SampledSet spatialDomain)
Method to get the center point of a spatial domain as a RealTuple. |
static List<DateTime> |
getDateTimeList(FieldImpl grid)
Get the list of DateTime objects from the domain of the given grid |
static float[][] |
getEarthLocationPoints(GriddedSet domain)
Convert the domain to the reference earth located points |
static Gridded1DSet |
getEnsembleSet(FieldImpl ensGrid)
Return the ensemble set for the field |
static RealType |
getEnsembleType(FieldImpl grid)
Get the RealType of the ensemble. |
static FieldImpl |
getGridAsPointObs(FieldImpl grid)
Convert a grid to point obs |
static float[][] |
getLatLon(GriddedSet domain)
Convert the domain to the reference earth located points. |
static float[][][] |
getLatLons(float[][] latlons,
int[][] indices)
Find the lat/lon values in the given spatial domain for the given indices |
static float[][][] |
getLatLons(GriddedSet domain,
int[][] indices)
Find the lat/lon values in the given spatial domain for the given indices |
static Real |
getLevel(FieldImpl grid,
Real altitude)
Get the altitude corresponding to the level specified using the domain of the grid. |
static Range[] |
getMinMax(FieldImpl fieldImpl)
get max and min of all range values in the current active fieldImpl |
static MapProjection |
getNavigation(FieldImpl grid)
Get the navigation for this grid |
static MapProjection |
getNavigation(SampledSet spatialSet)
Get the navigation for this spatialDomain |
static FieldImpl |
getParam(FieldImpl grid,
int index)
Extract the range MathType of the lowest element. |
static FieldImpl |
getParam(FieldImpl grid,
int index,
boolean copy)
Extract the range MathType of the lowest element. |
static TupleType |
getParamType(FieldImpl grid)
Get the range MathType of the lowest element. |
static Unit[] |
getParamUnits(FieldImpl grid)
Get the range MathType of the lowest element. |
static FieldImpl |
getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point)
Returns a vertical profile of a grid at a Lat/Lon point. |
static FieldImpl |
getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point,
int samplingMode)
Returns a vertical profile of a grid at a Lat/Lon point. |
static FieldImpl |
getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point,
int samplingMode,
int errorMode)
Returns a vertical profile of a grid at a Lat/Lon point. |
static RealType |
getSequenceType(FieldImpl grid)
Get the RealType of the sequence. |
static SampledSet |
getSpatialDomain(FieldImpl grid)
Get the spatial domain for this grid. |
static SampledSet |
getSpatialDomain(FieldImpl grid,
int timeIndex)
Get the spatial domain for this grid at the specified time step. |
static Set |
getTimeSet(FieldImpl grid)
Get the time set from the grid. |
static RealType |
getVerticalType(FieldImpl grid)
Get the RealType of the vertical dimension of the spatial domain of the grid. |
static RealType |
getVerticalType(SampledSet domainSet)
Get the unit of the vertical dimension of the domain set. |
static Unit |
getVerticalUnit(FieldImpl grid)
Get the unit of the vertical dimension of the spatial domain of the grid. |
static Unit |
getVerticalUnit(SampledSet domainSet)
Get the unit of the vertical dimension of the domain. |
static SampledSet |
getWholeSpatialDomain(FieldImpl grid)
Get the spatial domain for this grid. |
static boolean |
hasEnsemble(FieldImpl grid)
Check to see if this is an ensemble grid |
static boolean |
is2D(FieldImpl grid)
Check to see if this is a 2D grid |
static boolean |
is2D(SampledSet domainSet)
Check to see if this is a 2D domain |
static boolean |
is3D(FieldImpl grid)
Check to see if this is a 3D grid |
static boolean |
is3D(SampledSet domainSet)
Check to see if this is a 3D domain |
static boolean |
isAllMissing(FieldImpl field)
Check if all real values in a FieldImpl are missing. |
static boolean |
isAllMissing(FieldImpl grid,
boolean popupErrorMessage)
Check if all real values in a FieldImpl are missing. |
static boolean |
isAnyMissing(FieldImpl grid)
Check if any of the real values in a FieldImpl are missing. |
static boolean |
isConstantSpatialDomain(FieldImpl grid)
See if the spatial domain of this grid is constant (ie: not time varying) |
static boolean |
isGrid(FieldImpl field)
Check to see if this field is a grid that can be handled by these methods |
static boolean |
isLatLonOrder(FieldImpl grid)
Check to see if this is a navigated grid (domain can be converted to lat/lon) |
static boolean |
isLatLonOrder(SampledSet spatialSet)
Check to see if this is a navigated domain (can be converted to lat/lon) |
static boolean |
isLonCyclic(double first,
double last)
Check to see if the longitude values are cyclic within the default epsilon (i.e., last == first+360 +- 0.0005) |
static boolean |
isLonCyclic(double first,
double last,
double epsilon)
Check to see if the longitude values are cyclic (i.e., last == first+360 within esplion) |
static boolean |
isNavigated(FieldImpl grid)
Check to see if this is a navigated grid (domain can be converted to lat/lon) |
static boolean |
isNavigated(SampledSet spatialSet)
Check to see if this is a navigated domain (can be converted to lat/lon) |
static boolean |
isSequence(FieldImpl grid)
Check to see if this is a single grid or if it is a sequence of grids. |
static boolean |
isSinglePointDomain(FieldImpl grid)
See if the domain of the grid is a single point (only 1 x and y value). |
static boolean |
isSinglePointDomain(SampledSet ss)
See if the domain is a single point (only 1 x and y value). |
static boolean |
isTimeSequence(FieldImpl grid)
Check to see if this is a single grid or if it is a time sequence of grids. |
static boolean |
isVolume(FieldImpl grid)
Is the gievn field a volume. |
static FieldImpl |
lonFlip(FieldImpl grid)
Flip the grid along the central longitude. |
static void |
main(String[] args)
test |
static FieldImpl |
make2DGridFromSlice(FieldImpl slice)
Transform a 2D slice (3D grid with 2D manifold) into a 2D grid. |
static FieldImpl |
make2DGridFromSlice(FieldImpl slice,
boolean copy)
Transform a 2D slice (3D grid with 2D manifold) into a 2D grid. |
static DataRange |
makeDataRange(Range range)
Make a DataRange from a Range |
static DataRange[] |
makeDataRanges(Range[] range)
Make an array of DataRanges from an array of Ranges |
static Gridded2DSet |
makeDomain2D(GriddedSet domainSet)
Transform a (possibly) 3D set into a 2D set (removing the Z dimension) |
static float[][] |
makeGrid(float[][][] grid2D,
int numCols,
int numRows,
float missingValue)
Make a grid structure |
static float[][] |
makeGrid(float[][] grid2D,
int numCols,
int numRows,
float missingValue)
Make a grid structure |
static GridUtil.Grid2D |
makeGrid2D(FieldImpl grid)
rectangulrize the given field, making a grid2d out of its spatial domain and values |
static TupleType |
makeNewParamType(TupleType oldParamType,
String newSuffix)
Make a new type for the field by appending the suffix to the exiting RealTypes in the range |
static MapProjection |
makeRadarMapProjection(CoordinateSystem radarCS)
Return a MapProjection that relates to the Radar*DCoordinateSystem. |
static Range |
makeRange(DataRange range)
Make a range from a VisAD data range |
static Range[] |
makeRanges(DataRange[] range)
Make an array of Ranges from an array of DataRanges |
static FieldImpl |
maxOverTime(FieldImpl grid,
boolean makeTimes)
Deprecated. use GridMath.maxOverTime(FieldImpl, boolean) |
static FieldImpl |
minOverTime(FieldImpl grid,
boolean makeTimes)
Deprecated. use GridMath.minOverTime |
static String |
printit(FieldImpl field)
Print the type of the sample of a data object |
static String |
printModes(int samplingMode,
int errorMode)
Print out the sampling and error modes modes |
static FieldImpl |
resampleGrid(FieldImpl grid,
SampledSet subDomain)
Resample the grid at the positions defined by a SampledSet using the default methods and error propagation. |
static FieldImpl |
resampleGrid(FieldImpl grid,
SampledSet subDomain,
int samplingMode)
Resample the grid at the positions defined by a SampledSet using the method specified and default error propagation. |
static FieldImpl |
resampleGrid(FieldImpl grid,
SampledSet subDomain,
int samplingMode,
int errorMode)
Resample the grid at the positions defined by a SampledSet. |
static FieldImpl |
sample(FieldImpl grid,
EarthLocation location)
Sample the grid at the position defined by the EarthLocation |
static FieldImpl |
sample(FieldImpl grid,
EarthLocation location,
int samplingMode)
Sample the grid at the position defined by the EarthLocation |
static FieldImpl |
sample(FieldImpl grid,
EarthLocation location,
int samplingMode,
int errorMode)
Sample the grid at the position defined by the EarthLocation with the VisAD resampling method given. |
static FieldImpl |
sample(FieldImpl grid,
LatLonPoint point)
Sample the grid at the position defined by the LatLonPoint |
static FieldImpl |
sample(FieldImpl grid,
LatLonPoint point,
int samplingMode)
Sample the grid at the position defined by the LatLonPoint |
static FieldImpl |
sample(FieldImpl grid,
LatLonPoint point,
int samplingMode,
int errorMode)
Sample the grid at the position defined by the LatLonPoint |
static Real |
sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue)
This samples the given grid in both time and space and trys to return a Real value |
static Real |
sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode)
This samples the given grid in both time and space and trys to return a Real value |
static Real |
sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode,
int errorMode)
This samples the given grid in both time and space and trys to return a Real value |
static RealTuple |
sampleToRealTuple(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode)
This samples the given grid in both time and space and trys to return a Real value |
static RealTuple |
sampleToRealTuple(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode,
int errorMode)
This samples the given grid in both time and space and trys to return a Real value |
static FieldImpl |
setAltitudeValues(FieldImpl grid,
float[] altValues)
Set the altitude values for a grid |
static FieldImpl |
setParamType(FieldImpl grid,
RealType newParam)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
RealType newParam,
boolean copy)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
String newName)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
String[] newNames,
boolean copy)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
String newName,
boolean copy)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
TupleType newParam)
Set the range MathType of the lowest element. |
static FieldImpl |
setParamType(FieldImpl grid,
TupleType newParam,
boolean copy)
Set the range MathType of the lowest element. |
static FieldImpl |
setPressureValues(FieldImpl grid,
float[] pressValues)
Set the pressure values for a grid |
static FieldImpl |
setSpatialDomain(FieldImpl grid,
SampledSet newDomain)
Change the spatial domain of a grid using the new one. |
static FieldImpl |
setSpatialDomain(FieldImpl grid,
SampledSet newDomain,
boolean copy)
Change the spatial domain of a grid using the new one. |
static FieldImpl |
setVerticalValues(FieldImpl grid,
float[] newValues,
RealType vertType,
Unit vertUnit)
Set the vertical values |
static FieldImpl |
slice(FieldImpl grid,
SampledSet slice)
Slice the grid at the positions defined by a SampledSet. |
static FieldImpl |
slice(FieldImpl grid,
SampledSet slice,
int samplingMode)
Slice the grid at the positions defined by a SampledSet. |
static FieldImpl |
slice(FieldImpl grid,
SampledSet slice,
int samplingMode,
int errorMode)
Slice the grid at the positions defined by a SampledSet. |
static FieldImpl |
sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end)
Slice the grid along the line specified by the two LatLonPoint-s |
static FieldImpl |
sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end,
int samplingMode)
Slice the grid along the line specified by the two LatLonPoint-s |
static FieldImpl |
sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end,
int samplingMode,
int errorMode)
Slice the grid along the line specified by the two LatLonPoint-s |
static FieldImpl |
sliceAtLevel(FieldImpl grid,
double levelValue)
Slice the grid at the vertical level indictated. |
static FieldImpl |
sliceAtLevel(FieldImpl grid,
Real level)
Slice the grid at the vertical level indictated. |
static FieldImpl |
sliceAtLevel(FieldImpl grid,
Real level,
int samplingMode)
Slice the grid at the vertical level indictated. |
static FieldImpl |
sliceAtLevel(FieldImpl grid,
Real level,
int samplingMode,
int errorMode)
Slice the grid at the vertical level indictated. |
static FieldImpl |
smooth(FieldImpl slice,
String type)
Smooth a 2D field |
static FieldImpl |
smooth(FieldImpl slice,
String type,
int filterLevel)
Smooth a 2D field |
static FieldImpl |
subset(FieldImpl grid,
int skip)
Create a subset of the grid, skipping every nth point in the X and Y direction. |
static FieldImpl |
subset(FieldImpl grid,
int skipx,
int skipy)
Create a subset of the grid skipping every i'th x and j'th y point. |
static FieldImpl |
subset(FieldImpl grid,
int skipx,
int skipy,
int skipz)
Create a subset of the grid skipping every i'th x and j'th y point and k'th z point |
static FieldImpl |
sumFromBaseTime(FieldImpl grid)
Deprecated. use GridMath.sumFromBaseTime(FieldImpl) |
static FieldImpl |
sumOverTime(FieldImpl grid,
boolean makeTimes)
Deprecated. use GridMath.sumOverTime(FieldImpl, boolean) |
static FieldImpl |
swapLatLon(FieldImpl grid)
Swap the lat/lon coordinates of the grid. |
static void |
testIt(FieldImpl grid)
test |
static FieldImpl |
timeStepDifference(FieldImpl grid,
int offset)
Deprecated. use GridMath.timeStepDifference(FieldImpl, int) |
static FieldImpl |
timeStepFunc(FieldImpl grid,
int offset,
String func)
Deprecated. use GridMath.timeStepFunc(FieldImpl, int, String) |
static FieldImpl |
timeStepSum(FieldImpl grid,
int offset)
Deprecated. use GridMath.timeStepSum(FieldImpl, int) |
static void |
writeGridToXls(FieldImpl grid)
Write grid out to an Excel spreadsheet |
static void |
writeGridToXls(FieldImpl grid,
String filename)
Write grid out to an Excel spreadsheet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WEIGHTED_AVERAGE
public static final int NEAREST_NEIGHBOR
public static final int NO_ERRORS
public static final int DEPENDENT_ERRORS
public static final int INDEPENDENT_ERRORS
public static final int DEFAULT_SAMPLING_MODE
public static final int DEFAULT_ERROR_MODE
public static final String FUNC_AVERAGE
public static final String FUNC_SUM
public static final String FUNC_MAX
public static final String FUNC_MIN
public static final String FUNC_DIFFERENCE
public static final String SMOOTH_5POINT
public static final String SMOOTH_9POINT
public static final String SMOOTH_GAUSSIAN
public static final String SMOOTH_CRESSMAN
public static final String SMOOTH_CIRCULAR
public static final String SMOOTH_RECTANGULAR
public static final RealType ENSEMBLE_TYPE
| Constructor Detail |
|---|
public GridUtil()
| Method Detail |
|---|
public static boolean isGrid(FieldImpl field)
field - fieldImpl to check
public static boolean isConstantSpatialDomain(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem getting Data object
public static SampledSet getSpatialDomain(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem getting domain set
public static SampledSet getWholeSpatialDomain(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem getting domain set
public static SampledSet getSpatialDomain(FieldImpl grid,
int timeIndex)
throws VisADException
grid - grid to checktimeIndex - timestep to check
VisADException - problem getting domain set
public static FieldImpl setSpatialDomain(FieldImpl grid,
SampledSet newDomain)
throws VisADException
grid - grid to change.newDomain - Must have same length as current spatial domain of
grid
VisADException - wrong domain length or VisAD problem.
public static FieldImpl setSpatialDomain(FieldImpl grid,
SampledSet newDomain,
boolean copy)
throws VisADException
grid - grid to change.newDomain - Must have same length as current spatial domain of
gridcopy - copy values
VisADException - wrong domain length or VisAD problem.
public static boolean isSinglePointDomain(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem accessing grid
public static boolean isSinglePointDomain(SampledSet ss)
throws VisADException
ss - domain set of the grid
VisADException - problem accessing gridpublic static boolean isSequence(FieldImpl grid)
grid - grid to check
isTimeSequence(FieldImpl)
public static boolean hasEnsemble(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem determining this
public static RealType getEnsembleType(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get the informationhasEnsemble(FieldImpl)
public static Gridded1DSet getEnsembleSet(FieldImpl ensGrid)
throws VisADException
ensGrid - the ensemble grid
VisADException - problems reading data
public static boolean isTimeSequence(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem determining this
public static Set getTimeSet(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem determining this
public static List<DateTime> getDateTimeList(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem determining this
public static boolean isNavigated(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - can't create VisAD object
public static boolean isNavigated(SampledSet spatialSet)
throws VisADException
spatialSet - spatial domain of grid to check
VisADException - can't create VisAD object
public static MapProjection getNavigation(FieldImpl grid)
throws VisADException
grid - grid to use
VisADException - no navigation or some other error
public static MapProjection getNavigation(SampledSet spatialSet)
throws VisADException
spatialSet - spatial set for grid
VisADException - no navigation or some other error
public static boolean isLatLonOrder(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - can't get at VisAD objects
public static boolean isLatLonOrder(SampledSet spatialSet)
throws VisADException
spatialSet - spatial domain of the grid
VisADException - can't get at VisAD objects
public static RealType getSequenceType(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get the informationisSequence(FieldImpl)
public static boolean is3D(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get the information
public static boolean isVolume(FieldImpl grid)
throws VisADException
grid - The grid
VisADException - On badness
public static RealTuple sampleToRealTuple(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode)
throws VisADException,
RemoteException
grid - The gridel - LocationanimationValue - The time to sample at. If null then we
just sample at the locationsamplingMode - mode to use
RemoteException - On badness
VisADException - On badness
public static RealTuple sampleToRealTuple(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode,
int errorMode)
throws VisADException,
RemoteException
grid - The gridel - LocationanimationValue - The time to sample at. If null then we just sample at the locationsamplingMode - sampling mode to useerrorMode - error mode to use
RemoteException - On badness
VisADException - On badness
public static Real sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue)
throws VisADException,
RemoteException
grid - The gridel - LocationanimationValue - Time
RemoteException - On badness
VisADException - On badness
public static Real sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode)
throws VisADException,
RemoteException
grid - The gridel - LocationanimationValue - The time to sample at. If null then we just sample
at the locationsamplingMode - mode to use
RemoteException - On badness
VisADException - On badness
public static Real sampleToReal(FieldImpl grid,
EarthLocation el,
Real animationValue,
int samplingMode,
int errorMode)
throws VisADException,
RemoteException
grid - The gridel - LocationanimationValue - The time to sample at. If null then we just sample
at the locationsamplingMode - sampling mode to useerrorMode - error mode to use
RemoteException - On badness
VisADException - On badness
public static boolean is3D(SampledSet domainSet)
throws VisADException
domainSet - spatial domain of the grid
VisADException - unable to get the information
public static boolean is2D(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get the information
public static boolean is2D(SampledSet domainSet)
throws VisADException
domainSet - spatial domain to check
VisADException - unable to get the information
public static FieldImpl subset(FieldImpl grid,
int skip)
throws VisADException
grid - grid to subsetskip - x and y skip factor
VisADException - unable to subset the grid
public static FieldImpl subset(FieldImpl grid,
int skipx,
int skipy)
throws VisADException
grid - grid to subsampleskipx - x skip factorskipy - y skip factor
VisADException - unable to subsample grid
public static FieldImpl subset(FieldImpl grid,
int skipx,
int skipy,
int skipz)
throws VisADException
grid - grid to subsampleskipx - x skip factorskipy - y skip factorskipz - z skip factor
VisADException - unable to subsample grid
public static FieldImpl sliceAtLevel(FieldImpl grid,
Real level)
throws VisADException
grid - grid to slice (must be a valid 3D grid)level - level to slice at. level must have units
convertible with the vertial coordinate of the spatial
domain or it's reference if there is a CoordinateSystem
associated with the domain.
VisADException - problem in resampling
public static FieldImpl sliceAtLevel(FieldImpl grid,
Real level,
int samplingMode)
throws VisADException
grid - grid to slice (must be a valid 3D grid)level - level to slice at. level must have units
convertible with the vertial coordinate of the spatial
domain or it's reference if there is a CoordinateSystem
associated with the domain.samplingMode - Data.WEIGHTED_AVERAGE or Data.NEAREST_NEIGHBOR
VisADException - problem in resampling
public static FieldImpl sliceAtLevel(FieldImpl grid,
Real level,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to slice (must be a valid 3D grid)level - level to slice at. level must have units
convertible with the vertial coordinate of the spatial
domain or it's reference if there is a CoordinateSystem
associated with the domain.samplingMode - Data.WEIGHTED_AVERAGE or Data.NEAREST_NEIGHBORerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
VisADException - problem in resampling
public static boolean isAllMissing(FieldImpl field)
throws VisADException
field - fieldImpl to check
VisADException - unable to open VisAD object
public static boolean isAllMissing(FieldImpl grid,
boolean popupErrorMessage)
throws VisADException
grid - grid to checkpopupErrorMessage - pop up a JOptionDialog box is all are missing
VisADException - unable to open VisAD object
public static boolean isAnyMissing(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to open VisAD object
public static FieldImpl averageOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to averagemakeTimes - If true then make a time field with the range being the same computed value
If false then just return a single field of the computed values
VisADException - On badness
public static FieldImpl timeStepDifference(FieldImpl grid,
int offset)
throws VisADException
grid - grid to averageoffset - time step offset. e.g., offset=-1 results in D(T)=D(T)-D(T-1)
VisADException - On badness
public static FieldImpl timeStepSum(FieldImpl grid,
int offset)
throws VisADException
grid - grid to averageoffset - time step offset. e.g., offset=-1 results in D(T)=D(T)+D(T-1)
VisADException - On badness
public static FieldImpl differenceFromBaseTime(FieldImpl grid)
throws VisADException
grid - grid to average
VisADException - On badness
public static FieldImpl sumFromBaseTime(FieldImpl grid)
throws VisADException
grid - grid to average
VisADException - On badness
public static FieldImpl timeStepFunc(FieldImpl grid,
int offset,
String func)
throws VisADException
grid - grid to averageoffset - time step offset.func - which function to apply, SUM or DIFFERENCE
VisADException - On badness
public static FieldImpl sumOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl minOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl maxOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl applyFunctionOverTime(FieldImpl grid,
String function,
boolean makeTimes)
throws VisADException
grid - grid to averagefunction - One of the GridMath.FUNC_ enumsmakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static Gridded2DSet makeDomain2D(GriddedSet domainSet)
throws VisADException
domainSet - the 2 or 3D domain
VisADException - unable to create 2D slice
public static TupleType makeNewParamType(TupleType oldParamType,
String newSuffix)
throws VisADException
oldParamType - old parameter type containing only real componentsnewSuffix - the new suffix for Range RealTypes
VisADException - problem creating new types
public static GridUtil.Grid2D makeGrid2D(FieldImpl grid)
throws VisADException,
RemoteException
grid - the grid
RemoteException - On badness
VisADException - On badness
public static void testIt(FieldImpl grid)
throws VisADException,
RemoteException
grid - test
RemoteException - On badness
VisADException - On badness
public static FieldImpl sliceAtLevel(FieldImpl grid,
double levelValue)
throws VisADException
grid - grid to slice (must be a valid 3D grid)levelValue - level value to slice at. Value is assumed
to be in the units of the vertical coordinate of the
spatial domain of the FieldImpl
VisADException - problem in resampling
public static FieldImpl getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point)
throws VisADException
null if no such profile could be created.
grid - grid to slice (must be a valid 3D grid)point - LatLonPoint to sample at.
null. If this is a
sequence of grids it will be a sequence of the slices.
VisADException - problem in resampling
public static FieldImpl getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point,
int samplingMode)
throws VisADException
null if no such profile could be created.
grid - grid to slice (must be a valid 3D grid)point - LatLonPoint to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBOR
null. If this is a
sequence of grids it will be a sequence of the slices.
VisADException - problem in resampling
public static FieldImpl getProfileAtLatLonPoint(FieldImpl grid,
LatLonPoint point,
int samplingMode,
int errorMode)
throws VisADException
null if no such profile could be created.
grid - grid to slice (must be a valid 3D grid)point - LatLonPoint to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBORerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
null. If this is a
sequence of grids it will be a sequence of the slices.
VisADException - problem in resampling
public static FieldImpl sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end)
throws VisADException
grid - grid to slice (must be a valid 2D or 3D grid)start - starting LatLonPoint of the lineend - starting LatLonPoint of the line
VisADException - problem in resampling
public static FieldImpl sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end,
int samplingMode)
throws VisADException
grid - grid to slice (must be a valid 2D or 3D grid)start - starting LatLonPoint of the lineend - starting LatLonPoint of the linesamplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBOR
VisADException - problem in resampling
public static FieldImpl sliceAlongLatLonLine(FieldImpl grid,
LatLonPoint start,
LatLonPoint end,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to slice (must be a valid 2D or 3D grid)start - starting LatLonPoint of the lineend - starting LatLonPoint of the linesamplingMode - mode for samplingerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
VisADException - problem in resampling
public static FieldImpl sample(FieldImpl grid,
EarthLocation location)
throws VisADException
grid - grid to sample (must be a valid 3D grid)location - EarthLocation to sample at.
VisADException - invalid point or some other problem
public static FieldImpl sample(FieldImpl grid,
EarthLocation location,
int samplingMode)
throws VisADException
grid - grid to sample (must be a valid 3D grid)location - EarthLocation to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBOR
VisADException - invalid point or some other problem
public static FieldImpl sample(FieldImpl grid,
EarthLocation location,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to sample (must be a valid 3D grid)location - EarthLocation to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBORerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
VisADException - invalid point or some other problem
public static FieldImpl sample(FieldImpl grid,
LatLonPoint point)
throws VisADException
grid - grid to sample (must be a valid 3D grid)point - LatLonPoint to sample at.
VisADException - invalid point or some other problem
public static FieldImpl sample(FieldImpl grid,
LatLonPoint point,
int samplingMode)
throws VisADException
grid - grid to sample (must be a valid 3D grid)point - LatLonPoint to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBOR
VisADException - invalid point or some other problem
public static FieldImpl sample(FieldImpl grid,
LatLonPoint point,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to sample (must be a valid 3D grid)point - LatLonPoint to sample at.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBORerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
VisADException - invalid point or some other problem
public static FieldImpl slice(FieldImpl grid,
SampledSet slice)
throws VisADException
grid - grid to slice (must be a valid 3D grid)slice - set of points to sample on. It must be compatible
with the spatial domain of the grid.
VisADException - invalid slice or some other problem
public static FieldImpl slice(FieldImpl grid,
SampledSet slice,
int samplingMode)
throws VisADException
grid - grid to slice (must be a valid 3D grid)slice - set of points to sample on. It must be compatible
with the spatial domain of the grid.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBOR
VisADException - invalid slice or some other problem
public static FieldImpl slice(FieldImpl grid,
SampledSet slice,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to slice (must be a valid 3D grid)slice - set of points to sample on. It must be compatible
with the spatial domain of the grid.samplingMode - Data.WEIGHTED_AVERAGE or NEAREST_NEIGHBORerrorMode - Data.NO_ERRORS, Data.DEPENDENT, Data.INDEPENDENT
VisADException - invalid slice or some other problem
public static FieldImpl make2DGridFromSlice(FieldImpl slice)
throws VisADException
slice - slice to transform
VisADException - unable to create 2D slice
public static FieldImpl make2DGridFromSlice(FieldImpl slice,
boolean copy)
throws VisADException
slice - slice to transformcopy - true to copy data
VisADException - unable to create 2D slice
public static Unit[] getParamUnits(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get at data types
public static String printit(FieldImpl field)
throws VisADException,
RemoteException
field - the field
RemoteException - java RMI problem
VisADException - unable to get at data types
public static TupleType getParamType(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - unable to get at data types
public static FieldImpl getParam(FieldImpl grid,
int index)
throws VisADException
grid - grid to checkindex - parameter index
VisADException - unable to get at data types
public static FieldImpl getParam(FieldImpl grid,
int index,
boolean copy)
throws VisADException
grid - grid to checkindex - parameter indexcopy - true to make a copy
VisADException - unable to get at data types
public static FieldImpl setParamType(FieldImpl grid,
String newName)
throws VisADException
grid - grid to changenewName - name of new parameter
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
String newName,
boolean copy)
throws VisADException
grid - grid to changenewName - name of new parametercopy - true to make a copy
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
String[] newNames,
boolean copy)
throws VisADException
grid - grid to changenewNames - names of new parameterscopy - true to make a copy
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
RealType newParam)
throws VisADException
grid - grid to changenewParam - MathType of new parameter
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
RealType newParam,
boolean copy)
throws VisADException
grid - grid to changenewParam - RealType of new parametercopy - true to copy data
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
TupleType newParam)
throws VisADException
grid - grid to changenewParam - MathType of new parameter
VisADException - problem setting new parameter
public static FieldImpl setParamType(FieldImpl grid,
TupleType newParam,
boolean copy)
throws VisADException
grid - grid to changenewParam - MathType of new parametercopy - true to copy the data
VisADException - problem setting new parameter
public static FieldImpl extractParam(FieldImpl grid,
ScalarType param)
throws VisADException
grid - grid to changeparam - MathType of new parameter
VisADException - problem setting new parameter
public FieldImpl extractParam(FieldImpl grid,
MathType paramType)
throws VisADException
grid - to extract fromparamType - param to extract
VisADException - some problem occured (like the param isn't
in the grid)
public static MapProjection makeRadarMapProjection(CoordinateSystem radarCS)
throws VisADException
radarCS - radar coordinate system (Radar2DCoordinateSystem or
Radar3DCoordinateSystem)
VisADException - problem creating MapProjection.
public static FieldImpl resampleGrid(FieldImpl grid,
SampledSet subDomain)
throws VisADException
grid - grid to resample (must be a valid 3D grid)subDomain - set of points to sample on. It must be compatible
with the spatial domain of the grid.
VisADException - invalid subDomain or some other problem
public static FieldImpl resampleGrid(FieldImpl grid,
SampledSet subDomain,
int samplingMode)
throws VisADException
grid - grid to resample (must be a valid 3D grid)subDomain - set of points to sample on. It must be compatible
with the spatial domain of the grid.samplingMode - sampling method to use for slicing
VisADException - invalid subDomain or some other problem
public static RealTuple getCenterPoint(FieldImpl grid)
throws VisADException
grid - grid to evaluate
VisADException - problem accessing the data
public static RealTuple getCenterPoint(SampledSet spatialDomain)
throws VisADException
spatialDomain - domain to evaluate
VisADException - problem accessing the data
public static LatLonPoint getCenterLatLonPoint(FieldImpl grid)
throws VisADException
grid - grid to evaluate
VisADException - problem accessing the data
public static LatLonPoint getCenterLatLonPoint(SampledSet spatialDomain)
throws VisADException
spatialDomain - domain to evaluate
VisADException - problem accessing the data
public static FieldImpl resampleGrid(FieldImpl grid,
SampledSet subDomain,
int samplingMode,
int errorMode)
throws VisADException
grid - grid to resample (must be a valid 3D grid)subDomain - set of points to sample on. It must be compatible
with the spatial domain of the grid.samplingMode - sampling method to use for slicingerrorMode - error method to use for error propagation
VisADException - invalid subDomain or some other problem
public static Real getLevel(FieldImpl grid,
Real altitude)
throws VisADException
grid - grid to usealtitude - altitude to convert.
VisADException
public static Real getAltitude(FieldImpl grid,
Real level)
throws VisADException
grid - grid to uselevel - must be compatible (unit wise) with vertical coordinate
of the grid
VisADException - VisAD error
public static RealType getVerticalType(FieldImpl grid)
throws VisADException
grid - grid to check
VisADException - problem getting the type
public static RealType getVerticalType(SampledSet domainSet)
throws VisADException
domainSet - domainSet to check
VisADException - problem getting the type
public static Unit getVerticalUnit(FieldImpl grid)
throws VisADException
grid - domain to check
VisADException - problem getting the unit
public static Unit getVerticalUnit(SampledSet domainSet)
throws VisADException
domainSet - domain to check
VisADException - problem getting the unit
public static boolean canSliceAtLevel(FieldImpl grid,
Real level)
throws VisADException
grid - grid in questionlevel - level in question
VisADException - problem creating VisAD object
public static boolean canSliceAtLevel(SampledSet spatialSet,
Real level)
throws VisADException
spatialSet - domain set to checklevel - level in question
VisADException - problem creating VisAD object
public static Range[] fieldMinMax(FlatField field)
throws VisADException,
RemoteException
field - a VisAD FlatField. Cannot be null
RemoteException - Java RMI error
VisADException - VisAD Errorpublic static Range makeRange(DataRange range)
range - the data range
public static Range[] makeRanges(DataRange[] range)
range - the DataRanges
public static DataRange makeDataRange(Range range)
range - the Range
public static DataRange[] makeDataRanges(Range[] range)
range - the Ranges
public static Range[] getMinMax(FieldImpl fieldImpl)
throws VisADException,
RemoteException
fieldImpl - input field with outer dimension of time
RemoteException - Java RMI error
VisADException - VisAD Error
public static String printModes(int samplingMode,
int errorMode)
samplingMode - sampling modeerrorMode - error mode
public static FieldImpl getGridAsPointObs(FieldImpl grid)
throws VisADException
grid - grid to convert
VisADException - problem getting data
public static float[][] getEarthLocationPoints(GriddedSet domain)
throws VisADException
domain - the domain set
VisADException - problem converting points
public static int[][] findContainedIndices(GriddedSet domain,
UnionSet map)
throws VisADException
domain - domain to usemap - the map lines containing bounding polygons
VisADException - problem sampling
public static int[][] findContainedIndices(float[][] latlon,
UnionSet map)
throws VisADException
latlon - set of lat/lon valuesmap - the map lines containing bounding polygons
VisADException - problem sampling
public static int[][] findNotContainedIndices(GriddedSet domain,
UnionSet map)
throws VisADException
domain - grid domainmap - map of values
VisADException - problem getting at the data
public static int[][] findNotContainedIndices(float[][] latlon,
UnionSet map)
throws VisADException
latlon - set of lat/lon valuesmap - the map lines containing bounding polygons
VisADException - problem sampling
public static float[][][] getLatLons(GriddedSet domain,
int[][] indices)
throws VisADException
indices - index array we get from findContainedIndices methods. i.e., indices[numPolygons][numIndices]domain - domain to use
float[numPolygonPoints][2][numPoints]
VisADException - problem sampling
public static float[][][] getLatLons(float[][] latlons,
int[][] indices)
throws VisADException
indices - index array we get from findContainedIndices methods. i.e., indices[numPolygons][numIndices]latlons - lat/lons from the spatial domain
float[numPolygonPoints][2][numPoints]
VisADException - problem sampling
public static float[][][] findContainedLatLons(GriddedSet domain,
UnionSet maps)
throws VisADException
domain - domain to usemaps - The maps
float[numPolygonPoints][2][numPoints]
VisADException - problem sampling
public static float[][][] findContainedLatLons(float[][] latlons,
UnionSet maps)
throws VisADException
latlons - the lat/lons from the domainmaps - The maps
float[numPolygonPoints][2][numPoints]
VisADException - problem sampling
public static int[][] findIndicesInsideRange(float[][] values,
float min,
float max)
throws VisADException
values - valuesmin - min valuemax - max value
VisADException - On badness
public static int[][] findIndicesOutsideRange(float[][] values,
float min,
float max)
throws VisADException
values - valuesmin - min valuemax - max value
VisADException - On badness
public static float[][] getLatLon(GriddedSet domain)
throws VisADException
domain - the domain set
VisADException - problem converting points
public static void main(String[] args)
throws Exception
args - args
Exception - On badness
public static void writeGridToXls(FieldImpl grid)
throws Exception
grid - grid to write
Exception - problem writing grid
public static void writeGridToXls(FieldImpl grid,
String filename)
throws Exception
grid - grid to writefilename - filename
Exception - problem writing grid
public static void exportGridToNetcdf(FieldImpl grid)
throws Exception
grid - grid to write
Exception - problem writing grid
public static void exportGridToNetcdf(FieldImpl grid,
String filename)
throws Exception
grid - grid to writefilename - filename
Exception - problem writing grid
public static FieldImpl setPressureValues(FieldImpl grid,
float[] pressValues)
throws VisADException
grid - grid to changepressValues - pressure values. Must match number of levels in
the grid. Units are millibars.
VisADException - problem setting the values
public static FieldImpl setAltitudeValues(FieldImpl grid,
float[] altValues)
throws VisADException
grid - grid to changealtValues - altitude values. Must match number of levels in
the grid. Units are meters.
VisADException - problem setting the values
public static FieldImpl setVerticalValues(FieldImpl grid,
float[] newValues,
RealType vertType,
Unit vertUnit)
throws VisADException
grid - the grid to changenewValues - the new vertical values. Must match the number
of vertical levels in the grid.vertType - the type of the datavertUnit - the unit of newValues
VisADException - problem setting the values
public static List<FieldStats> findMinMaxAverage(FieldImpl field,
UnionSet mapSets)
throws VisADException,
RemoteException
field - the fieldmapSets - The map sets
RemoteException - Java RMI problem
VisADException - problem getting the values
public static FieldStats findMinMaxAverageFromRange(FlatField field,
UnionSet mapSets)
throws VisADException,
RemoteException
field - the fieldmapSets - the mapsets
RemoteException - Java RMI error
VisADException - VisAD Data error
public static boolean canSwapLatLon(FieldImpl grid)
throws VisADException
grid - to check
VisADException - problem determining if we can swap
public static FieldImpl swapLatLon(FieldImpl grid)
throws VisADException
grid - grid to swap
VisADException - VisAD problem
public static FieldImpl smooth(FieldImpl slice,
String type)
throws VisADException
slice - the 2D slicetype - the type of smoothing (SMOOTH_5POINT, etc)
VisADException - VisAD Error
public static FieldImpl smooth(FieldImpl slice,
String type,
int filterLevel)
throws VisADException
slice - the 2D slicetype - the type of smoothing (SMOOTH_5POINT, etc)filterLevel - level of filtering (used for SMOOTH_GAUSSIAN only)
VisADException - VisAD Error
public static float[][] makeGrid(float[][] grid2D,
int numCols,
int numRows,
float missingValue)
grid2D - the valuesnumCols - number of columnsnumRows - number of rowsmissingValue - the missing value
public static float[][] makeGrid(float[][][] grid2D,
int numCols,
int numRows,
float missingValue)
grid2D - the valuesnumCols - number of columnsnumRows - number of rowsmissingValue - the missing value
public static void fillMissing(float[][] grid2D,
float missingValue)
grid2D - grid structuremissingValue - missing value
public static FieldImpl lonFlip(FieldImpl grid)
throws VisADException,
RemoteException
grid - the grid to flip
RemoteException - Java RMI problem
VisADException - VisAD problem reading data
public static boolean isLonCyclic(double first,
double last)
first - first valuelast - last value
public static boolean isLonCyclic(double first,
double last,
double epsilon)
first - first valuelast - last valueepsilon - last value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||