Skip to content

Commit

Permalink
constraints on values of grid_value
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Sommani committed Sep 13, 2024
1 parent 2ffef7c commit a9a5dfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skyreader/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ def bounding_box(ra, dec, theta, phi):
grid_value = healpy.get_interp_val(
equatorial_map, np.pi/2 - grid_dec, grid_ra
)
grid_value[np.isnan(grid_value)]=0.0
grid_value = grid_value.clip(0.0, None)
sorted_values = np.sort(equatorial_map)[::-1]

# Calculate the contours
Expand Down

0 comments on commit a9a5dfb

Please sign in to comment.