Skip to content

Commit

Permalink
okay, can't have tropopause be above the model top lol
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Nov 10, 2024
1 parent 4b87463 commit f664437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function extractwwtg(
iwwtg = @views wwtg[:,it,ids]
if !isnan(sum(iwwtg))
itrop = findlast(.!iszero.(iwwtg)) + 1
if itrop > length(iwwtg); itrop = length(iwwtg) end
ztrop[it,ids] = z[itrop,ids]
ptrop[it,ids] = p[itrop,ids]
iwwtg = @views iwwtg[1:itrop]
Expand Down

0 comments on commit f664437

Please sign in to comment.