Skip to content

create a MongoDB database with EXFOR entries read from text files

License

Notifications You must be signed in to change notification settings

gschnabel/createExforDb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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:

  1. Read in the EXFOR masterfiles
  2. Convert energy units to MeV and cross sections to millibarn
  3. Merge the first subentry of each entry into the following subentries
  4. Convert the augmented subentry to a JSON object
  5. 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.

About

create a MongoDB database with EXFOR entries read from text files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages