xraylib icon indicating copy to clipboard operation
xraylib copied to clipboard

Breast tissue - NIST

Open badruk opened this issue 5 years ago • 5 comments

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

badruk avatar Dec 20 '18 14:12 badruk

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?

tschoonj avatar Dec 20 '18 14:12 tschoonj

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

badruk avatar Dec 20 '18 14:12 badruk

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.

tschoonj avatar Dec 20 '18 14:12 tschoonj

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?

badruk avatar May 17 '19 16:05 badruk

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.

tschoonj avatar May 18 '19 06:05 tschoonj