Skip to content

Commit

Permalink
normalization of Gn
Browse files Browse the repository at this point in the history
  • Loading branch information
martalmeida committed Dec 12, 2019
1 parent 84f8a04 commit f19cebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nmf3d/vertical_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def vse(Tprof,Plev,**kargs):
nkMax=Plev.size
Gn=Gn_all[::-1][:nkMax]

# normalize:
Gn*=2**.5

# The equivalent heights re-ordered
cond=S==0
S[cond]=1
Expand Down
3 changes: 3 additions & 0 deletions nmf3d_mat/vertical_structure.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
Gn=flipud(Gn_all);
Gn=Gn(1:nkMax,:);

% normalize:
Gn=Gn*sqrt(2);

% The equivalent heights re-ordered
cond=S==0;
S(cond)=1;
Expand Down

0 comments on commit f19cebd

Please sign in to comment.