类 RadialRecord


  • public class RadialRecord
    extends Object
    • 字段详细资料

      • product

        public String product
      • scale

        public float scale
      • offset

        public float offset
      • fixedElevation

        public List<Float> fixedElevation
      • azimuthMinIndex

        public List<Integer> azimuthMinIndex
      • distance

        public List<org.meteoinfo.ndarray.Array> distance
      • disResolution

        public List<Float> disResolution
    • 构造器详细资料

      • 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 index
        a - 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 index
        bytes - Data bytes
      • addDataBytes

        public void addDataBytes​(byte[] bytes,
                                 int offset,
                                 int scale)
        Add a data bytes
        参数:
        bytes - Data bytes
        offset - Offset
        scale - 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 info
        dimensions - Dimensions
      • makeVariables

        public void makeVariables​(BaseRadarDataInfo dataInfo,
                                  Dimension xyzDim)
        Make variables
        参数:
        dataInfo - The data info
        xyzDim - 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 index
        a - Azimuth value
        返回:
        Azimuth value index
      • getAzimuthIndices

        public int[] getAzimuthIndices​(int ei,
                                       float a)
        Get azimuth value indices
        参数:
        ei - Scan index
        a - 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 value
        halfBeamWidth - 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 index
        a - Azimuth value
        r - 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 index
        ai - Azimuth index
        r - Distance value
        返回:
        Data value
      • interpolateValue

        public float interpolateValue​(int ei,
                                      float a,
                                      float r)
        Interpolate value by elevation index, azimuth and distance
        参数:
        ei - Elevation index
        a - Azimuth value
        r - 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 value
        a - Azimuth value
        r - 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 value
        a - Azimuth value
        r - Distance value
        halfBeamWidth - Half beam width
        返回:
        Data value