ContentsIndexReferenceHome
PreviousUpNext
BoundaryAlt
MATLAB
hh = BoundaryAlt(h,hInt,hhInt)
Description

Maps input altitudes in the interval [hInt(1) hInt(2)] into altitudes in the interval [hhInt(1) hhInt(2)]. 

Intended to facilitate using atmospheric models in the earth's boundary layer where certain altitudes should be referenced to ground level, and other altitudes should be referenced to sea level. Generally, hInt(end) = hhInt(end) = boundary-layer altitude limit. However, code will accept other inputs and use them accordingly. Altitudes in interval hInt are set according to: hh = hhInt(1)+(diff(hhInt)/diff(hInt)).*(h-hInt(1)); Input altitudes less than hInt(1) are set to hhInt(1).

Parameters
Parameters 
Description 
h [vector] 
Altitude above sea level (m) 
hInt [array] 
Altitude interval for mapping (m). Can be of size 1 x NumLayers+1 or NScreens x NumLayers+1. 
hhInt [array] 
Altitude interval for output (m). Can be of size 1 x NumLayers+1 or NScreens x NumLayers+1. 
Return Values
Return Values 
Description 
hh [vector] 
Mapped altitudes (m) 
Examples
  • hh = BoundaryAlt(0,[0 5000],[1230 5000])
    • hh = 1230, 0 m altitude maps to 1230 m
  • hh = BoundaryAlt(0,[1230 5000],[0 5000])
    • hh = 0, 1230 m altitude maps to 0 m
  • hh = BoundaryAlt(1230,[1230 5000],[0 5000]
    • hh = 0, 1230 m altitude maps to 0 m
  • hh = BoundaryAlt(1230,[1230 5000],[0 5000])
    • hh = 0, 1230 m altitude maps to 0 m
  • [hTerr,GndAlt] = TerrainProfiler(x,G);
  • hh = BoundaryAlt(EarthAlt(x,G),[GndAlt repmat(5000,size(x,1),1)],[0 5000])
    • Scales altitudes between ground level and 5 km to be between 0 and 5 km.
See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!