类 MeteoDataInfo


  • public class MeteoDataInfo
    extends Object
    作者:
    Yaqiang Wang
    • 字段详细资料

      • IsLonLat

        public boolean IsLonLat
      • EarthWind

        public boolean EarthWind
      • xReserve

        public boolean xReserve
      • yReserve

        public boolean yReserve
    • 构造器详细资料

      • MeteoDataInfo

        public MeteoDataInfo()
        Constructor
    • 方法详细资料

      • getDataInfo

        public DataInfo getDataInfo()
        Get data info
        返回:
        Data info
      • setDataInfo

        public void setDataInfo​(DataInfo value)
        Set data info
        参数:
        value - Data info
      • getProjectionInfo

        public ProjectionInfo getProjectionInfo()
        Get projection info
        返回:
        Projection info
      • getDataType

        public MeteoDataType getDataType()
        Get meteo data type
        返回:
        Meteo data type
      • getDimensionSet

        public PlotDimension getDimensionSet()
        Get plot dimension
        返回:
        Plot dimension
      • setDimensionSet

        public void setDimensionSet​(PlotDimension value)
        Set plot dimension
        参数:
        value - Plot dimension
      • getInfoText

        public String getInfoText()
        Get data info text
        返回:
        Data info text
      • getTimeIndex

        public int getTimeIndex()
        Get time index
        返回:
        Time index
      • setTimeIndex

        public void setTimeIndex​(int value)
        Set time index
        参数:
        value - Time index
      • getLevelIndex

        public int getLevelIndex()
        Get level index
        返回:
        Level index
      • setLevelIndex

        public void setLevelIndex​(int value)
        Set level index
        参数:
        value - Level index
      • getVariableName

        public String getVariableName()
        Get variable name
        返回:
        Variable name
      • setVariableName

        public void setVariableName​(String value)
        Set variable name
        参数:
        value - Variable name
      • getLonIndex

        public int getLonIndex()
        Get longitude index
        返回:
        Longitude index
      • setLonIndex

        public void setLonIndex​(int value)
        Set longitude index
        参数:
        value - Longitude index
      • getLatIndex

        public int getLatIndex()
        Get latitude index
        返回:
        Latitude index
      • setLatIndex

        public void setLatIndex​(int value)
        Set latitude index
        参数:
        value - Latitude index
      • getDrawType2D

        public DrawType2D getDrawType2D()
        Get DrawType2D
        返回:
        DrawType2D
      • setDrawType2D

        public void setDrawType2D​(DrawType2D value)
        Set DrawType2D
        参数:
        value - DrawType2D
      • getMeteoUVSet

        public MeteoUVSet getMeteoUVSet()
        Get Meteo U/V setting
        返回:
        Meteo U/V setting
      • setMeteoUVSet

        public void setMeteoUVSet​(MeteoUVSet value)
        Set Meteo U/V Setting
        参数:
        value - Meteo U/V setting
      • getMissingValue

        public double getMissingValue()
        Get missing value
        返回:
        Missing value
      • isGridData

        public boolean isGridData()
        Get if is grid data
        返回:
        Boolean
      • isStationData

        public boolean isStationData()
        Get if is station data
        返回:
        Boolean
      • isTrajData

        public boolean isTrajData()
        Get if is trajectory data
        返回:
        Boolean
      • isSWATHData

        public boolean isSWATHData()
        Get if is SWATH data
        返回:
        Boolean
      • getDimensionNumber

        public int getDimensionNumber()
        Get variable dimension number
        返回:
        Variable dimension number
      • getDataInfo

        public DataInfo getDataInfo​(String fileName)
        Get data info from a file name
        参数:
        fileName - The file name
        返回:
        Data info
      • openData

        public void openData​(String fileName)
        Open data file
        参数:
        fileName - File name
      • openData

        public void openData​(String fileName,
                             boolean keepOpen)
        Open data file
        参数:
        fileName - File name
        keepOpen - Keep the file opened or not
      • openData

        public void openData​(ucar.nc2.NetcdfFile ncfile,
                             boolean keepOpen)
        Open data file
        参数:
        ncfile - Netcdf file
        keepOpen - Keep the file opened or not
      • close

        public void close()
        Close opened file
      • openGrADSData

        public void openGrADSData​(String aFile)
        Open GrADS data
        参数:
        aFile - Data file path
      • openARLData

        public void openARLData​(String aFile)
        Open ARL packed meteorological data
        参数:
        aFile - File path
      • openAWXData

        public void openAWXData​(String aFile)
        Open AWX data
        参数:
        aFile - File path
      • openSYNOPData

        public void openSYNOPData​(String aFile,
                                  String stFile)
        Open SYNOP data
        参数:
        aFile - File path
        stFile - Station file name
      • openMETARData

        public void openMETARData​(String aFile,
                                  String stFile)
        Open SYNOP data
        参数:
        aFile - File path
        stFile - Station file name
      • openASCIIGridData

        public void openASCIIGridData​(String aFile)
        Open ASCII grid data
        参数:
        aFile - File path
      • openGeoTiffData

        public void openGeoTiffData​(String aFile)
        Open Geotiff grid data
        参数:
        aFile - File path
      • openBILData

        public void openBILData​(String aFile)
        Open BIL grid data
        参数:
        aFile - File path
      • openHYSPLITConcData

        public void openHYSPLITConcData​(String aFile)
        Open HYSPLIT concentration grid data
        参数:
        aFile - File path
      • openHYSPLITConcData

        public void openHYSPLITConcData​(String aFile,
                                        boolean bigendian)
        Open HYSPLIT concentration grid data
        参数:
        aFile - File path
        bigendian - Big endian or not
      • openHYSPLITTrajData

        public void openHYSPLITTrajData​(String aFile)
        Open HYSPLIT trajectory data
        参数:
        aFile - File path
      • openHYSPLITPartData

        public void openHYSPLITPartData​(String fileName)
        Open HYSPLIT particle data
        参数:
        fileName - File path
      • openHYSPLITPartData

        public void openHYSPLITPartData​(String fileName,
                                        int skipNBytes)
        Open HYSPLIT particle data
        参数:
        fileName - File path
        skipNBytes - Number of skip bytes
      • openNetCDFData

        public void openNetCDFData​(String fileName)
        Open NetCDF data
        参数:
        fileName - File path
      • openNetCDFData

        public void openNetCDFData​(String fileName,
                                   boolean keepOpen)
        Open NetCDF data
        参数:
        fileName - File path
        keepOpen - Keep file opened or not
      • openNetCDFData

        public void openNetCDFData​(ucar.nc2.NetcdfFile ncfile,
                                   boolean keepOpen)
        Open NetCDF data
        参数:
        ncfile - Netcdf file
        keepOpen - Keep file opened or not
      • openGRIBData

        public void openGRIBData​(String fileName,
                                 int version)
        Open GRIB data by predifined version - for mixed GRIB-1 and GRIB-2 data file.
        参数:
        fileName - File path
        version - GRIB data version: 1 or 2.
      • openLonLatData

        public void openLonLatData​(String fileName)
        Open Lon/Lat station data
        参数:
        fileName - File path
      • openSurferGridData

        public void openSurferGridData​(String fileName)
        Open Surfer ASCII grid data
        参数:
        fileName - File path
      • openMM5Data

        public void openMM5Data​(String fileName)
        Open MM5 Output data
        参数:
        fileName - File path
      • openMM5Data

        public void openMM5Data​(String fileName,
                                String bigHeadFile)
        Open MM5 Output data
        参数:
        fileName - The MM5 output data file without big head
        bigHeadFile - The MM5 output data file with big head
      • openMM5IMData

        public void openMM5IMData​(String fileName)
        Open MM5 Intermediate data
        参数:
        fileName - File path
      • openMatLabData

        public void openMatLabData​(String fileName)
        Open MatLab data file
        参数:
        fileName - File path
      • openMICAPSData

        public void openMICAPSData​(String fileName)
        Open MICAPS data
        参数:
        fileName - File name
      • getFileName

        public String getFileName()
        Get file name
        返回:
        File name
      • read

        public org.meteoinfo.ndarray.Array read​(String varName)
        Read array data of the variable
        参数:
        varName - Variable name
        返回:
        Array data
      • read

        public org.meteoinfo.ndarray.Array read​(String varName,
                                                int[] origin,
                                                int[] size,
                                                int[] stride)
        Read array data of the variable
        参数:
        varName - Variable name
        origin - The origin array
        size - The size array
        stride - The stride array
        返回:
        Array data
      • read

        public org.meteoinfo.ndarray.Array read​(String varName,
                                                List<org.meteoinfo.ndarray.Range> ranges)
        Read array data from a variable
        参数:
        varName - Variable name
        ranges - List of dimension ranges
        返回:
        Array data
      • read

        public org.meteoinfo.ndarray.Array read​(String varName,
                                                List<Integer> origin,
                                                List<Integer> size,
                                                List<Integer> stride)
        Read array data of the variable
        参数:
        varName - Variable name
        origin - The origin array
        size - The size array
        stride - The stride array
        返回:
        Array data
      • read

        public org.meteoinfo.ndarray.Array read​(String varName,
                                                List<Integer> origin,
                                                List<Integer> size)
        Read array data of the variable
        参数:
        varName - Variable name
        origin - The origin array
        size - The size array
        返回:
        Array data
      • take

        public org.meteoinfo.ndarray.Array take​(String varName,
                                                List<Object> ranges)
                                         throws org.meteoinfo.ndarray.InvalidRangeException
        Take array data from the variable
        参数:
        varName - Variable name
        ranges - Range list
        返回:
        Array data
        抛出:
        org.meteoinfo.ndarray.InvalidRangeException
      • getGridData

        public GridData getGridData​(String varName)
        Get grid data
        参数:
        varName - Variable name
        返回:
        Grid data
      • getGridData

        public GridData getGridData()
        Get grid data
        返回:
        Grid data
      • getStationData

        public StationData getStationData​(String varName)
        Get station data
        参数:
        varName - Variable name
        返回:
        Station data
      • getStationData

        public StationData getStationData()
        Get station data
        返回:
        Station data
      • getStationModelData

        public StationModelData getStationModelData()
        Get station model data
        返回:
        Station model data
      • getStationInfoData

        public StationInfoData getStationInfoData()
        Get station info data
        返回:
        Station info data
      • getStationInfoData

        public StationInfoData getStationInfoData​(int timeIndex)
        Get station info data
        参数:
        timeIndex - Time index
        返回:
        Station info data
      • getVariableIndex

        public int getVariableIndex​(String varName)
        Get variable index
        参数:
        varName - Variable name
        返回:
        Variable index
      • getArrivalTimeData

        public GridData getArrivalTimeData​(String varName,
                                           double threshold)
        Get time of arrial grid data - the time after the start of the simulation that the concentration exceeds the given threshold concentration
        参数:
        varName - Variable name
        threshold - Threshold value
        返回:
        Time of arrial grid data
      • toStation

        public double toStation​(String varName,
                                double x,
                                double y,
                                double z,
                                LocalDateTime t)
        Interpolate data to a station point
        参数:
        varName - Variable name
        x - X coordinate of the station
        y - Y coordinate of the station
        z - Z coordinate of the station
        t - Time coordinate of the station
        返回:
        Interpolated value
      • toStation

        public double toStation​(String varName,
                                double x,
                                double y,
                                LocalDateTime t)
        Interpolate data to a station point
        参数:
        varName - Variable name
        x - X coordinate of the station
        y - Y coordinate of the station
        t - Time coordinate of the station
        返回:
        Interpolated value
      • toStation

        public List<Double> toStation​(List<String> varNames,
                                      double x,
                                      double y,
                                      double z,
                                      LocalDateTime t)
        Interpolate data to a station point
        参数:
        varNames - Variable names
        x - X coordinate of the station
        y - Y coordinate of the station
        z - Z coordinate of the station
        t - Time coordinate of the station
        返回:
        Interpolated values
      • toStation

        public double toStation​(String varName,
                                double x,
                                double y,
                                double z,
                                int tidx)
        Interpolate data to a station point
        参数:
        varName - Variable name
        x - X coordinate of the station
        y - Y coordinate of the station
        z - Z coordinate of the station
        tidx - Time index
        返回:
        Interpolated value
      • toStation

        public double toStation​(String varName,
                                double x,
                                double y,
                                int tidx)
        Interpolate data to a station point
        参数:
        varName - Variable name
        x - X coordinate of the station
        y - Y coordinate of the station
        tidx - Time index
        返回:
        Interpolated value
      • toStation

        public List<Double> toStation​(List<String> varNames,
                                      double x,
                                      double y,
                                      double z,
                                      int tidx)
        Interpolate data to a station point
        参数:
        varNames - Variable names
        x - X coordinate of the station
        y - Y coordinate of the station
        z - Z coordinate of the station
        tidx - Time index
        返回:
        Interpolated values