Skip to content

Commit

Permalink
Fix for longitudes ranging from [-180,180]
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelDegelia-NOAA committed Nov 7, 2024
1 parent daae9af commit f6ae4d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rrfs-test/IODA/offline_domain_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def shrink_boundary(points, centroid, factor=0.01):
# Extract observation latitudes and longitudes
obs_lat = obs_ds.groups['MetaData'].variables['latitude'][:]
obs_lon = obs_ds.groups['MetaData'].variables['longitude'][:]
obs_lon = np.where(obs_lon < 0, obs_lon + 360, obs_lon)

# Pair the observation lat/lon as coordinates
obs_coords = np.vstack((obs_lon, obs_lat)).T
Expand Down

0 comments on commit f6ae4d0

Please sign in to comment.