NAME

visualize_halos.c and visualize_halodump.c - Programs for visualizing the data contained in an AHF _halos file or a halodump file. The programs render a 3d view using OpenGL and faciliate user interaction via keyboard and mouse. The halos are shown color coded either by formation redshift (visualize_halodump) or mass (visualize_halos). In addition, visualize_halos can animate the view by cycling through the _halos files passed as the argument.


SYNOPSIS

        # Visualizing halos with a 1024x768 screen in 32 bit colour
        ./visualize_halos -w 1024 -h 768 -d 32 10 SIMU.z0.100.AHF_halos \
        SIMU.z0.000.AHF_halos
        # Visualizing a halodump with the same parameters
        ./visualize_halodump -w 1024 -h 768 -d 32 10 \
        SIMU.z0.000.AHF.halodump_halos_with_subhalos.dat


ARGUMENTS

Both programs recognize these command line arguments, which must be given in this order: [OPTS] BOX HALODUMP/HALOS [, HALOS [...]].


MOUSE CONTROL

In both programs, the 3d view is controlled by using the mouse. When the cursor is over the program screen, pressing left mouse button and moving the mouse will rotate the view around the center of the box. When the right mouse button is pressed, moving the mouse up and down will zoom in and out, respectively.


KEYBOARD COMMANDS

Both programs recognize the following keyboard commands.

In addition, the visualize_halos program recognizes the following keyboard commands:


AUTHOR

Written in 2006 for the benefit of Tuorla Observatory Cosmological Simulations research group by Pauli Pihajoki.


COPYRIGHT

 Copyright (c) 2006, Pauli Pihajoki
 All rights reserved.
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
 THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.