CoolFace
Datasetpublic

Venon28/SAXS

πŸ“‘ SAXS Synthetic Scattering Curves Dataset Thousands of physically accurate Small Angle X-ray Scattering (SAXS) curves, generated from rigorous physical models. πŸ”¬ What is this dataset? This dataset provides synthetic SAXS intensity curves I(q) generated using validated physical scattering models (via SASmodels), covering a wide range of nanoparticle shapes, materials, sizes, and concentrations. Each curve is fully labelled with its physical parameters, making… See the full description on the dataset page: https://huggingface.co/datasets/Venon28/SAXS.

sourceHugging Faceotherupdated 6mo agoView on Hugging Face
1likes29downloads
Dataset Card

πŸ“‘ SAXS Synthetic Scattering Curves Dataset

Thousands of physically accurate Small Angle X-ray Scattering (SAXS) curves, generated from rigorous physical models.

πŸ”¬ What is this dataset?

This dataset provides synthetic SAXS intensity curves I(q) generated using validated physical scattering models (via SASmodels), covering a wide range of nanoparticle shapes, materials, sizes, and concentrations.

Each curve is fully labelled with its physical parameters, making it immediately usable for:

  • β€”Training ML models to predict nanoparticle parameters from experimental curves
  • β€”Benchmarking fitting algorithms
  • β€”Data augmentation for experimental datasets
  • β€”Developing automated analysis pipelines

πŸ“Š Sample Visualization

(See attached figures in the dataset repository) ---

πŸ’Ό Versions & Pricing

This page hosts a free sample (~100 curves). Full commercial versions are available on Gumroad β†’

TierCurvesShapeMaterialPrice
Sample (this page)100sphereagFree
ag_sphere100kSphereAg49€
au_sphere100kSphereAu49€
sio2_sphere100kSphereSiO249€
latex_sphere100kSphereLatex49€
ag_cylinder100kCylinderAg49€
au_cylinder100kCylinderAu49€
sio2_cylinder100kCylinderSiO249€
latex_cylinder100kCylinderLatex49€
ag_parallelepiped100kParallelepipedAg49€
au_parallelepiped100kParallelepipedAu49€
sio2_parallelepiped100kParallelepipedSiO249€
latex_parallelepiped100kParallelepipedLatex49€
CustomUnlimitedCustomCustomOn request

πŸš€ Ploting function exemple

python
import h5py
import numpy as np
import matplotlib.pyplot as plt

def plotSaxs(h5_path, index_to_plot=0):
    with h5py.File(h5_path, 'r') as f:
        # Extract Data
        q = f.attrs['q']
        intensities = f['intensities'][index_to_plot]
        material = f.attrs.get('material', 'Unknown').upper()
        shape = f.attrs.get('shape', 'Unknown').capitalize()

        # Extract specific metadata for the legend
        params_str = ""
        for k in f.keys():
            if k == 'intensities':
                continue
            val = f[k][index_to_plot]
            params_str += f"{k}: {val:.2f} | "

    # Plotting Setup
    plt.rcParams.update({
        'font.size': 12,
        'axes.labelsize': 14,
        'xtick.labelsize': 12,
        'ytick.labelsize': 12,
        'legend.fontsize': 10,
        'lines.linewidth': 2,
        'figure.dpi': 200
    })

    fig, ax = plt.subplots(figsize=(9, 5))

    # main curve
    ax.loglog(q, intensities, color='#1f77b4', label=f"{material} {shape}")

    ax.set_xlabel(r'Scattering Vector $q$ ($\mathring{A}^{-1}$)')
    ax.set_ylabel(r'Intensity $I(q)$ ($cm^{-1}$)')
    ax.set_title(f'Simulated SAXS Profile: {material} {shape}', pad=15)

    # Styling the Grid and Spines
    ax.grid(True, which="both", ls="-", alpha=0.2)
    ax.spines['top'].set_visible(False)
    ax.spines['right'].set_visible(False)

    # Adding metadata info as a text box or legend
    props = dict(boxstyle='round', facecolor='white', alpha=0.5)
    ax.text(0.05, 0.05, params_str.rstrip(' | '), transform=ax.transAxes,
            fontsize=9, verticalalignment='bottom', bbox=props)

    ax.legend(frameon=False)

    plt.tight_layout()

    # Save as PDF or TIFF
    save_path = h5_path.replace('.h5', '.tiff')
    plt.savefig(save_path)
    print(f"Plot saved to: {save_path}")
    plt.show()

πŸ“„ License

This dataset is released under a Commercial Restricted License.

  • β€”βœ… Academic and research use: free
  • β€”βœ… Internal ML training: free for non-commercial entities
  • β€”βŒ Commercial use (products, services, APIs): requires a paid license

See LICENSE for full terms.


πŸ“¬ Contact & Custom Orders

Need a specific material, shape, q-range, or instrument noise model? β†’ [Contact via Gumroad](https://venon28.gumroad.com/) or open a Discussion on this page.


πŸ“– Citation

If you use this dataset in academic work, please cite:

bibtex
@dataset{saxs_2026,
  author    = {Thevenon, Esteban},
  title     = {SAXS Synthetic Scattering Curves Dataset},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/Venon28/SAXS}
}