类 RadialRecord
- java.lang.Object
-
- org.meteoinfo.data.meteodata.radar.RadialRecord
-
public class RadialRecord extends Object
-
-
构造器概要
构造器 构造器 说明 RadialRecord(String product)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddAzimuth(float a)Add an azimuth valuevoidaddAzimuth(int scanIdx, float a)Add an azimuth valuevoidaddDataArray(org.meteoinfo.ndarray.Array array)Add a data arrayvoidaddDataBytes(byte[] bytes)Add a data bytesvoidaddDataBytes(byte[] bytes, int offset, int scale)Add a data bytesvoidaddDataBytes(int index, byte[] bytes)Add a data bytesintgetAzimuthIndex(int ei, float a)Get azimuth value indexint[]getAzimuthIndices(int ei, float a)Get azimuth value indicesList<org.meteoinfo.ndarray.Array>getDataArray(int scanIdx)Get data arrayorg.meteoinfo.ndarray.DataTypegetDataType()Get data typeintgetGateNumber(int scanIdx)Get radial number of a scanintgetMaxRadials()Get maximum radials numberintgetMinRadials()Get minimum radials numberRadarDataTypegetRadarDataType()Get radar data typeintgetRadialNumber(int scanIdx)Get radial number of a scanint[]getScanIndices(float e)Get scan indicesint[]getScanIndices(float e, float halfBeamWidth)Get scan indicesintgetScanNumber()Get scan numberList<Float>getSortedAzimuth(int scanIndex)Get sorted azimuth listfloatgetValue(int ei, float a, float r)Get value by elevation index, azimuth and distanceorg.meteoinfo.ndarray.ArraygetXYZ(int scanIdx)Get XYZ data arrayfloatinterpolateValue(float e, float a, float r)Interpolate value by elevation, azimuth and distance - linear interpolatefloatinterpolateValue(float e, float a, float r, float halfBeamWidth)Interpolate value by elevation, azimuth and distance - linear interpolatefloatinterpolateValue(int ei, float a, float r)Interpolate value by elevation index, azimuth and distancefloatinterpolateValue(int ei, int ai, float r)Interpolate value by elevation index, azimuth index and distancebooleanisVelocityGroup()Is velocity group or notvoidmakeVariable(BaseRadarDataInfo dataInfo, Dimension[] dimensions)Make variablevoidmakeVariables(BaseRadarDataInfo dataInfo, Dimension xyzDim)Make variablesvoidnewScanData()Add new scan data listvoidsetBinLength(int value)Set bin length and update DataTypevoidsetDataType(org.meteoinfo.ndarray.DataType dataType)Set data typevoidsetRadarDataType(RadarDataType radarDataType)Set radar data type
-
-
-
构造器详细资料
-
RadialRecord
public RadialRecord(String product)
Constructor- 参数:
product- Product name
-
-
方法详细资料
-
getRadarDataType
public RadarDataType getRadarDataType()
Get radar data type- 返回:
- Radar data type
-
setRadarDataType
public void setRadarDataType(RadarDataType radarDataType)
Set radar data type- 参数:
radarDataType- Radar data type
-
setBinLength
public void setBinLength(int value)
Set bin length and update DataType- 参数:
value- Bin length
-
getDataType
public org.meteoinfo.ndarray.DataType getDataType()
Get data type- 返回:
- Data type
-
setDataType
public void setDataType(org.meteoinfo.ndarray.DataType dataType)
Set data type- 参数:
dataType- Data type
-
addAzimuth
public void addAzimuth(float a)
Add an azimuth value- 参数:
a- Azimuth value
-
addAzimuth
public void addAzimuth(int scanIdx, float a)Add an azimuth value- 参数:
scanIdx- Scan indexa- Azimuth value
-
isVelocityGroup
public boolean isVelocityGroup()
Is velocity group or not- 返回:
- Velocity group or not
-
getScanNumber
public int getScanNumber()
Get scan number- 返回:
- Scan number
-
getRadialNumber
public int getRadialNumber(int scanIdx)
Get radial number of a scan- 参数:
scanIdx- The scan index- 返回:
- Radial number
-
getGateNumber
public int getGateNumber(int scanIdx)
Get radial number of a scan- 参数:
scanIdx- The scan index- 返回:
- Radial number
-
newScanData
public void newScanData()
Add new scan data list
-
addDataArray
public void addDataArray(org.meteoinfo.ndarray.Array array)
Add a data array- 参数:
array- Data array
-
addDataBytes
public void addDataBytes(byte[] bytes)
Add a data bytes- 参数:
bytes- Data bytes
-
addDataBytes
public void addDataBytes(int index, byte[] bytes)Add a data bytes- 参数:
index- Scan indexbytes- Data bytes
-
addDataBytes
public void addDataBytes(byte[] bytes, int offset, int scale)Add a data bytes- 参数:
bytes- Data bytesoffset- Offsetscale- Scale
-
getDataArray
public List<org.meteoinfo.ndarray.Array> getDataArray(int scanIdx)
Get data array- 参数:
scanIdx- The scan index- 返回:
- Data array
-
getMaxRadials
public int getMaxRadials()
Get maximum radials number- 返回:
- Maximum radials number
-
getMinRadials
public int getMinRadials()
Get minimum radials number- 返回:
- Minimum radials number
-
getXYZ
public org.meteoinfo.ndarray.Array getXYZ(int scanIdx)
Get XYZ data array- 参数:
scanIdx- The scan index- 返回:
- XYZ data array
-
makeVariable
public void makeVariable(BaseRadarDataInfo dataInfo, Dimension[] dimensions)
Make variable- 参数:
dataInfo- The data infodimensions- Dimensions
-
makeVariables
public void makeVariables(BaseRadarDataInfo dataInfo, Dimension xyzDim)
Make variables- 参数:
dataInfo- The data infoxyzDim- xyz dimension
-
getSortedAzimuth
public List<Float> getSortedAzimuth(int scanIndex)
Get sorted azimuth list- 参数:
scanIndex- Scan index- 返回:
- Sorted azimuth list
-
getAzimuthIndex
public int getAzimuthIndex(int ei, float a)Get azimuth value index- 参数:
ei- Scan indexa- Azimuth value- 返回:
- Azimuth value index
-
getAzimuthIndices
public int[] getAzimuthIndices(int ei, float a)Get azimuth value indices- 参数:
ei- Scan indexa- Azimuth value- 返回:
- Azimuth value indices - 2 elements
-
getScanIndices
public int[] getScanIndices(float e)
Get scan indices- 参数:
e- Elevation value- 返回:
- Scan indices - 2 elements
-
getScanIndices
public int[] getScanIndices(float e, float halfBeamWidth)Get scan indices- 参数:
e- Elevation valuehalfBeamWidth- Half beam width- 返回:
- Scan indices - 2 elements
-
getValue
public float getValue(int ei, float a, float r)Get value by elevation index, azimuth and distance- 参数:
ei- Elevation indexa- Azimuth valuer- Distance value- 返回:
- Data value
-
interpolateValue
public float interpolateValue(int ei, int ai, float r)Interpolate value by elevation index, azimuth index and distance- 参数:
ei- Elevation indexai- Azimuth indexr- Distance value- 返回:
- Data value
-
interpolateValue
public float interpolateValue(int ei, float a, float r)Interpolate value by elevation index, azimuth and distance- 参数:
ei- Elevation indexa- Azimuth valuer- Distance value- 返回:
- Data value
-
interpolateValue
public float interpolateValue(float e, float a, float r)Interpolate value by elevation, azimuth and distance - linear interpolate- 参数:
e- Elevation valuea- Azimuth valuer- Distance value- 返回:
- Data value
-
interpolateValue
public float interpolateValue(float e, float a, float r, float halfBeamWidth)Interpolate value by elevation, azimuth and distance - linear interpolate- 参数:
e- Elevation valuea- Azimuth valuer- Distance valuehalfBeamWidth- Half beam width- 返回:
- Data value
-
-