From Documentation
Jump to: navigation, search
Note: Some of the information on this page is for our legacy systems only. The page is scheduled for an update to make it applicable to Graham.
Yt
Description: Visualization
SHARCNET Package information: see Yt software page in web portal
Full list of SHARCNET supported software


Introduction

The yt project is a Python package for analyzing and visualizing volumetric, multi-resolution astrophysical data. It can be used either interactively from a cluster development node (on orca, saw, kraken), or in a job submitted with sqsub. Even though yt was compiled as a module (default third-party software installation mode on SHARCNET), there is no need to load it, all environment variables and bash functions for yt can be loaded via script.

On centos6 systemsa the script must be loaded as follows.

source /opt/sharcnet/yt/bin/activate

On fedora 23 based visualization workstations and newer do:

 source /usr/local/yt/yt-x86_64/bin/activate

After you finish analysis/visualization, you can unload the yt settings with

deactivate

What you do in between these two commands, is completely up to you. To get started, please read yt documentation. You can also edit this wiki to add usage examples.

Sample calculation

First we initialize yt:

source /opt/sharcnet/yt/bin/activate
python

Using sample dataset "IsolatedGalaxy_Gravity" (177MB) as an example:

from yt.mods import *
pf = load("IsolatedGalaxy_Gravity/galaxy0030/galaxy0030")
slc = yt.SlicePlot(ds, 'z', 'density')
slc.save()

This should produce an image, galaxy0030_Slice_z_density.png . (You can view it on login/dev nodes using command "display".) Finally exit the yt mode with the bash command:

deactivate

Determine Version

[roberpj@vdi-fedora20:/usr/local/yt/yt-x86_64/bin] ./yt version 
yt module located at:
    /usr/local/yt/yt-x86_64/src/yt-hg
The current version and changeset for the code is:
---
Version = 3.2.3
Changeset = bdea84d95099 (stable) @
---
This installation CAN be automatically updated.
Could not determine when yt stack was last updated.

References

o Official Yt Website
http://yt-project.org

o Quickstart Guid
http://yt-project.org/doc/quickstart/

o Sample Data
http://yt-project.org/data/

o Docs
http://yt-project.org/data/

o Mailing List (for support)
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

o More detail info
See the sharcnet gaussian software page