public class WrfUtil extends GridUtil
GridUtil.Grid2D, GridUtil.Normalize2DArray, GridUtil.QuantileTransformer, GridUtil.RobustScaler
DEFAULT_ERROR_MODE, DEFAULT_SAMPLING_MODE, DEPENDENT_ERRORS, ENSEMBLE_TYPE, FUNC_AVERAGE, FUNC_DIFFERENCE, FUNC_MAX, FUNC_MIN, FUNC_SUM, INDEPENDENT_ERRORS, NEAREST_NEIGHBOR, NO_ERRORS, SMOOTH_5POINT, SMOOTH_9POINT, SMOOTH_CIRCULAR, SMOOTH_CRESSMAN, SMOOTH_GAUSSIAN, SMOOTH_RECTANGULAR, WEIGHTED_AVERAGE
Constructor and Description |
---|
WrfUtil() |
Modifier and Type | Method and Description |
---|---|
double |
distance(double lat1,
double lon1,
double lat2,
double lon2) |
static Range[] |
fieldMinMax(visad.FlatField field,
java.lang.String function)
Find min and max of range data in any VisAD FlatField
|
static float[] |
findPointDisFromMaxCenter(visad.FieldImpl timeStep,
float val,
float preVal,
float lat0,
float lon0,
float alt0,
float deltaAlt) |
static float[] |
findPointDisFromMaxCenter(visad.FieldImpl timeStep,
float val,
float preVal,
float lat0,
float lon0,
float alt0,
float deltaLatLon,
float angle) |
static float[] |
findPointDisFromSFC(visad.FieldImpl timeStep,
float val,
float preVal,
float lat0,
float lon0,
float deltaAlt) |
double |
getArea(java.util.List points,
int IDX_LAT,
int IDX_LON) |
static visad.FieldImpl |
getGridMinMaxAsPointObs(visad.FieldImpl grid,
double min,
double max)
Find min and max of range data in any VisAD FieldImpl
|
static visad.FieldImpl |
getIsoSurfaceTopBottomAsPointObs(visad.FieldImpl gridh,
visad.FieldImpl grid,
int level,
float value) |
static visad.FieldImpl |
getIsoSurfaceTopBottomAsPointObs(visad.FieldImpl grid,
float value) |
protected float[][] |
getLatLons(java.util.List points,
int IDX_LAT,
int IDX_LON)
Convert points list of array of xyz or lat/lon/alt
|
static PointObTuple |
getPointObValTuple(float[] lln,
float value,
float alt0,
visad.RealTupleType rtt,
visad.TupleType rangeType0,
visad.DateTime dt) |
static visad.FieldImpl |
getSpeedAreaNRadiusAsPointObs(visad.FieldImpl grid1,
visad.FieldImpl grid0,
int level,
float value) |
static visad.FieldImpl |
getSpeedAreaNRadiusAsPointObs(visad.FieldImpl grid0,
int level,
float value)
Find min and max of range data in any VisAD FieldImpl
|
static PointOb[] |
makePointObsForAreaRadius(visad.FlatField timeStep,
visad.DateTime dt,
float val,
java.lang.String function)
Make point obs from a single timestep of a grid
|
static PointOb[] |
makePointObsForAreaRadius(visad.FlatField timeSteph,
visad.FlatField timeStep,
visad.DateTime dt,
float val,
java.lang.String function) |
static PointOb[] |
makePointObsForTopBottom(visad.FlatField timeStep,
visad.DateTime dt,
float val,
java.lang.String function)
Make point obs from a single timestep of a grid
|
static PointOb[] |
makePointObsForTopBottom(visad.FlatField timehStep,
visad.FlatField timeStep,
visad.DateTime dt,
float val,
java.lang.String function) |
addLevelToGrid, applyFunctionOverTime, averageOverTime, canSliceAtLevel, canSliceAtLevel, canSwapLatLon, classifier, differenceFromBaseTime, exportGridToNetcdf, exportGridToNetcdf, extractParam, extractParam, fieldMinMax, fillMissing, findContainedIndices, findContainedIndices, findContainedLatLons, findContainedLatLons, findIndicesInsideRange, findIndicesOutsideRange, findMinMaxAverage, findMinMaxAverageFromRange, findNotContainedIndices, findNotContainedIndices, findOptimalLambda, findOptimalLambda, getAltitude, getAltitude, getCenterLatLonPoint, getCenterLatLonPoint, getCenterPoint, getCenterPoint, getDateTimeList, getEarthLocationPoints, getEnsembleSet, getEnsembleType, getGridAsPointObs, getLatLon, getLatLonRect, getLatLons, getLatLons, getLevel, getMinMax, getNavigation, getNavigation, getParam, getParam, getParamType, getParamUnits, getProfileAtLatLonPoint, getProfileAtLatLonPoint, getProfileAtLatLonPoint, getSequenceType, getSpatialDomain, getSpatialDomain, getTimeSet, getVerticalType, getVerticalType, getVerticalUnit, getVerticalUnit, getWholeSpatialDomain, glyphsToMap, hasEnsemble, is2D, is2D, is3D, is3D, isAllMissing, isAllMissing, isAnyMissing, isConstantSpatialDomain, isGrid, isLatLonOrder, isLatLonOrder, isLonCyclic, isLonCyclic, isNavigated, isNavigated, isSequence, isSinglePointDomain, isSinglePointDomain, isTimeSequence, isVolume, logLikelihood, lonFlip, main, make2DGridFromSlice, make2DGridFromSlice, makeDataRange, makeDataRanges, makeDomain2D, makeGrid, makeGrid, makeGrid2D, makeNewParamType, makeRadarMapProjection, makeRange, makeRanges, max, maxOverTime, mean, medianFilter, medianFilter, medianFilter, medianFilterOrg, min, minOverTime, normalizeLongitude, normalizeLongitude, normalizeLongitude, parseXml, printit, printModes, read, replaceRangeValues, resampleGrid, resampleGrid, resampleGrid, sample, sample, sample, sample, sample, sample, sample, sampleToReal, sampleToReal, sampleToReal, sampleToRealTuple, sampleToRealTuple, setAltitudeValues, setParamType, setParamType, setParamType, setParamType, setParamType, setParamType, setParamType, setPressureValues, setSpatialDomain, setSpatialDomain, setVerticalValues, slice, slice, slice, sliceAlongLatLonLine, sliceAlongLatLonLine, sliceAlongLatLonLine, sliceAlongLatLonLine, sliceAlongLatLonLine, sliceAtLevel, sliceAtLevel, sliceAtLevel, sliceAtLevel, smooth, smooth, subset, subset, subset, subsetDomain, sumFromBaseTime, sumOverTime, swapLatLon, testIt, timeStepDifference, timeStepFunc, timeStepSum, writeGridAtPolygonToXls, writeGridToXls, writeGridToXls, yeoJohnsonTransform, yeoJohnsonTransform
public static visad.FieldImpl getGridMinMaxAsPointObs(visad.FieldImpl grid, double min, double max) throws visad.VisADException
grid
- a VisAD FlatField. Cannot be nullmin
- double valuemax
- double valuejava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic static visad.FieldImpl getSpeedAreaNRadiusAsPointObs(visad.FieldImpl grid0, int level, float value) throws visad.VisADException
grid0
- a VisAD FlatField. Cannot be nulllevel
- level valuevalue
- floatjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic static visad.FieldImpl getSpeedAreaNRadiusAsPointObs(visad.FieldImpl grid1, visad.FieldImpl grid0, int level, float value) throws visad.VisADException
visad.VisADException
public static PointOb[] makePointObsForAreaRadius(visad.FlatField timeSteph, visad.FlatField timeStep, visad.DateTime dt, float val, java.lang.String function) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public static PointOb[] makePointObsForAreaRadius(visad.FlatField timeStep, visad.DateTime dt, float val, java.lang.String function) throws visad.VisADException, java.rmi.RemoteException
timeStep
- the griddt
- the timestep for the gridval
- float valuefunction
- name stringjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic static PointObTuple getPointObValTuple(float[] lln, float value, float alt0, visad.RealTupleType rtt, visad.TupleType rangeType0, visad.DateTime dt) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public static float[] findPointDisFromMaxCenter(visad.FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaLatLon, float angle) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public static Range[] fieldMinMax(visad.FlatField field, java.lang.String function) throws visad.VisADException, java.rmi.RemoteException
field
- a VisAD FlatField. Cannot be nullfunction
- function namejava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic static visad.FieldImpl getIsoSurfaceTopBottomAsPointObs(visad.FieldImpl grid, float value) throws visad.VisADException
visad.VisADException
public static PointOb[] makePointObsForTopBottom(visad.FlatField timeStep, visad.DateTime dt, float val, java.lang.String function) throws visad.VisADException, java.rmi.RemoteException
timeStep
- the griddt
- the timestep for the gridval
- the valuefunction
- name of functionjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic static float[] findPointDisFromMaxCenter(visad.FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaAlt) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public double getArea(java.util.List points, int IDX_LAT, int IDX_LON) throws java.lang.Exception
java.lang.Exception
public double distance(double lat1, double lon1, double lat2, double lon2) throws java.lang.Exception
java.lang.Exception
protected float[][] getLatLons(java.util.List points, int IDX_LAT, int IDX_LON) throws visad.VisADException, java.rmi.RemoteException
points
- List of points. Either double array or EarthLocationIDX_LAT
- idxIDX_LON
- idxjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic static visad.FieldImpl getIsoSurfaceTopBottomAsPointObs(visad.FieldImpl gridh, visad.FieldImpl grid, int level, float value) throws visad.VisADException
visad.VisADException
public static PointOb[] makePointObsForTopBottom(visad.FlatField timehStep, visad.FlatField timeStep, visad.DateTime dt, float val, java.lang.String function) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public static float[] findPointDisFromSFC(visad.FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float deltaAlt) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException