Skip to content

Commit

Permalink
fix Compute_Grid_Location so it doesnt run missing vals
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Esposito authored and Nicholas Esposito committed Sep 14, 2023
1 parent 23e6434 commit bcbaf3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ush/ioda/bufr2ioda/bufr2ioda_gpsro_bufr.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@

def Compute_Grid_Location(degrees):

rad = np.deg2rad(degrees)
for i in range(len(degrees)):
if degrees[i] < 180 and degrees[i] > -180 :
degrees[i] = np.deg2rad(degrees[i])
rad = degrees

return rad
return rad

def Compute_imph(impp, elrc, geodu):

Expand Down
7 changes: 5 additions & 2 deletions ush/ioda/bufr2ioda/bufr2ioda_gpsro_bufr_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@

def Compute_Grid_Location(degrees):

rad = np.deg2rad(degrees)

for i in range(len(degrees)):
if degrees[i] < 180 and degrees[i] > -180 :
degrees[i] = np.deg2rad(degrees[i])
rad = degrees

return rad

def Compute_imph(impp, elrc, geodu):
Expand Down

0 comments on commit bcbaf3b

Please sign in to comment.