Skip to Content.
Sympa Menu

opal - [Opal] Masking Feature Request

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

[Opal] Masking Feature Request


Chronological Thread 
  • From: Ryan Roussel <rroussel AT anl.gov>
  • To: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: [Opal] Masking Feature Request
  • Date: Wed, 18 Jul 2018 16:07:21 -0500
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=rroussel AT anl.gov;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello all,
I was recently looking at the OPAL masking documentation and I was wondering if it would be possible to add in an option to mask the distribution by inputting a file containing matrix elements that describe a black and white image. This way one could use a physical mask image to create arbitrary masks. I have implemented this in python as part of a branch in pyOPALTools and included it in this email. While this works for generating initial distributions, a native implementation in OPAL would allow for arbitrary masking without having to split the beamline into separate OPAL simulations.  Arguments would just be the matrix file, the size of the mask in physical units and a specifier to center the mask on the reference trajectory.

Please let me know what you think,
Ryan Roussel 

Attachment: masking.py
Description: Binary data

Attachment: test_mask.png
Description: PNG image




Archive powered by MHonArc 2.6.19.

Top of Page