类 StationData


  • public class StationData
    extends java.lang.Object
    Template
    作者:
    Yaqiang Wang
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      double[][] data  
      org.meteoinfo.common.Extent dataExtent  
      double missingValue  
      org.meteoinfo.projection.ProjectionInfo projInfo
      Projection information
      java.util.List<java.lang.String> stations  
    • 构造器概要

      构造器 
      构造器 说明
      StationData()
      Constructor
      StationData​(StationData aStData)
      Constructor
      StationData​(org.meteoinfo.ndarray.Array a, org.meteoinfo.ndarray.Array x, org.meteoinfo.ndarray.Array y, java.lang.Number missingv)
      Constructor
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      StationData abs()
      Calculate abstract station data
      StationData acos()
      Calculate anti-cosine station data
      StationData add​(double value)
      Add operator with a double value
      StationData add​(StationData bStData)
      Add operator with another station data
      void addData​(java.lang.String id, double x, double y, double value)
      Add a data
      StationData asin()
      Calculate anti-sine station data
      StationData atan()
      Calculate anti-tangent station data
      double average()
      Calculate average value
      StationData cos()
      Calculate cosine station data
      void delMissingValue()
      Delete missing values
      StationData div​(double value)
      Divide operator with a double value
      StationData div​(StationData bStData)
      Divide operator with another station data
      StationData exp()
      Calculate e raised specific power value of station data
      StationData filter​(java.util.List<java.lang.String> stations)
      Filter station data
      void filterData_Radius​(double radius, org.meteoinfo.common.Extent aExtent)
      Filter station data by radius and extent
      boolean getMaxMinValue​(double[] maxmin)
      Get maximum and minimum values
      double getMaxValue()
      Get maximum value
      java.lang.Object[] getMaxValueIndex()
      Get maximum value and index
      double getMinValue()
      Get minimum value
      java.lang.Object[] getMinValueIndex()
      Get minimum value and index
      double[] getStData()
      Get station data array
      java.lang.String getStid​(int idx)
      Get station identifer by index
      int getStidIndex​(java.lang.String stid)
      Get station identifer index
      int getStNum()
      Get station number
      java.util.List<java.lang.Double> getValidValues()
      Get valid values
      double getValue​(int idx)
      Get data value by index
      java.util.List<java.lang.Double> getValues()
      Get values
      double[] getX()
      Get X coordinates array
      double getX​(int idx)
      Get x coordinate by index
      java.util.List<java.lang.Double> getXList()
      Get X coordinates array
      double[] getY()
      Get Y coordinates array
      double getY​(int idx)
      Get y coordinate by index
      java.util.List<java.lang.Double> getYList()
      Get Y coordinates array
      int indexOf​(int stid)
      Index of - by station identifer
      StationData join​(StationData indata)
      Join an other station data
      StationData log()
      Calculate logrithm station data
      StationData log10()
      Calculate base 10 logrithm station data
      StationData mul​(double value)
      Multiply operator with a double value
      StationData mul​(StationData bStData)
      multiply operator with another station data
      StationData pow​(double p)
      Calculate power station data
      StationData project​(org.meteoinfo.projection.ProjectionInfo fromProj, org.meteoinfo.projection.ProjectionInfo toProj)
      Project station data
      void saveAsCSVFile​(java.lang.String fileName, java.lang.String fieldName)
      Save station data to a CVS file
      void saveAsCSVFile​(java.lang.String fileName, java.lang.String fieldName, boolean saveMissingData)
      Save station data to a CVS file
      void setData​(double[][] value)
      Set data array
      void setStid​(int idx, java.lang.String value)
      Set station identifer by index
      void setValue​(int idx, double value)
      Set data value by index
      StationData sin()
      Calculate sine station data
      StationData sqrt()
      Calculate square root station data
      StationData sub​(double value)
      Subtract operator with a double value
      StationData sub​(StationData bStData)
      Subtract operator with another station data
      double sum()
      Calculate summary value
      StationData tan()
      Calculate tangent station data
      void updateExtent()
      Update data extent
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • data

        public double[][] data
      • stations

        public java.util.List<java.lang.String> stations
      • dataExtent

        public org.meteoinfo.common.Extent dataExtent
      • missingValue

        public double missingValue
      • projInfo

        public org.meteoinfo.projection.ProjectionInfo projInfo
        Projection information
    • 构造器详细资料

      • StationData

        public StationData()
        Constructor
      • StationData

        public StationData​(org.meteoinfo.ndarray.Array a,
                           org.meteoinfo.ndarray.Array x,
                           org.meteoinfo.ndarray.Array y,
                           java.lang.Number missingv)
        Constructor
        参数:
        a - Array data
        x - Array x
        y - Array y
        missingv - Missing value
      • StationData

        public StationData​(StationData aStData)
        Constructor
        参数:
        aStData - Station data
    • 方法详细资料

      • getStNum

        public int getStNum()
        Get station number
        返回:
        Station number
      • getX

        public double[] getX()
        Get X coordinates array
        返回:
        X array
      • getXList

        public java.util.List<java.lang.Double> getXList()
        Get X coordinates array
        返回:
        X array
      • getY

        public double[] getY()
        Get Y coordinates array
        返回:
        Y array
      • getYList

        public java.util.List<java.lang.Double> getYList()
        Get Y coordinates array
        返回:
        Y array
      • getStData

        public double[] getStData()
        Get station data array
        返回:
        Station data array
      • setData

        public void setData​(double[][] value)
        Set data array
        参数:
        value - Data array
      • add

        public StationData add​(StationData bStData)
        Add operator with another station data
        参数:
        bStData - Station data
        返回:
        Result station data
      • add

        public StationData add​(double value)
        Add operator with a double value
        参数:
        value - The value
        返回:
        Result station data
      • sub

        public StationData sub​(StationData bStData)
        Subtract operator with another station data
        参数:
        bStData - Station data
        返回:
        Result station data
      • sub

        public StationData sub​(double value)
        Subtract operator with a double value
        参数:
        value - The value
        返回:
        Result station data
      • mul

        public StationData mul​(StationData bStData)
        multiply operator with another station data
        参数:
        bStData - Station data
        返回:
        Result station data
      • mul

        public StationData mul​(double value)
        Multiply operator with a double value
        参数:
        value - The value
        返回:
        Result station data
      • div

        public StationData div​(StationData bStData)
        Divide operator with another station data
        参数:
        bStData - Station data
        返回:
        Result station data
      • div

        public StationData div​(double value)
        Divide operator with a double value
        参数:
        value - The value
        返回:
        Result station data
      • abs

        public StationData abs()
        Calculate abstract station data
        返回:
        Result station data
      • acos

        public StationData acos()
        Calculate anti-cosine station data
        返回:
        Result station data
      • asin

        public StationData asin()
        Calculate anti-sine station data
        返回:
        Result station data
      • atan

        public StationData atan()
        Calculate anti-tangent station data
        返回:
        Result station data
      • cos

        public StationData cos()
        Calculate cosine station data
        返回:
        Result station data
      • sin

        public StationData sin()
        Calculate sine station data
        返回:
        Result station data
      • tan

        public StationData tan()
        Calculate tangent station data
        返回:
        Result station data
      • exp

        public StationData exp()
        Calculate e raised specific power value of station data
        返回:
        Result station data
      • pow

        public StationData pow​(double p)
        Calculate power station data
        参数:
        p - Power value
        返回:
        Result station data
      • sqrt

        public StationData sqrt()
        Calculate square root station data
        返回:
        Result station data
      • log

        public StationData log()
        Calculate logrithm station data
        返回:
        Result station data
      • log10

        public StationData log10()
        Calculate base 10 logrithm station data
        返回:
        Result station data
      • addData

        public void addData​(java.lang.String id,
                            double x,
                            double y,
                            double value)
        Add a data
        参数:
        id - Data identifer
        x - X coordinate
        y - Y coordinate
        value - Value
      • getStid

        public java.lang.String getStid​(int idx)
        Get station identifer by index
        参数:
        idx - Index
        返回:
        Station identifer
      • setStid

        public void setStid​(int idx,
                            java.lang.String value)
        Set station identifer by index
        参数:
        idx - Index
        value - Station identifer
      • getX

        public double getX​(int idx)
        Get x coordinate by index
        参数:
        idx - Index
        返回:
        X coordinate
      • getY

        public double getY​(int idx)
        Get y coordinate by index
        参数:
        idx - Index
        返回:
        Y coordinate
      • getValue

        public double getValue​(int idx)
        Get data value by index
        参数:
        idx - Index
        返回:
        Data value
      • setValue

        public void setValue​(int idx,
                             double value)
        Set data value by index
        参数:
        idx - Index
        value - Data value
      • getValues

        public java.util.List<java.lang.Double> getValues()
        Get values
        返回:
        Values
      • getValidValues

        public java.util.List<java.lang.Double> getValidValues()
        Get valid values
        返回:
        Values
      • indexOf

        public int indexOf​(int stid)
        Index of - by station identifer
        参数:
        stid - Station identifer
        返回:
        Data index
      • saveAsCSVFile

        public void saveAsCSVFile​(java.lang.String fileName,
                                  java.lang.String fieldName)
        Save station data to a CVS file
        参数:
        fileName - File name
        fieldName - Field name
      • saveAsCSVFile

        public void saveAsCSVFile​(java.lang.String fileName,
                                  java.lang.String fieldName,
                                  boolean saveMissingData)
        Save station data to a CVS file
        参数:
        fileName - File name
        fieldName - Field name
        saveMissingData - If save missing data
      • filter

        public StationData filter​(java.util.List<java.lang.String> stations)
        Filter station data
        参数:
        stations - Station identifer list
        返回:
        Result station data
      • join

        public StationData join​(StationData indata)
        Join an other station data
        参数:
        indata - Other station data
        返回:
        Joined station data
      • project

        public StationData project​(org.meteoinfo.projection.ProjectionInfo fromProj,
                                   org.meteoinfo.projection.ProjectionInfo toProj)
        Project station data
        参数:
        fromProj - From projection info
        toProj - To projection info
        返回:
        Projected station data
      • getStidIndex

        public int getStidIndex​(java.lang.String stid)
        Get station identifer index
        参数:
        stid - Station identifer
        返回:
        Index
      • updateExtent

        public void updateExtent()
        Update data extent
      • filterData_Radius

        public void filterData_Radius​(double radius,
                                      org.meteoinfo.common.Extent aExtent)
        Filter station data by radius and extent
        参数:
        radius - Radius
        aExtent - Data extent
      • delMissingValue

        public void delMissingValue()
        Delete missing values
      • getMinValue

        public double getMinValue()
        Get minimum value
        返回:
        Minimum value
      • getMaxValue

        public double getMaxValue()
        Get maximum value
        返回:
        Maximum value
      • getMinValueIndex

        public java.lang.Object[] getMinValueIndex()
        Get minimum value and index
        返回:
        Minimum value and index
      • getMaxValueIndex

        public java.lang.Object[] getMaxValueIndex()
        Get maximum value and index
        返回:
        Maximum value and index
      • getMaxMinValue

        public boolean getMaxMinValue​(double[] maxmin)
        Get maximum and minimum values
        参数:
        maxmin - Maximum and minimum value array
        返回:
        Has missing value or not
      • average

        public double average()
        Calculate average value
        返回:
        Average value
      • sum

        public double sum()
        Calculate summary value
        返回:
        Summary value