Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: cc0-1.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- other
|
| 6 |
+
tags:
|
| 7 |
+
- chemistry
|
| 8 |
+
- crystallography
|
| 9 |
+
- xrd
|
| 10 |
+
- materials-science
|
| 11 |
+
pretty_name: COD XRD Patterns
|
| 12 |
+
size_categories:
|
| 13 |
+
- 100K<n<1M
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Crystallography Open Database — Synthetic XRD Patterns
|
| 17 |
+
|
| 18 |
+
436,196 synthetic powder X-ray diffraction (XRD) patterns generated from every CIF file in the [Crystallography Open Database](https://www.crystallography.net/cod/) (COD).
|
| 19 |
+
|
| 20 |
+
## What's in the dataset
|
| 21 |
+
|
| 22 |
+
Each pattern is a simulated powder diffractogram computed from a published crystal structure. The dataset covers the full chemical and structural diversity of COD: metals, minerals, organics, MOFs, and everything in between. No measured (experimental) patterns are included — these are purely computational.
|
| 23 |
+
|
| 24 |
+
## Files and subsets
|
| 25 |
+
|
| 26 |
+
| File | Patterns | Purpose |
|
| 27 |
+
|---|---|---|
|
| 28 |
+
| `COD_xrd_patterns_1000.pt` | 1,000 | Quick prototyping |
|
| 29 |
+
| `COD_xrd_patterns_10000.pt` | 10,000 | Development / hyperparameter tuning |
|
| 30 |
+
| `COD_xrd_patterns_50000.pt` | 50,000 | Development / hyperparameter tuning |
|
| 31 |
+
| `COD_xrd_patterns_100000.pt` | 100,000 | Development / hyperparameter tuning |
|
| 32 |
+
| `COD_xrd_patterns.pt` | 436,196 | Full dataset |
|
| 33 |
+
|
| 34 |
+
The smaller subsets are random samples drawn from the full set.
|
| 35 |
+
|
| 36 |
+
## Data format
|
| 37 |
+
|
| 38 |
+
Each `.pt` file is a Python dictionary saved with `torch.save()`. Load it with:
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
import torch
|
| 42 |
+
|
| 43 |
+
data = torch.load("COD_xrd_patterns.pt")
|
| 44 |
+
|
| 45 |
+
patterns = data["patterns"] # torch.Tensor, shape (N, 4500)
|
| 46 |
+
filenames = data["filenames"] # list[str], length N
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
- **`patterns`**: A float tensor where each row is a 4,500-point XRD intensity vector.
|
| 50 |
+
- **`filenames`**: The corresponding COD CIF filenames (e.g. `"4326570.cif"`).
|
| 51 |
+
|
| 52 |
+
## Generation parameters
|
| 53 |
+
|
| 54 |
+
| Parameter | Value |
|
| 55 |
+
|---|---|
|
| 56 |
+
| Software | pymatgen `XRDCalculator` |
|
| 57 |
+
| Radiation | Cu K-alpha (lambda = 1.54184 angstrom) |
|
| 58 |
+
| 2-theta range | 0 to 90 degrees |
|
| 59 |
+
| Step size | 0.02 degrees |
|
| 60 |
+
| Points per pattern | 4,500 |
|
| 61 |
+
| Normalisation | Min-max scaled to [0, 1] |
|
| 62 |
+
|
| 63 |
+
Patterns were generated by reading each CIF file, computing the theoretical diffraction peak positions and intensities, and interpolating onto the uniform 2-theta grid. Regions with no diffraction peaks are zero-padded.
|
| 64 |
+
|
| 65 |
+
## Finding the original CIF files
|
| 66 |
+
|
| 67 |
+
Every filename maps directly to a COD entry. Strip the `.cif` extension to get the COD ID, then download the structure file:
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
Filename: 4326570.cif
|
| 71 |
+
COD ID: 4326570
|
| 72 |
+
URL: https://www.crystallography.net/cod/4326570.cif
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## License
|
| 76 |
+
|
| 77 |
+
CC0 1.0 Universal — same as the Crystallography Open Database itself.
|
| 78 |
+
|
| 79 |
+
## Citation
|
| 80 |
+
|
| 81 |
+
If you use this dataset, please cite:
|
| 82 |
+
|
| 83 |
+
**COD:**
|
| 84 |
+
Grazulis, S. et al. "Crystallography Open Database — an open-access collection of crystal structures." *Journal of Applied Crystallography*, 42(4), 726–729, 2009.
|
| 85 |
+
|
| 86 |
+
**pymatgen:**
|
| 87 |
+
Ong, S. P. et al. "Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis." *Computational Materials Science*, 68, 314–319, 2013.
|