Skip to main content

P01 IRIXS reduction routines

Project description

IRIXS reduction routines

Scripts for analysis of data collected on the IRIXS spectrometer, Beamline P01, Synchrotron Petra-III, DESY

Overview

Reduction Classes

IRIXS.irixs: reduction class for the Rowland circle spectrometer
IRIXS.spectrograph: reduction class for spectrograph

  • extracts raw collected images, transforms them into spectra and loads them to text files for analysis.
  • basic plotting and fitting functionality

Scripts

p01plot: GUI application for quick plotting and fitting for experiments on P01 and P09
irixs_oneshot: check detector images from a specific measurement

Installation

Environment: Python 3.8+ w/ scipy + matplotlib + scikit-image + PyQT5

from PyPI:

  1. pip install IRIXS

If using an anaconda/miniconda distribution, it is suggested to install dependencies separately:

  1. pip install IRIXS --no-deps
  2. then e.g. conda install pyqt

To symlink to the source folder instead:

  1. Clone repository to a prefered location
  2. Enter root directory
  3. pip install -e .

Usage

IRIXS.irixs

Example reduction script for IRIXS.irixs

from IRIXS import irixs

expname = 'irixs_11009137'
a = irixs(expname, y0=667, roix=[160, 1500], roih=[-200, 200])

elastic_runs = [1713, 1719]
spectra_runs = [1710, 1711, 1712, 1722, 1723]

a.condition(0.006, elastic_runs, fit=True)
a.condition(0.02, spectra_runs)

fig, ax = plt.subplots()
a.plot(elastic_runs, ax=ax)
a.plot(spectra_runs, ax=ax)

IRIXS.spectrograph

Example reduction script for IRIXS.spectrograph todo

p01plot

p01plot [directory] [--remote -r] [--help -h]
directory : location to look for .fio data files
            defaults to /gpfs/current/raw, then current directory
--remote : remove cursor to speed up remote connections
--help : show this menu

irixs_oneshot

irixs_oneshot [number of run]

License

Copyright (C) Max Planck Institute for Solid State Research 2019-2021
GNU General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IRIXS-0.5.4.tar.gz (35.2 kB view hashes)

Uploaded Source

Built Distribution

IRIXS-0.5.4-py3-none-any.whl (49.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page