% -*- mode: SLang; mode: fold -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % file: .hydrarc (from hydrarc.txt) % % 5/10/12 - dd % % Startup file for Hydra w/ISIS % % Usage: Copy this file into $HOME/.hydrarc % and then add to startup file (e.g., .aliases or .bash_profile ) % this alias: % # Start isis with hydra startup: % alias hydra 'isis $HOME/.hydrarc' % [ or: alias hydra="isis $HOME/.hydrarc" depending on shell ] % The command hydra will then start ISIS and add these extras. % % Note that the .isisrc file has already defined isis_extras_path % which points to where extra files like v3d.sl, etc are kept. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % - - - Traceback selection: %%_traceback=0; % No traceback output (for interactive) _traceback=4; % Traceback output enabled %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % tell user what's happening... (this follows .isisrc usually) message(" - - - - -"); message(" Doing things in "+getenv("HOME")+"/.hydrarc ... "); message(" Event-2D web page: http://space.mit.edu/home/dd/Event2D/"); message(" - - - - -"); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % .isisrc already required this, repeated here. require("xspec"); % Get the additional Hydra used/recommended modules: % GNU scientific library: require("gsl"); % Histogram module for hist2d, etc. require("histogram"); % Statistics module (for KS stats) require("stats"); % slh5 for hdf5 operations % Not needed for Event-2D: %%require("h5"); % GTK for images, etc. % Viewing the 2D images is important for Event-2D so this is currently % a required module: require("imdisplay"); % which does a require("gtk"); % % Not needed for Event-2D: %%require("vwhere"); % which does a require gtkplot, gktextra % Volpack for volume rendering % This maybe commented out if it is not available, % then v3d_view and s3d_view_comps will not be available. require("volview"); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % The hydra-specific s/w: v3d.sl, source3d.sl, and event2d.sl % which are assumed to be on the load path, for example in the % isis_extras path defined in .isisrc . % Require them too: require("v3d"); require("source3d"); require("event2d"); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % And now we can say: set_prompt("hydra> "); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % - - - Traceback selection: _traceback=0; % No traceback output (for interactive) %%_traceback=4; % Traceback output enabled %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%