Table of Contents

Name

uns_2dplot - create a 2D image of an UNS file

Synopsis

uns_2dplot in=uns_file select=range-or-component [parameter=value] ...

Description

uns_2dplot reads an UNS snapshot and plot a 2D image of the particles positions. Each particles are smoothed by a gaussian and colored according to a logscale colormap. The final effect give the illusion that the object has been colored by density. The rendering that you get, looks like the one you get with glnemo2(see man glnemo2) on gas particles.

The computation of all gaussian is multithreaded and the number of threads used can be selected from the command line. It requires BOOST thread api for compilation.

Parameters

The following parameters are recognized.
in=uns input file
Currently, the following input files are supported: Nemo,Gadget 2 & 1, list of files
select=select-particles
Select particles. Sets of particles must be selected using the : range operator, separated by a comma. E.g. select=0:9,10:19 would select two sets of 10 particles, or by component (gas,halo,stars,bulge,disk,bndry) [all]
dev=output-image-file
you specify here the output name of the image which will be automatically saved in GIF format. If you give only the character ’?’, PGPLOT will ask you, interactively, in which format you would like to save the image [?]
times=time-range
Select time [all]
range=range-for-all-axis
give the same range for all x,y and z axis. [-range:range], default none.
xrange=x-axis-range
Range of values for the X axis, specified with a pair of numbers separated by a colon. The default range is [-35.0:35.0].
yrange=y-axis-range
zrange=z-axis-range
xy=display-xy-plan?
select as true if you want to display particles in XY plan. Default is [t].
xz=display-xz-plan?
select as true if you want to display particles in XZ plan. Default is [t].
zy=display-zy-plan?
select as true if you want to display particles in ZY plan. Default is [f].
com=center-of-mass?
center according to center if mass. Default is [t].
sview=single-display-view?
if true, only one image will be created for all requested plan xy|xz|zy. If false, and if a name is given to ’dev’ parameter, then a separated gif file will be created for each plan xy|xz|zy. Default is [t].
title=image-title
give here a title for the image
pfname=rint-file-name?
if true, simulation’s filename will be displayed, default [t]
no=index-image-offset
specify the filename index offset of the image, default [0]
pixel=gaussian-pixel-size
size in pixel of the gaussian [20]
dimx=internal-width
internal image width in pixels [1024]
dimy=internal-height
internal image height in pixels [1024]
gp=gaussian-parameter
gaussian parameter [5]
threads=#threads-used
number threads used for the computation [2]
verbose=verbose?
display some verbose log [f]

See Also

snapplot(1NEMO) , snapgrid(1NEMO) , snapshot(5NEMO) , glnemo2(1NEMO)

Author

Jean-Charles LAMBERT

History


09-Nov-10    V1.0 public release    JCL


Table of Contents