Skip to content
Snippets Groups Projects
Commit 9f7f419e authored by Espen Sollum's avatar Espen Sollum
Browse files

Added condition on masked array

parent 6a652d24
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ def SPT_TL_VIEW_ANGLES( Lat, Lon, Height=None,Sat_Lat=None, Sat_Lon=None, Sat_He
# Loop over points (Lat/Lon)
for ii in range(npoints):
if math.fabs(Lat[ii]) >= 90:
if math.fabs(Lat[ii]) >= 90 or Lat[ii] is np.ma.masked:
VZA[ii] = 999.99
VAA[ii] = 999.99
continue
......
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