Generating and working with events files

Reference / API

xpolbeamline.events Module

Functions

translate_wcs(evt[, colnames]) Translate the WCS from image to event list
median_column_remover(image) Remove median for each column from image
identify_evt_sigmaclip(image[, …]) Find the events of the given image.
add_islands5533(evt, image) Extract 5x5 and 3x3 event islands from image at FRAME, X, Y pos in evt
energy_from_island(evt[, islandcol]) Returns event energy based on event island
acis_grade(evt) Returns acis grade based on 3x3 event island
asca_grade(evt[, acisgrade]) Returns asca grade given an acis grade.
hotpixelfromtxt(evt, x, y) Flag all events with coordinates matching a given hot pixel list.
hotpixelbyoccurence(evt[, n]) Mark events with coordinates that appear more than a n times.
make_hotpixellist(evt, n) Write hot pixel list to file
dist2nextevent(evt)

Classes

ExtractionChain Event extraction chain with good default settings
NoEventError Exception to call if no events where found

Class Inheritance Diagram

Inheritance diagram of xpolbeamline.events.ExtractionChain, xpolbeamline.events.NoEventError