DOI: 10.15161/oar.it/75358
title: Modulation Module for HelMod-4

description: The SDE integration with HelMod results in a quite expensive effort from the computational point of view since, to minimize the uncertainties, a huge amount of events should be integrated from Earth to the heliosphere boundary. Monte Carlo integration allows us to evaluate the normalized probability function (G) that a particle observed at Earth with rigidity R0 entered into the heliosphere with rigidity R. The convolution of the normalized probability function with the very local interstellar spectra result in the modulation of differential intensity for the time and solar distance where G was evaluated. In the present dataset, we provide the numerical output of HelMod-4 model (www.helmod.org) in the form of normalized probability histograms. The python script attached is able to convert GALPROP output (or plain text LIS file) to modulated spectrum for periods of selected experiments. This dataset was used as part of the publications in the references. For any information about the HelMod-4 Model, please refer to the official website. <strong>How to install and configure </strong> Install python (&gt;3.0) packages astropy scypy &gt;=0.17.0 numpy &gt;=1.10 matplotlib Download the Python OfflineModule and the HelModArchive. The archive is provided in tgz format, thus it needs to be first unpacked with the command <code>tar -xvzf &lt;ArchiveName&gt;.tgz</code>. The archive structure: The HelModArchives.tgz contains several directories each one with the name of a space or balloon mission. Each folder should be considered as an HelMod Archive containing the following files: <em>ExpList.list </em>: List of nuclei and isotopes simulated (to not modify) <em>ExpList_Plot.list</em>: List of nuclei available in the archive, reference and plots properties (do not modify first and second columns, the others can be updated to modify the output plots) <em>ParameterSimulated.list</em>: list of folders in the form RawPar_HelMod4_XX, (<em>at least one line should start with '+', if not, please add it to first line</em>) <em>ParameterSimulated_DB.list</em>: list of folders in the form RawPar_HelMod4_XX, with description <em>Version.txt </em>: Version notes <em>DataTXT</em> : experimental energy and rigidity binning used for simulations <em>RawPar_HelMod4_00</em> : HelMod simulations outputs <strong>How to use the module</strong>: The usage of the module requires three elements: An Helmod Archive unpacked in some known folder. E.g. let's &lt;ArcPath&gt;=/home/test/Archive1 A LIS from galprop fits file OR plain text file format (hereafter called <code>&lt;LIS_FILE&gt;</code>). The label of the ion/dataset (hereafter called <code>&lt;ExpNameKey&gt;</code>) that are intended to be modulated. The list of available <code>&lt;ExpNameKey&gt;</code> in each archive may be found in the file ExpList_Plot.list or using the command-line <pre><code class="language-bash">python3 HelMod_Module.py -a &lt;ArcPath&gt; -l</code></pre> The basic command to get the modulated spectrum is: <pre><code class="language-bash">python3 HelMod_Module.py -a &lt;ArcPath&gt; --LIS &lt;LIS_FILE&gt; --SimName &lt;ExpNameKey&gt;</code></pre> other available options: <code><em>-h</em> </code>help description <em><code>-t</code></em> use this option to specify that &lt;LIS_FILE&gt; is a two-column plain text file (see below). <code><em>-p &lt;PAR_SET_NAME&gt;</em> </code>Choose a different set of parameters. The list of available parameter set names is available in the file <em>ParameterSimulated_DB.list .</em> <em><code>--MakePlot</code>Create</em> a Plot in png format. <code><em>--SumAllIsotpes</em> </code>(can be used with GALPROP LIS inputs) evaluate the modulated spectra as the sum of the modulated isotopes spectra (note that without this option only the LIS of the isotope specified in &lt;ExpNameKey&gt; is considered by the script). <code><em>--PrintLIS</em> </code>Create a file with the LIS in the format of a two-column plain text file. <code><em>--SimUnit &lt;Tkin/Rigi&gt;</em> </code>force the Output Unit of the module: use <em>Tkin</em> to select Kinetic Energy per Nucleon [GeV/n], use <em>Rigi</em> to select Rigidity [GV]. If not specified, the output is chosen accordingly to the original format of the experimental dataset. <em><code>-</code></em><code><em>o &lt;FILE_NAME&gt;</em> </code>Use a custom name for the output file. <strong>LIS in text format</strong> Users can provide a txt file for LIS with the following characteristics: The file must be a text file. The file must contain two columns only: one for kinetic energy per nucleon [GeV] the second for the LIS flux [ (m<sup>2</sup> s sr GeV)<sup>-1</sup>]. The file may contain comments. Line starting with '#' character will be ignored.
description: {"references": ["Boschini et al (2022) Astrophys. J. 925(2):108 http://dx.doi.org/10.3847/1538-4357/ac313d", "Boschini et al (2021) Astrophys. J. 913(1):5 http://dx.doi.org/10.3847/1538-4357/abf11c", "Boschini et al (2020) Astrophys. J. Supplement 250(2):27 http://dx.doi.org/10.3847/1538-4365/aba901", "Boschini et al (2020) Astrophys. J. 889(2):167, 2020. http://dx.doi.org/10.3847/1538-4357/ab64f1", "Boschini et al (2019) Advances in Space Research 64(12):2459 - 2476 http://dx.doi.org/10.1016/j.asr.2019.04.007"]}