类 MeteoDataInfo
- java.lang.Object
-
- org.meteoinfo.data.meteodata.MeteoDataInfo
-
public class MeteoDataInfo extends Object
- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 MeteoDataInfo()Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Close opened fileGridDatagetArrivalTimeData(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 concentrationDataInfogetDataInfo()Get data infoMeteoDataTypegetDataType()Get meteo data typeintgetDimensionNumber()Get variable dimension numberPlotDimensiongetDimensionSet()Get plot dimensionDrawType2DgetDrawType2D()Get DrawType2DStringgetFileName()Get file nameGridDatagetGridData()Get grid dataGridDatagetGridData(String varName)Get grid dataStringgetInfoText()Get data info textintgetLatIndex()Get latitude indexintgetLevelIndex()Get level indexintgetLonIndex()Get longitude indexMeteoUVSetgetMeteoUVSet()Get Meteo U/V settingdoublegetMissingValue()Get missing valueProjectionInfogetProjectionInfo()Get projection infoStationDatagetStationData()Get station dataStationDatagetStationData(String varName)Get station dataStationInfoDatagetStationInfoData()Get station info dataStationInfoDatagetStationInfoData(int timeIndex)Get station info dataStationModelDatagetStationModelData()Get station model dataintgetTimeIndex()Get time indexintgetVariableIndex(String varName)Get variable indexStringgetVariableName()Get variable namebooleanisGridData()Get if is grid databooleanisStationData()Get if is station databooleanisSWATHData()Get if is SWATH databooleanisTrajData()Get if is trajectory datavoidopenARLData(String aFile)Open ARL packed meteorological datavoidopenASCIIGridData(String aFile)Open ASCII grid datavoidopenAWXData(String aFile)Open AWX datavoidopenBILData(String aFile)Open BIL grid datavoidopenData(String fileName)Open data filevoidopenData(String fileName, boolean keepOpen)Open data filevoidopenData(ucar.nc2.NetcdfFile ncfile, boolean keepOpen)Open data filevoidopenGeoTiffData(String aFile)Open Geotiff grid datavoidopenGrADSData(String aFile)Open GrADS datavoidopenGRIBData(String fileName, int version)Open GRIB data by predifined version - for mixed GRIB-1 and GRIB-2 data file.voidopenHYSPLITConcData(String aFile)Open HYSPLIT concentration grid datavoidopenHYSPLITConcData(String aFile, boolean bigendian)Open HYSPLIT concentration grid datavoidopenHYSPLITPartData(String fileName)Open HYSPLIT particle datavoidopenHYSPLITTrajData(String aFile)Open HYSPLIT trajectory datavoidopenLonLatData(String fileName)Open Lon/Lat station datavoidopenMETARData(String aFile, String stFile)Open SYNOP datavoidopenMICAPSData(String fileName)Open MICAPS datavoidopenMM5Data(String fileName)Open MM5 Output datavoidopenMM5Data(String fileName, String bigHeadFile)Open MM5 Output datavoidopenMM5IMData(String fileName)Open MM5 Intermediate datavoidopenNetCDFData(String fileName)Open NetCDF datavoidopenNetCDFData(String fileName, boolean keepOpen)Open NetCDF datavoidopenNetCDFData(ucar.nc2.NetcdfFile ncfile, boolean keepOpen)Open NetCDF datavoidopenSurferGridData(String fileName)Open Surfer ASCII grid datavoidopenSYNOPData(String aFile, String stFile)Open SYNOP dataorg.meteoinfo.ndarray.Arrayread(String varName)Read array data of the variableorg.meteoinfo.ndarray.Arrayread(String varName, int[] origin, int[] size, int[] stride)Read array data of the variableorg.meteoinfo.ndarray.Arrayread(String varName, List<Integer> origin, List<Integer> size)Read array data of the variableorg.meteoinfo.ndarray.Arrayread(String varName, List<Integer> origin, List<Integer> size, List<Integer> stride)Read array data of the variableorg.meteoinfo.ndarray.Arrayread(String varName, List<org.meteoinfo.ndarray.Range> ranges)Read array data from a variablevoidsetDataInfo(DataInfo value)Set data infovoidsetDimensionSet(PlotDimension value)Set plot dimensionvoidsetDrawType2D(DrawType2D value)Set DrawType2DvoidsetLatIndex(int value)Set latitude indexvoidsetLevelIndex(int value)Set level indexvoidsetLonIndex(int value)Set longitude indexvoidsetMeteoUVSet(MeteoUVSet value)Set Meteo U/V SettingvoidsetTimeIndex(int value)Set time indexvoidsetVariableName(String value)Set variable nameorg.meteoinfo.ndarray.Arraytake(String varName, List<Object> ranges)Take array data from the variabledoubletoStation(String varName, double x, double y, double z, int tidx)Interpolate data to a station pointdoubletoStation(String varName, double x, double y, double z, LocalDateTime t)Interpolate data to a station pointdoubletoStation(String varName, double x, double y, int tidx)Interpolate data to a station pointdoubletoStation(String varName, double x, double y, LocalDateTime t)Interpolate data to a station pointList<Double>toStation(List<String> varNames, double x, double y, double z, int tidx)Interpolate data to a station pointList<Double>toStation(List<String> varNames, double x, double y, double z, LocalDateTime t)Interpolate data to a station pointStringtoString()
-
-
-
方法详细资料
-
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
-
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 namekeepOpen- Keep the file opened or not
-
openData
public void openData(ucar.nc2.NetcdfFile ncfile, boolean keepOpen)Open data file- 参数:
ncfile- Netcdf filekeepOpen- 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 pathstFile- Station file name
-
openMETARData
public void openMETARData(String aFile, String stFile)
Open SYNOP data- 参数:
aFile- File pathstFile- 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 pathbigendian- 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
-
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 pathkeepOpen- Keep file opened or not
-
openNetCDFData
public void openNetCDFData(ucar.nc2.NetcdfFile ncfile, boolean keepOpen)Open NetCDF data- 参数:
ncfile- Netcdf filekeepOpen- 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 pathversion- 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 headbigHeadFile- The MM5 output data file with big head
-
openMM5IMData
public void openMM5IMData(String fileName)
Open MM5 Intermediate data- 参数:
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 nameorigin- The origin arraysize- The size arraystride- 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 nameranges- 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 nameorigin- The origin arraysize- The size arraystride- 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 nameorigin- The origin arraysize- 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 nameranges- 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 namethreshold- 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 namex- X coordinate of the stationy- Y coordinate of the stationz- Z coordinate of the stationt- 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 namex- X coordinate of the stationy- Y coordinate of the stationt- 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 namesx- X coordinate of the stationy- Y coordinate of the stationz- Z coordinate of the stationt- 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 namex- X coordinate of the stationy- Y coordinate of the stationz- Z coordinate of the stationtidx- Time index- 返回:
- Interpolated value
-
toStation
public double toStation(String varName, double x, double y, int tidx)
Interpolate data to a station point- 参数:
varName- Variable namex- X coordinate of the stationy- Y coordinate of the stationtidx- 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 namesx- X coordinate of the stationy- Y coordinate of the stationz- Z coordinate of the stationtidx- Time index- 返回:
- Interpolated values
-
-