You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: oneMinusCosGustUref.m
    path of file: ./repos/LADAC/environment/atmosphere
    
    the code of the file until where you have to start completion: % oneMinusCosGustUds computes the Reference Gust Velocity U_ref for a 1-cos

    
function U_ref = oneMinusCosGustUref( h ) %#codegen

% convert from m to ft
h_ft = m2ft( h );

% get air density
atmosphere = isAtmosphere( h );
rho = atmosphere.rho;

% set air density at mean sea level
atmosphere = isAtmosphere( 0 );
rho_0 = atmosphere.rho;

% compute 1-cos gust reference velocity (convert from EAS to TAS), in ft/s
% [1, p. 5]
if h_ft < 15000
    U_ref_ft = sqrtReal(rho_0/rho)*( 56 - 12 * h_ft / 15000 ); 
else
    U_ref_ft = sqrtReal(rho_0/rho)*( 44 - 18 * ( h_ft - 15000 ) / 35000 );
end