public class MeteoDataInfo extends Object
| 构造器 | 说明 |
|---|---|
MeteoDataInfo() |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
close() |
Close opened file
|
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
|
DataInfo |
getDataInfo() |
Get data info
|
MeteoDataType |
getDataType() |
Get meteo data type
|
int |
getDimensionNumber() |
Get variable dimension number
|
PlotDimension |
getDimensionSet() |
Get plot dimension
|
String |
getFileName() |
Get file name
|
GridData |
getGridData() |
Get grid data
|
GridData |
getGridData(String varName) |
Get grid data
|
String |
getInfoText() |
Get data info text
|
int |
getLatIndex() |
Get latitude index
|
int |
getLevelIndex() |
Get level index
|
int |
getLonIndex() |
Get longitude index
|
MeteoUVSet |
getMeteoUVSet() |
Get Meteo U/V setting
|
double |
getMissingValue() |
Get missing value
|
ProjectionInfo |
getProjectionInfo() |
Get projection info
|
StationData |
getStationData() |
Get station data
|
StationData |
getStationData(String varName) |
Get station data
|
StationInfoData |
getStationInfoData() |
Get station info data
|
StationInfoData |
getStationInfoData(int timeIndex) |
Get station info data
|
StationModelData |
getStationModelData() |
Get station model data
|
int |
getTimeIndex() |
Get time index
|
int |
getVariableIndex() |
Get variable index
|
int |
getVariableIndex(String varName) |
Get variable index
|
boolean |
isGridData() |
Get if is grid data
|
boolean |
isStationData() |
Get if is station data
|
boolean |
isSWATHData() |
Get if is SWATH data
|
boolean |
isTrajData() |
Get if is trajectory data
|
void |
openARLData(String aFile) |
Open ARL packed meteorological data
|
void |
openASCIIGridData(String aFile) |
Open ASCII grid data
|
void |
openAWXData(String aFile) |
Open AWX data
|
void |
openBILData(String aFile) |
Open BIL grid data
|
void |
openData(String fileName) |
Open data file
|
void |
openData(String fileName,
boolean keepOpen) |
Open data file
|
void |
openData(ucar.nc2.NetcdfFile ncfile,
boolean keepOpen) |
Open data file
|
void |
openGeoTiffData(String aFile) |
Open Geotiff grid data
|
void |
openGrADSData(String aFile) |
Open GrADS data
|
void |
openGRIBData(String fileName,
int version) |
Open GRIB data by predifined version - for mixed GRIB-1 and GRIB-2 data file.
|
void |
openHYSPLITConcData(String aFile) |
Open HYSPLIT concentration grid data
|
void |
openHYSPLITConcData(String aFile,
boolean bigendian) |
Open HYSPLIT concentration grid data
|
void |
openHYSPLITPartData(String fileName) |
Open HYSPLIT particle data
|
void |
openHYSPLITTrajData(String aFile) |
Open HYSPLIT trajectory data
|
void |
openLonLatData(String fileName) |
Open Lon/Lat station data
|
void |
openMETARData(String aFile,
String stFile) |
Open SYNOP data
|
void |
openMICAPSData(String fileName) |
Open MICAPS data
|
void |
openMM5Data(String fileName) |
Open MM5 Output data
|
void |
openMM5Data(String fileName,
String bigHeadFile) |
Open MM5 Output data
|
void |
openMM5IMData(String fileName) |
Open MM5 Intermediate data
|
void |
openNetCDFData(String fileName) |
Open NetCDF data
|
void |
openNetCDFData(String fileName,
boolean keepOpen) |
Open NetCDF data
|
void |
openNetCDFData(ucar.nc2.NetcdfFile ncfile,
boolean keepOpen) |
Open NetCDF data
|
void |
openSurferGridData(String fileName) |
Open Surfer ASCII grid data
|
void |
openSYNOPData(String aFile,
String stFile) |
Open SYNOP data
|
ucar.ma2.Array |
read(String varName) |
Read array data of the variable
|
ucar.ma2.Array |
read(String varName,
int[] origin,
int[] size,
int[] stride) |
Read array data of the variable
|
ucar.ma2.Array |
read(String varName,
List<Integer> origin,
List<Integer> size) |
Read array data of the variable
|
ucar.ma2.Array |
read(String varName,
List<Integer> origin,
List<Integer> size,
List<Integer> stride) |
Read array data of the variable
|
ucar.ma2.Array |
read(String varName,
List<ucar.ma2.Range> ranges) |
Read array data from a variable
|
void |
setDataInfo(DataInfo value) |
Set data info
|
void |
setDimensionSet(PlotDimension value) |
Set plot dimension
|
void |
setLatIndex(int value) |
Set latitude index
|
void |
setLevelIndex(int value) |
Set level index
|
void |
setLonIndex(int value) |
Set longitude index
|
void |
setMeteoUVSet(MeteoUVSet value) |
Set Meteo U/V Setting
|
void |
setTimeIndex(int value) |
Set time index
|
void |
setVariableIndex(int value) |
Set variable index
|
ucar.ma2.Array |
take(String varName,
List<Object> ranges) |
Take array data from the variable
|
double |
toStation(String varName,
double x,
double y,
double z,
int tidx) |
Interpolate data to a station point
|
double |
toStation(String varName,
double x,
double y,
double z,
Date t) |
Interpolate data to a station point
|
double |
toStation(String varName,
double x,
double y,
int tidx) |
Interpolate data to a station point
|
double |
toStation(String varName,
double x,
double y,
Date t) |
Interpolate data to a station point
|
List<Double> |
toStation(List<String> varNames,
double x,
double y,
double z,
int tidx) |
Interpolate data to a station point
|
List<Double> |
toStation(List<String> varNames,
double x,
double y,
double z,
Date t) |
Interpolate data to a station point
|
String |
toString() |
public boolean IsLonLat
public boolean EarthWind
public boolean xReserve
public boolean yReserve
public DataInfo getDataInfo()
public void setDataInfo(DataInfo value)
value - Data infopublic ProjectionInfo getProjectionInfo()
public MeteoDataType getDataType()
public PlotDimension getDimensionSet()
public void setDimensionSet(PlotDimension value)
value - Plot dimensionpublic String getInfoText()
public int getTimeIndex()
public void setTimeIndex(int value)
value - Time indexpublic int getLevelIndex()
public void setLevelIndex(int value)
value - Level indexpublic int getVariableIndex()
public void setVariableIndex(int value)
value - Variable indexpublic int getLonIndex()
public void setLonIndex(int value)
value - Longitude indexpublic int getLatIndex()
public void setLatIndex(int value)
value - Latitude indexpublic MeteoUVSet getMeteoUVSet()
public void setMeteoUVSet(MeteoUVSet value)
value - Meteo U/V settingpublic double getMissingValue()
public boolean isGridData()
public boolean isStationData()
public boolean isTrajData()
public boolean isSWATHData()
public int getDimensionNumber()
public void openData(String fileName)
fileName - File namepublic void openData(String fileName, boolean keepOpen)
fileName - File namekeepOpen - Keep the file opened or notpublic void openData(ucar.nc2.NetcdfFile ncfile,
boolean keepOpen)
ncfile - Netcdf filekeepOpen - Keep the file opened or notpublic void close()
public void openGrADSData(String aFile)
aFile - Data file pathpublic void openARLData(String aFile)
aFile - File pathpublic void openAWXData(String aFile)
aFile - File pathpublic void openSYNOPData(String aFile, String stFile)
aFile - File pathstFile - Station file namepublic void openMETARData(String aFile, String stFile)
aFile - File pathstFile - Station file namepublic void openASCIIGridData(String aFile)
aFile - File pathpublic void openGeoTiffData(String aFile)
aFile - File pathpublic void openBILData(String aFile)
aFile - File pathpublic void openHYSPLITConcData(String aFile)
aFile - File pathpublic void openHYSPLITConcData(String aFile, boolean bigendian)
aFile - File pathbigendian - Big endian or notpublic void openHYSPLITTrajData(String aFile)
aFile - File pathpublic void openHYSPLITPartData(String fileName)
fileName - File pathpublic void openNetCDFData(String fileName)
fileName - File pathpublic void openNetCDFData(String fileName, boolean keepOpen)
fileName - File pathkeepOpen - Keep file opened or notpublic void openNetCDFData(ucar.nc2.NetcdfFile ncfile,
boolean keepOpen)
ncfile - Netcdf filekeepOpen - Keep file opened or notpublic void openGRIBData(String fileName, int version)
fileName - File pathversion - GRIB data version: 1 or 2.public void openLonLatData(String fileName)
fileName - File pathpublic void openSurferGridData(String fileName)
fileName - File pathpublic void openMM5Data(String fileName)
fileName - File pathpublic void openMM5Data(String fileName, String bigHeadFile)
fileName - The MM5 output data file without big headbigHeadFile - The MM5 output data file with big headpublic void openMM5IMData(String fileName)
fileName - File pathpublic void openMICAPSData(String fileName)
fileName - File namepublic String getFileName()
public ucar.ma2.Array read(String varName)
varName - Variable namepublic ucar.ma2.Array read(String varName, int[] origin, int[] size, int[] stride)
varName - Variable nameorigin - The origin arraysize - The size arraystride - The stride arraypublic ucar.ma2.Array read(String varName, List<ucar.ma2.Range> ranges)
varName - Variable nameranges - List of dimension rangespublic ucar.ma2.Array read(String varName, List<Integer> origin, List<Integer> size, List<Integer> stride)
varName - Variable nameorigin - The origin arraysize - The size arraystride - The stride arraypublic ucar.ma2.Array read(String varName, List<Integer> origin, List<Integer> size)
varName - Variable nameorigin - The origin arraysize - The size arraypublic ucar.ma2.Array take(String varName, List<Object> ranges) throws ucar.ma2.InvalidRangeException
varName - Variable nameranges - Range listucar.ma2.InvalidRangeExceptionpublic GridData getGridData(String varName)
varName - Variable namepublic GridData getGridData()
public StationData getStationData(String varName)
varName - Variable namepublic StationData getStationData()
public StationModelData getStationModelData()
public StationInfoData getStationInfoData()
public StationInfoData getStationInfoData(int timeIndex)
timeIndex - Time indexpublic int getVariableIndex(String varName)
varName - Variable namepublic GridData getArrivalTimeData(String varName, double threshold)
varName - Variable namethreshold - Threshold valuepublic double toStation(String varName, double x, double y, double z, Date t)
varName - Variable namex - X coordinate of the stationy - Y coordinate of the stationz - Z coordinate of the stationt - Time coordinate of the stationpublic double toStation(String varName, double x, double y, Date t)
varName - Variable namex - X coordinate of the stationy - Y coordinate of the stationt - Time coordinate of the stationpublic List<Double> toStation(List<String> varNames, double x, double y, double z, Date t)
varNames - Variable namesx - X coordinate of the stationy - Y coordinate of the stationz - Z coordinate of the stationt - Time coordinate of the stationpublic double toStation(String varName, double x, double y, double z, int tidx)
varName - Variable namex - X coordinate of the stationy - Y coordinate of the stationz - Z coordinate of the stationtidx - Time indexpublic double toStation(String varName, double x, double y, int tidx)
varName - Variable namex - X coordinate of the stationy - Y coordinate of the stationtidx - Time indexpublic List<Double> toStation(List<String> varNames, double x, double y, double z, int tidx)
varNames - Variable namesx - X coordinate of the stationy - Y coordinate of the stationz - Z coordinate of the stationtidx - Time indexCopyright © 2019. All rights reserved.