CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
this PR introduces the loading of grids with given properties in the header.
The first implementation only allows property reading in the TXT files.
An example of the properties in the header looks like this
all units are in SI base units (in this case m). The loading itself has the conversion variable as before.
Loading a grid can now be done as
grid = loadGrid3f("myGridFile.txt", 1 * gauss)
I also introduce the possibility to store the properties in the dumpGridToTxt function and additional tests for this grid reading/dumping.
To have an example, I adjusted the notebook with the grid-based glactic gas densities to use the grid property reading. The files on sciebo (additional resources) are already updated (additional line with the properties in the right format).
Dear all,
this PR introduces the loading of grids with given properties in the header. The first implementation only allows property reading in the TXT files. An example of the properties in the header looks like this
all units are in SI base units (in this case m). The loading itself has the conversion variable as before. Loading a grid can now be done as
I also introduce the possibility to store the properties in the
dumpGridToTxt
function and additional tests for this grid reading/dumping.To have an example, I adjusted the notebook with the grid-based glactic gas densities to use the grid property reading. The files on sciebo (additional resources) are already updated (additional line with the properties in the right format).