nook.sources.ensdf_file¶
Reader for the ENSDF flat files distributed by NNDC.
Livechart exposes only the adopted dataset; these fixed-column card images carry every evaluation, so this is the backend for anything reaction-specific.
Decodes identification, X, Q, H, L, G, P, N, B,
E, A, D and R records, plus their data continuations. Comment
records are skipped but counted, so nothing disappears silently.
Files: https://www.nndc.bnl.gov/ensarchivals/, one per mass number
(ensdf.024); point ENSDF_PATH at the directory.
- class nook.sources.ensdf_file.ENSDFDataset(nuclide, dsid, reference, levels, gammas, skipped=0, band_definitions=None, xref_key=None, properties=None, parents=(), normalization=None, feedings=())[source]¶
Bases:
objectOne ENSDF dataset: an identification record and its level scheme.
- nuclide¶
- dsid¶
- reference¶
- levels¶
- gammas¶
- skipped¶
- band_definitions¶
- xref_key¶
- properties¶
- parents¶
- normalization¶
- feedings¶
- nook.sources.ensdf_file.ensdf_markup_to_text(text)[source]¶
Render ENSDF’s ASCII markup as readable Unicode.
|p7/2[404]becomesπ7/2[404];{+180}Hfbecomes180Hf. Purely cosmetic, but band configurations are unreadable without it.
- nook.sources.ensdf_file.parse_continuation_properties(lines)[source]¶
Decode
KEY=value$KEY=valuedata-continuation records.Continuation records carry everything the fixed 80-column primary record has no room for:
XREF, moments, decay branchings, flags. Values are left as text because their types vary by key.
- nook.sources.ensdf_file.parse_xref(value, key=())[source]¶
Expand an
XREFvalue into dataset symbols.Accepts plain letters (
ABCD), letters flagged as uncertain in parentheses (AB(C)D– kept, since the level was still reported), and theALL/ALL EXCEPT xyshorthands.
- nook.sources.ensdf_file.parse_transfer_l(value)[source]¶
Angular momentum transfers from an
Lfield like"5(+6)".
- nook.sources.ensdf_file.parse_ensdf_text(text)[source]¶
Parse an ENSDF card-image file into datasets.
- nook.sources.ensdf_file.split_energy_offset(text)[source]¶
Separate an ENSDF energy field into its number and offset symbol.
Manual V.18 allows
NUM,NUM+A,A+NUM,Aalone, and theSN/SPforms. The suffix spelling is easy to miss:4172.3+Xis a real level 4172.3 keV above an unknown reference, and treating the whole string as a number silently discards the energy.
- nook.sources.ensdf_file.parse_references(text)[source]¶
Decode
Rrecords, mapping NSR keynumbers to their citations.
- nook.sources.ensdf_file.place_gammas(scheme, tolerance_kev=1.0)[source]¶
Assign
end_indexto gammas by energy matching.Flat-file
Grecords give the transition energy and the level they depopulate, but not the level they feed. This resolves the final level as the one closest toE_start - E_gammawithintolerance_kev, which is what evaluators intend; ambiguous cases are left unplaced.
- nook.sources.ensdf_file.place_gammas_in(scheme)[source]¶
Run
place_gammas()on a decay scheme’s daughter levels.