Skip to content
Snippets Groups Projects
Commit d23f00c3 authored by tomrink's avatar tomrink
Browse files

initial commit for aircraft icing

parent dfac23f4
No related branches found
No related tags found
No related merge requests found
......@@ -161,3 +161,13 @@ def is_night(solzen, test_angle=80.0, threshold=0.10):
return True
else:
return False
# array solzen must be degrees, missing values must NaN. For small roughly 50x50km regions only
def is_day(solzen, test_angle=75.0):
solzen = solzen.flatten()
solzen = solzen[np.invert(np.isnan(solzen))]
if len(solzen) == 0 or np.sum(solzen <= test_angle) < len(solzen):
return False
else:
return True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment