Page 1 of 1
sddscontour
Posted: 16 Mar 2009, 13:26
by Max
Can somebody help me in setting up a contour plot ? I am trying to make a contour plot of the projected emittances for various fractions of the number of particles.
Thanks, Max
Re: sddscontour
Posted: 17 Mar 2009, 08:20
by michael_borland
Max,
Depending on how the file is structured, the answer will be different. Can you post the file (or send it to me by private email)?
--Michael
Re: sddscontour
Posted: 17 Mar 2009, 16:59
by michael_borland
Max,
Attached is a script that may do what you want.
First, save the attachment to your disk. Using cygwin (I'm assuming you are on Windows)
% cd <directoryWhereYouSavedTheFile>
% tar xvf fracEmittance.tar
% chmod +x fracEmittance
% echo $PATH
% mv fracEmittance <somewhere in your path>
where <somewhere in your path> is one of the directories listed when you do "echo $PATH". (I'm guessing at these instructions, since I don't have a windows computer to try it on.)
Example of using the script:
% fracEmittance -input run.out -plane x \
-fractions 20,30,40,50,60,70,80,90,95 -output run.xfilt
This will perform analysis of the beam in run.out, filtering on the x invariant. The cuts take will include 20%, 30%, etc. of the beam, sorted by increasing Jx. You'll get two plots: one showing the particles color-coded by sqrt(Jx). Another showing emittance and other quantities as a function of the fraction included.
You'll need to have installed OAG Tcl/Tk (from our web site) for this script to run.
--Michael
Re: sddscontour
Posted: 17 Mar 2009, 17:06
by michael_borland
Here are some sample plots.
--Michael