File Formats
Input Formats
The RadFx environment format for differential particle flux spectra (protons and ions) shall be:
{
"Energy (MeV/n)": [ 1, 3, 10, 30, 100 ],
"Flux (/cm^2-s-sr-(MeV/n))": {
"1": [ 1e-2, 3e-3, 1e-3, 3e-4, 1e-4 ],
"26": [ 1e-5, 3e-6, 1e-6, 3e-7, 1e-7 ],
}
}
Output Formats
The plotly format for graph data is a dictionary with "data" and "layout" entries. The format is
{
"data": [
{"name": "1", "x": [1, 3, 10, 30, 100], "y": [1e-2, 3e-3, 1e-3, 3e-4, 1e-4]},
{"name": "26", "x": [1, 3, 10, 30, 100], "y": [1e-5, 3e-6, 1e-6, 3e-7, 1e-7]},
],
'layout': ...
}