WeatherModel
public class GlobalPressureTemperature2Model extends Object implements WeatherModel
Vienna 1
model.
The requisite coefficients for the computation of the weather parameters are provided by the Department of Geodesy and Geoinformation of the Vienna University. They are based on an external grid file like "gpt2_1.grd" (1° x 1°) or "gpt2_5.grd" (5° x 5°) available at: link
A bilinear interpolation is performed in order to obtained the correct values of the weather parameters.
The format is always the same, with and example shown below for the pressure and the temperature.
Example:
% lat lon p:a0 A1 B1 A2 B2 T:a0 A1 B1 A2 B2 87.5 2.5 101421 21 409 -217 -122 259.2 -13.2 -6.1 2.6 0.3 87.5 7.5 101416 21 411 -213 -120 259.3 -13.1 -6.1 2.6 0.3 87.5 12.5 101411 22 413 -209 -118 259.3 -13.1 -6.1 2.6 0.3 87.5 17.5 101407 23 415 -205 -116 259.4 -13.0 -6.1 2.6 0.3 ...
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_SUPPORTED_NAMES |
Default supported files name pattern.
|
Constructor | Description |
---|---|
GlobalPressureTemperature2Model(double latitude,
double longitude,
Geoid geoid) |
Constructor with default supported names.
|
GlobalPressureTemperature2Model(String supportedNames,
double latitude,
double longitude,
Geoid geoid) |
Constructor with supported names given by user.
|
Modifier and Type | Method | Description |
---|---|---|
double[] |
getA() |
Returns the a coefficients array.
|
double |
getPressure() |
Returns the pressure at the station [hPa].
|
double |
getTemperature() |
Returns the temperature at the station [K].
|
double |
getWaterVaporPressure() |
Returns the water vapor pressure at the station [hPa].
|
void |
weatherParameters(double stationHeight,
AbsoluteDate currentDate) |
Calculates the weather parameters of the model.
|
public static final String DEFAULT_SUPPORTED_NAMES
public GlobalPressureTemperature2Model(String supportedNames, double latitude, double longitude, Geoid geoid)
supportedNames
- supported nameslatitude
- geodetic latitude of the station, in radianslongitude
- longitude geodetic longitude of the station, in radiansgeoid
- level surface of the gravity potential of a bodypublic GlobalPressureTemperature2Model(double latitude, double longitude, Geoid geoid)
latitude
- geodetic latitude of the station, in radianslongitude
- geodetic latitude of the station, in radiansgeoid
- level surface of the gravity potential of a bodypublic double[] getA()
public double getTemperature()
public double getPressure()
public double getWaterVaporPressure()
public void weatherParameters(double stationHeight, AbsoluteDate currentDate)
WeatherModel
weatherParameters
in interface WeatherModel
stationHeight
- the height of the station in mcurrentDate
- current dateCopyright © 2002-2019 CS Systèmes d'information. All rights reserved.