Skip to content

Commit

Permalink
define nside
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidushi-GitHub committed Dec 31, 2024
1 parent 5d7143c commit f1df12f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/routes/docs.client.samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ plt.show()
#### Most Probable Sky Location

```python
# Reading Sky Maps with Healpy
healpix_image = hp.read_map('bayestar.fits.gz,0')

# Lateral resolution of the HEALPix map
nside = hp.npix2nside(npix)

# Find the highest probability pixel
ipix_max = np.argmax(hpx)

Expand Down

0 comments on commit f1df12f

Please sign in to comment.