From 5e0abaa84c34e1a454cc230507d83b684153b27e Mon Sep 17 00:00:00 2001 From: Vidushi-GitHub Date: Tue, 31 Dec 2024 00:11:22 -0500 Subject: [PATCH] define nside --- app/routes/docs.client.samples.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/routes/docs.client.samples.md b/app/routes/docs.client.samples.md index 0b0d03c61..630a40b8a 100644 --- a/app/routes/docs.client.samples.md +++ b/app/routes/docs.client.samples.md @@ -272,6 +272,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)