This script takes a directory with EXFOR masterfiles and stores
augmented EXFOR subentries in a MongoDB database.
The directory has to be specified in the script by replacing the
string <PATH TO DIRECTORY WITH EXFOR ENTRIES>
with the actual
directory.
In more detail, the script accomplishes the following:
- Read in the EXFOR masterfiles
- Convert energy units to MeV and cross sections to millibarn
- Merge the first subentry of each entry into the following subentries
- Convert the augmented subentry to a JSON object
- Add these JSON objects to a MongoDB database
This script relies on the functionality of the packages mongolite, data.table and exforParser. The unit conversion and merging of subentries is implemented in the function transformSubent of the exforParser package.