Package ucar.unidata.data.grid
Class WrfUtil
java.lang.Object
ucar.unidata.data.grid.GridUtil
ucar.unidata.data.grid.WrfUtil
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.data.grid.GridUtil
GridUtil.Grid2D, GridUtil.Normalize2DArray, GridUtil.QuantileTransformer, GridUtil.RobustScaler
-
Field Summary
Fields inherited from class ucar.unidata.data.grid.GridUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
distance
(double lat1, double lon1, double lat2, double lon2) static Range[]
fieldMinMax
(FlatField field, String function) Find min and max of range data in any VisAD FlatFieldstatic float[]
findPointDisFromMaxCenter
(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaAlt) static float[]
findPointDisFromMaxCenter
(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaLatLon, float angle) static float[]
findPointDisFromSFC
(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float deltaAlt) double
static FieldImpl
getGridMinMaxAsPointObs
(FieldImpl grid, double min, double max) Find min and max of range data in any VisAD FieldImplstatic FieldImpl
getIsoSurfaceTopBottomAsPointObs
(FieldImpl grid, float value) static FieldImpl
getIsoSurfaceTopBottomAsPointObs
(FieldImpl gridh, FieldImpl grid, int level, float value) protected float[][]
getLatLons
(List points, int IDX_LAT, int IDX_LON) Convert points list of array of xyz or lat/lon/altstatic PointObTuple
getPointObValTuple
(float[] lln, float value, float alt0, RealTupleType rtt, TupleType rangeType0, DateTime dt) static FieldImpl
getSpeedAreaNRadiusAsPointObs
(FieldImpl grid0, int level, float value) Find min and max of range data in any VisAD FieldImplstatic FieldImpl
getSpeedAreaNRadiusAsPointObs
(FieldImpl grid1, FieldImpl grid0, int level, float value) static PointOb[]
makePointObsForAreaRadius
(FlatField timeStep, DateTime dt, float val, String function) Make point obs from a single timestep of a gridstatic PointOb[]
makePointObsForAreaRadius
(FlatField timeSteph, FlatField timeStep, DateTime dt, float val, String function) static PointOb[]
makePointObsForTopBottom
(FlatField timeStep, DateTime dt, float val, String function) Make point obs from a single timestep of a gridstatic PointOb[]
makePointObsForTopBottom
(FlatField timehStep, FlatField timeStep, DateTime dt, float val, String function) Methods inherited from class ucar.unidata.data.grid.GridUtil
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, writeGridToCsv, writeGridToXls, writeGridToXls, yeoJohnsonTransform, yeoJohnsonTransform
-
Constructor Details
-
WrfUtil
public WrfUtil()
-
-
Method Details
-
getGridMinMaxAsPointObs
public static FieldImpl getGridMinMaxAsPointObs(FieldImpl grid, double min, double max) throws VisADException Find min and max of range data in any VisAD FieldImpl- Parameters:
grid
- a VisAD FlatField. Cannot be nullmin
- double valuemax
- double value- Returns:
- the range of the data as point obs
- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD Error
-
getSpeedAreaNRadiusAsPointObs
public static FieldImpl getSpeedAreaNRadiusAsPointObs(FieldImpl grid0, int level, float value) throws VisADException Find min and max of range data in any VisAD FieldImpl- Parameters:
grid0
- a VisAD FlatField. Cannot be nulllevel
- level valuevalue
- float- Returns:
- the range of the data as point obs
- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD Error
-
getSpeedAreaNRadiusAsPointObs
public static FieldImpl getSpeedAreaNRadiusAsPointObs(FieldImpl grid1, FieldImpl grid0, int level, float value) throws VisADException - Throws:
VisADException
-
makePointObsForAreaRadius
public static PointOb[] makePointObsForAreaRadius(FlatField timeSteph, FlatField timeStep, DateTime dt, float val, String function) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
makePointObsForAreaRadius
public static PointOb[] makePointObsForAreaRadius(FlatField timeStep, DateTime dt, float val, String function) throws VisADException, RemoteException Make point obs from a single timestep of a grid- Parameters:
timeStep
- the griddt
- the timestep for the gridval
- float valuefunction
- name string- Returns:
- a Field of PointObs
- Throws:
RemoteException
- Java RMI problemVisADException
- VisAD problem
-
getPointObValTuple
public static PointObTuple getPointObValTuple(float[] lln, float value, float alt0, RealTupleType rtt, TupleType rangeType0, DateTime dt) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
findPointDisFromMaxCenter
public static float[] findPointDisFromMaxCenter(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaLatLon, float angle) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
fieldMinMax
public static Range[] fieldMinMax(FlatField field, String function) throws VisADException, RemoteException Find min and max of range data in any VisAD FlatField- Parameters:
field
- a VisAD FlatField. Cannot be nullfunction
- function name- Returns:
- the range of the data. Dimension is the number of parameters in the range of the flat field
- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD Error
-
getIsoSurfaceTopBottomAsPointObs
public static FieldImpl getIsoSurfaceTopBottomAsPointObs(FieldImpl grid, float value) throws VisADException - Throws:
VisADException
-
makePointObsForTopBottom
public static PointOb[] makePointObsForTopBottom(FlatField timeStep, DateTime dt, float val, String function) throws VisADException, RemoteException Make point obs from a single timestep of a grid- Parameters:
timeStep
- the griddt
- the timestep for the gridval
- the valuefunction
- name of function- Returns:
- a Field of PointObs
- Throws:
RemoteException
- Java RMI problemVisADException
- VisAD problem
-
findPointDisFromMaxCenter
public static float[] findPointDisFromMaxCenter(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float alt0, float deltaAlt) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
getArea
- Throws:
Exception
-
distance
- Throws:
Exception
-
getLatLons
protected float[][] getLatLons(List points, int IDX_LAT, int IDX_LON) throws VisADException, RemoteException Convert points list of array of xyz or lat/lon/alt- Parameters:
points
- List of points. Either double array or EarthLocationIDX_LAT
- idxIDX_LON
- idx- Returns:
- lat/lons
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
getIsoSurfaceTopBottomAsPointObs
public static FieldImpl getIsoSurfaceTopBottomAsPointObs(FieldImpl gridh, FieldImpl grid, int level, float value) throws VisADException - Throws:
VisADException
-
makePointObsForTopBottom
public static PointOb[] makePointObsForTopBottom(FlatField timehStep, FlatField timeStep, DateTime dt, float val, String function) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
findPointDisFromSFC
public static float[] findPointDisFromSFC(FieldImpl timeStep, float val, float preVal, float lat0, float lon0, float deltaAlt) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-