 | CRPSSTPCorrectionFromBarometricAltitude Method |
Apply the Standard Temperature/Pressure (STP) correction to the altimeter channel for a line in a database
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.2.0.42
Syntaxpublic static void STPCorrectionFromBarometricAltitude(
CGXNETCore gxNetShared,
CDB db,
int line,
string raw_radar_altimeter,
string raw_barometric_altimeter_channel,
string temperature_channel,
string stp_alt_channel
)
public static void STPCorrectionFromBarometricAltitude(
CGXNETCore gxNetShared,
CDB db,
int line,
string raw_radar_altimeter,
string raw_barometric_altimeter_channel,
string temperature_channel,
string stp_alt_channel
)
Public Shared Sub STPCorrectionFromBarometricAltitude (
gxNetShared As CGXNETCore,
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 (
gxNetShared As CGXNETCore,
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(
CGXNETCore^ gxNetShared,
CDB^ db,
int line,
String^ raw_radar_altimeter,
String^ raw_barometric_altimeter_channel,
String^ temperature_channel,
String^ stp_alt_channel
)
public:
static void STPCorrectionFromBarometricAltitude(
CGXNETCore^ gxNetShared,
CDB^ db,
int line,
String^ raw_radar_altimeter,
String^ raw_barometric_altimeter_channel,
String^ temperature_channel,
String^ stp_alt_channel
)
static member STPCorrectionFromBarometricAltitude :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
raw_radar_altimeter : string *
raw_barometric_altimeter_channel : string *
temperature_channel : string *
stp_alt_channel : string -> unit
static member STPCorrectionFromBarometricAltitude :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
raw_radar_altimeter : string *
raw_barometric_altimeter_channel : string *
temperature_channel : string *
stp_alt_channel : string -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - db
- Type: GeoEngine.Core.GXNetXCDB
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