Function fetch_csv
pub fn fetch_csv<N>(nuclide: N, rad_type: RadType) -> Result<String, Error>
Expand description
Fetch unmodified CSV data direct from IAEA
This will return the raw, unaltered CSV received from the IAEA as a String.
For example:
println!("{}", fetch_csv("Co60", RadType::Gamma).unwrap());
This will return the gamma decay data for Cobalt-60. The CSV data are column headings followed by a variable amount of records.
energy,unc_en,intensity,unc_i,start_level_energy, |
end_level_energy,multipolarity, mixing_ratio,unc_mr, |
conversion_coeff,unc_cc,p_z,p_n,p_symbol,p_energy_shift, |
p_energy,unc_pe,jp,half_life,operator_hl,unc_hl,unit_hl, | Headers
half_life_sec,unc_hls, decay,decay_%,unc_d,q,unc_q,d_z, |
d_n,d_symbol,ensdf_publication_cut-off, ensdf_authors, |
Extraction_date |
58.603,0.007,2.07,0.03,58.603,0.0,M3+(E4),0.02,LT,47.3, |
,27,33,Co,,58.59,0.01,2+,10.467,,6,m,628.02,0.36,IT, | Record[0]
99.75,0.03,,,27,33,Co,31-Dec-2012,E. BROWNE and J. K. |
TULI,2024-03-18 |
...
8.296,,0.0013453257951684461,0.000023104962776745224,, |
,,,,,,27,33,Co,,0,,5+, 1925.28,,14,d,166344192,12096, | Record[N]
B-,100,,2822.81,21,28,32,Ni,31-Dec-2012,E. BROWNE and |
J. K. TULI,2024-03-18 |
Use fetch_nuclide() or fetch_nuclides() to automatically deserialise these data into sets of Records.