Skip to content

Commit

Permalink
Update app/routes/docs.client.samples.md
Browse files Browse the repository at this point in the history
Co-authored-by: Leo Singer <[email protected]>
  • Loading branch information
Vidushi-GitHub and lpsinger authored Dec 22, 2024
1 parent e9a1340 commit b9f1b53
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/routes/docs.client.samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9f1b53

Please sign in to comment.