Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breast tissue - NIST #95

Open
badruk opened this issue Dec 20, 2018 · 5 comments
Open

Breast tissue - NIST #95

badruk opened this issue Dec 20, 2018 · 5 comments

Comments

@badruk
Copy link

badruk commented Dec 20, 2018

Am I missing something or is there no way to access to NIST's breast tissue datas with the script?
I can't find anything under xrl.GetCompoundDataNISTList() relatable to this link

At the same time would it be possible to add a way to automatically retrieve NIST's density for compounds?

Using python + version downloaded via conda-forge

@tschoonj
Copy link
Owner

Unfortunately not: if it's not available via https://physics.nist.gov/cgi-bin/Star/compos.pl, then it's not in xraylib.

I am not sure what you are asking for: do you mean that for a given chemical formula, xraylib should fetch or calculate the density? Or is this only for compounds from the NIST catalog in xraylib?

@badruk
Copy link
Author

badruk commented Dec 20, 2018

Thank you for your quick reply.

An analog for compounds of xraylib.ElementDensity(elem), obviously only for those compounds available via NIST catalog in xraylib

@tschoonj
Copy link
Owner

I can see how this could be useful when combined with CS_Total_CP.

I don't really have time to write this right now... feel free to open a pull request.

@badruk
Copy link
Author

badruk commented May 17, 2019

Unfortunately not: if it's not available via https://physics.nist.gov/cgi-bin/Star/compos.pl, then it's not in xraylib.

Would it be possible knowing the composition (https://physics.nist.gov/PhysRefData/XrayMassCoef/tab2.html) of a compound to use it inside xraylib?

@tschoonj
Copy link
Owner

Well if you know the atomic numbers and weights of all constituent elements, then you can certainly produce the compound cross sections by looping over it.

If you're asking if you can modify the internal xraylib tables with your own compositions, unfortunately that's not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants