read_rkf
is a Python script designed to extract and parse essential data from ams.rkf
files, which store critical results from AMS output files. These files typically contain:
- Trajectories
- Gradients
- Hessians
- Energies
- Band gaps and structures
- And more...
Ensure that you have Python ^3.9 installed and run the following command:
pip install read_rkf
from read_rkf.creat_archive import rkf_to_json
json_data = rkf_to_json("path/to/your.rkf")
from read_rkf.creat_archive import rkf_to_dict
python_dict = rkf_to_dict("path/to/your.rkf")
from read_rkf.parserkf import KFFile
data = KFFile("path/to/your.rkf")
all_sections = data.sections()
# Example: Reading the first section
section_content = data.read_section(all_sections[0])
This project is licensed under the MIT License.