| Event-2D: | Home | Examples | Install | Documenation | News & Pubs |
"... three sl files, two rc files, and an alias in a user startup script."
The Event-2D software consists of three ASCII files of S-Lang code which the user adds to their ISIS installation. The files are available here:
Changes to these files (both made and planned) are summarized in: ChangeLog.txt.
- event2d.sl - v1.2.1, 2011-05-12
- Event-2D library of routines for event-based 2D data and model analyses.
- source3d.sl - v1.2.0, 2010-05-10
- Source-3D library for defining 3D sources.
- v3d.sl - v1.2.1, 2011-05-03
- Volumetric 3D geometry creation library; see also the V3D web page.
These three files can be put in any convenient directory which is then added to the isis load path.
To help with startup things (like setting the load path), it is useful to have the files ~/.isisrc and ~/.hydrarc in the user's home directory. Examples of such files for a linux system are given here and can be copied and modified as desired/appropriate:
alias hydra 'isis $HOME/.hydrarc'
or
alias hydra="isis $HOME/.hydrarc"
Note that these are setup in such a way that typing isis at the system prompt will invoke isis without the Event-2D extras. Typing hydra will invoke isis and also include the additional Event-2D modules and software. The name "hydra" is a historic holdover from the Hydra project at MIT, and represents the ability of isis to be extended, e.g., "Beyond XSPEC".
The Event-2D s/w is then started (e.g., in a working directory) by typing "hydra" at the system prompt:
If isis starts up and the hydra prompt appears as shown above then the s/w is probably installed and working fine. See the Examples and Documentation pages for next steps and more information.
dd@socrates[49] cd /nfs/spectra/d1/Science/E0102/e2d_120510/ dd@socrates[50] hydra - - - - - Doing things in /nfs/cxc/h3/dd/.isisrc ... - - - - - ... - - - - - Doing things in /nfs/cxc/h3/dd/.hydrarc ... Event-2D web page: http://space.mit.edu/home/dd/Event2D/ - - - - - Welcome to ISIS Version 1.6.2-3 ... hydra> e2d_help; ... [useful reminder listing of the e2d commands] ... hydra> quit; dd@socrates[51]
Getting Event-2D software to run can be as simple as described above, however there are two major categories of stumbling blocks that can arise:
dd@socrates[50] isis ... Welcome to ISIS Version 1.6.2-3 ... isis> plot([1,2,3],[2,4,8]); isis> fit_fun("phabs(1)*vnei(1)"); % define a wavelength grid from 8 keV to 20 A: isis> (lo, hi) = linear_grid (Const_hc/8.0, 20.0, 2000); isis> y = eval_fun (lo, hi); isis> hplot(lo, hi, y, 4); % 4 = blue isis> quit; dd@socrates[51]
hplot ouput
install-isis.sh script, as well
as those that are used by Event-2D.
As the table below shows, there are two modules that are not generally provided with isis that Event-2D makes use of: imdisplay (w/gtk) and volview (w/volpack).
When this is done, the simple 3D visualization commands
% This maybe commented out if it is not available, % then v3d_view and s3d_view_comps will not be available. %%%require("volview");
v3d_view and
s3d_view_comps will then be unavailable, i.e., the
gray 3D images seen on the
V3D page
cannot be made and interactively viewed.
| Module, require("") | Used by Event-2D? | Installed by install-isis.sh |
|---|---|---|
| cfitsio | yes | yes |
| gtk | yes (imdisplay) | No |
| gsl | yes | yes |
| histogram | yes | yes |
| imdisplay | yes | No |
| maplib | - | yes |
| pcre | - | yes |
| pgplot | yes | yes |
| png | - | yes |
| stats | yes | yes |
| volview | Optional | No |
| xpa | - | yes |
| xspec | yes | yes |
| Send comments to dd@space.mit.edu | above last updated 5/10/2012 |