Skip to content

Commit

Permalink
Square components (issue andwatson#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDMcGrath committed Jul 27, 2023
1 parent 44c55d0 commit 56ce0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/vel_decomp_vE_vUN.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@

% same for the uncertainty
if ~isempty(gnss_sN)
UN2U_var = (1 - sind(inc).^2 .* cosd(az).^2) ./ cosd(inc);
UN2U_var = (1 - sind(inc).^2 .* cosd(az).^2) ./ cosd(inc).^2;
N2U_var = ((sind(az).^2).*(sind(inc).^2)) ./ (cosd(inc).^2);
var_up = sqrt((var_UN.^2 .* UN2U_var) + (gnss_sN .* N2U_var));
var_up = sqrt((var_UN.^2 .* UN2U_var) + ((gnss_sN.^2) .* N2U_var));
else
var_up = ones(size(m_up));
end
Expand Down

0 comments on commit 56ce0eb

Please sign in to comment.