From b9f1b53f1a8c61ddb321fead5ee28b749e4e0d46 Mon Sep 17 00:00:00 2001 From: Vidushi Sharma <103223246+Vidushi-GitHub@users.noreply.github.com> Date: Sat, 21 Dec 2024 20:01:01 -0500 Subject: [PATCH] Update app/routes/docs.client.samples.md Co-authored-by: Leo Singer --- app/routes/docs.client.samples.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/routes/docs.client.samples.md b/app/routes/docs.client.samples.md index 638256b3e..3f06466fa 100644 --- a/app/routes/docs.client.samples.md +++ b/app/routes/docs.client.samples.md @@ -292,13 +292,8 @@ ra = 180.0 dec = -45.0 radius = 2.5 -# We convert to spherical polar coordinates -theta = 0.5 * np.pi - np.deg2rad(dec) -phi = np.deg2rad(ra) -radius = np.deg2rad(radius) - # Calculate Cartesian coordinates of the center of the Circle -xyz = hp.ang2vec(theta, phi) +xyz = hp.ang2vec(ra, dec, lonlat=True) # Obtain an array of indices for the pixels inside the circle ipix_disc = hp.query_disc(nside, xyz, radius)