ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2406.008] sphereint: Integrate data on a grid within a sphere

sphereint calculates the numerical volume in a sphere. It provides a weight for each grid position based on whether or not it is in (weight = 1), out (weight = 0), or partially in (weight in between 0 and 1) a sphere of a given radius. A cubic cell is placed around each grid position and the volume of the cell in the sphere (assuming a flat surface in the cell) is calculated and normalized by the cell volume to obtain the weight.

Code site:
https://github.com/robynlm/sphereint
Used in:
https://ui.adsabs.harvard.edu/abs/2023PhRvD.107l3536M
Bibcode:
2024ascl.soft06008M

Views: 63

ascl:2406.008
Add this shield to your page
Copy the above HTML to add this shield to your code's website.