Main Content

height2range

Convert target height to propagated range

Since R2021b

Description

r = height2range(tgtht,anht,el) returns the propagated range to the target, r, as a function of the target height tgtht, the sensor height anht, and the local elevation angle el assuming a Curved Earth Model with a 4/3 effective Earth radius.

example

r = height2range(tgtht,anht,el,Name=Value) specifies additional inputs using name-value arguments. For example, you can specify a flat Earth model, a curved Earth model with a given radius, or a CRPL Exponential Reference Atmosphere Model with custom values.

example

[r,trueSR,trueEL] = height2range(___,Method="CRPL") also returns the true slant range and the true elevation angle when you specify the Earth model as "CRPL".

Examples

collapse all

Compute the range along the propagated path for a target height of 1 km, an antenna height of 10 meters, and an elevation angle of 2 degrees at the radar. Assume a curved Earth model with a 4/3 effective Earth radius.

r = height2range(1e3,10,2)
r = 
2.7125e+04

Compute the range along the propagated path using the CRPL exponential reference atmosphere. Assume a target height of 1 km, an antenna height of 10 meters, and an elevation angle of 2 degrees at the radar. Additionally, compute the true slant range and the true elevation angle to the target.

[R,SRtrue,elTrue] = height2range(1e3,10,2,Method="CRPL")
R = 
2.7171e+04
SRtrue = 
2.7163e+04
elTrue = 
1.9666

Input Arguments

collapse all

Target height in meters, specified as a nonnegative real-valued scalar or vector. If tgtht is a vector, it must have the same size as the other vector input arguments of height2range. Heights are referenced to the ground.

Data Types: double

Sensor height in meters, specified as a nonnegative real-valued scalar or vector. If anht is a vector, it must have the same size as the other vector input arguments of height2range. Heights are referenced to the ground.

Data Types: double

Local elevation angle in degrees, specified as a real-valued scalar or vector. The local elevation angle is the initial elevation angle of the ray leaving the sensor. If el is a vector, it must have the same size as the other vector input arguments of height2range.

Data Types: double

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: Method="CRPL",SurfaceRefractivity=300,RefractionExponent=0.15

Earth model used for the computation, specified as "Curved", "Flat", or "CPRL".

  • "Curved" — Assumes a Curved Earth Model with a 4/3 effective Earth radius, which is an approximation used for modeling refraction effects in the troposphere. To specify another value for the effective Earth radius, use the EffectiveEarthRadius name-value argument.

  • "Flat" — Assumes a Flat Earth Model. In this case, the effective Earth radius is infinite.

  • "CRPL" — Assumes a curved Earth model with the atmosphere defined by the CRPL Exponential Reference Atmosphere Model with a refractivity of 313 N-units and a refraction exponent of 0.143859 km–1. To specify other values for the refractivity and the refraction exponent, use the SurfaceRefractivity and RefractionExponent name value arguments. This method requires el to be positive. For more information, see CRPL Model Geometry.

Data Types: char | string

Effective Earth radius in meters, specified as a positive scalar. If this argument is not specified, height2range calculates the effective Earth radius using a refractivity gradient of –39 × 10–9 N-units/meter, which results in approximately 4/3 of the real Earth radius. This argument applies only if Method is specified as "Curved".

Data Types: double

Surface refractivity in N-units, specified as a nonnegative real-valued scalar. The surface refractivity is a parameter of the CRPL Exponential Reference Atmosphere Model used by height2range. This argument applies only if Method is specified as "CRPL".

Data Types: double

Refraction exponent, specified as a nonnegative real-valued scalar. The refraction exponent is a parameter of the CRPL Exponential Reference Atmosphere Model used by height2range. This argument applies only if Method is specified as "CRPL".

Data Types: double

Output Arguments

collapse all

Propagated range between the target and the sensor in meters, returned as a real-valued scalar or row vector. If r is a vector, it has the same size as the vector input arguments of height2range.

True slant range in meters, returned as a real-valued scalar or row vector. If trueSR is a vector, it has the same size as the vector input arguments of height2range. This argument is available only if Method is specified as "CRPL".

True elevation angle in degrees, returned as a real-valued scalar or row vector. If trueEL is a vector, it has the same size as the vector input arguments of height2range. This argument is available only if Method is specified as "CRPL".

More About

collapse all

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2021b