A user-friendly tool to calculate X-ray attenuation for optimizing sample thickness in XAS measurements
- 🎯 Intuitive Interface — Easy-to-use web app and Jupyter notebook GUI
- 📊 Interactive Plots — Visualize absorption, attenuation length, and more
- 🧪 Chemical Formula Support — Enter any compound formula for calculations
- ⚡ Explicit Calculation — Calculate a sample snapshot and see when edited inputs make results stale
- 🎨 Beautiful Design — Modern, responsive interface with dark mode support
No installation required! Just open the link and start calculating.
⏳ Note: The free server may take 30-60 seconds to wake up if it has been idle.
For more flexibility and scripting capabilities:
| Platform | Link |
|---|---|
| 🔗 Binder | |
| 🔗 Google Colab |
Compact Dr.XAS workbench with light/dark themes and interactive plots
- 🐍 Backend: Python + Flask + xraylib
- ⚛️ Frontend: React + Vite
- 📊 Plotting: Plotly.js
- 🎨 Styling: Dr.XAS semantic tokens, Figtree and Magma accents
- Python 3.9+
- Node.js 22+
# Clone the repository
git clone https://github.com/Dr-XAS/XASprep.git
cd XASprep
# Install backend dependencies
cd backend
pip install -r requirements.txt
# Install frontend dependencies
cd ../frontend
npm install
# Run development servers
npm run dev # Frontend at http://localhost:5173
# In another terminal:
cd backend && python app.py # Backend at http://localhost:5002Juanjuan Huang
📧 juanjuan.huang@anl.gov
This project is open source and available for scientific research and education.
⭐ If you find this tool useful, please consider giving it a star! ⭐
Made with ❤️ for the X-ray spectroscopy community
