 | CRPSSTPCorrectionFromBarometricAltitude Method |
Apply the Standard Temperature/Pressure (STP) correction to the altimeter channel for a line in a database
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2025.2.0.42
Syntaxpublic static void STPCorrectionFromBarometricAltitude(
CDB db,
int line,
string raw_radar_altimeter,
string raw_barometric_altimeter_channel,
string temperature_channel,
string stp_alt_channel
)
public static void STPCorrectionFromBarometricAltitude(
CDB db,
int line,
string raw_radar_altimeter,
string raw_barometric_altimeter_channel,
string temperature_channel,
string stp_alt_channel
)
Public Shared Sub STPCorrectionFromBarometricAltitude (
db As CDB,
line As Integer,
raw_radar_altimeter As String,
raw_barometric_altimeter_channel As String,
temperature_channel As String,
stp_alt_channel As String
)
Public Shared Sub STPCorrectionFromBarometricAltitude (
db As CDB,
line As Integer,
raw_radar_altimeter As String,
raw_barometric_altimeter_channel As String,
temperature_channel As String,
stp_alt_channel As String
)
public:
static void STPCorrectionFromBarometricAltitude(
CDB^ db,
int line,
String^ raw_radar_altimeter,
String^ raw_barometric_altimeter_channel,
String^ temperature_channel,
String^ stp_alt_channel
)
public:
static void STPCorrectionFromBarometricAltitude(
CDB^ db,
int line,
String^ raw_radar_altimeter,
String^ raw_barometric_altimeter_channel,
String^ temperature_channel,
String^ stp_alt_channel
)
static member STPCorrectionFromBarometricAltitude :
db : CDB *
line : int *
raw_radar_altimeter : string *
raw_barometric_altimeter_channel : string *
temperature_channel : string *
stp_alt_channel : string -> unit
static member STPCorrectionFromBarometricAltitude :
db : CDB *
line : int *
raw_radar_altimeter : string *
raw_barometric_altimeter_channel : string *
temperature_channel : string *
stp_alt_channel : string -> unit
Parameters
- db
- Type: GeoEngine.Core.GXNetCDB
DB Object - line
- Type: SystemInt32
Line to process (NULLSYMB for all selected lines) - raw_radar_altimeter
- Type: SystemString
Input (BP-filtered) radar altimeter channel name - raw_barometric_altimeter_channel
- Type: SystemString
Input raw barometric altimeter channel name - temperature_channel
- Type: SystemString
Input temperature channel name (degrees Celsius) - stp_alt_channel
- Type: SystemString
Output STP corrected altimeter channel name
Remarks
The output STP corrected altitude is calculated using the formula:
STP_Altitude = (273.15 * radar_alt * exp(-1.0/8581.0 * barometric_alt))/(273.15 + temp)
where:
STP_Altitude = STP corrected altitude (m)
radar_alt = raw radar altimeter channel value (m)
barometric_alt = raw barometric altimeter channel value (m)
temp = temperature channel value (degrees Celsius)
Ref: See the RPSFILT.GXC file for details and implementation of the algorithm.
See Also