#!/bin/csh -f # # This is an initial version of a .cshrc file, which should be able to # support usage of IDL. Save this file as .cshrc in your home directory. # # The .cshrc file is sourced by each csh when it is invoked -- use # this to include any aliases, or path changes, or other setup, which # you want to be available each time you start up a shell. # # You will probably customise this file fairly extensively as time # goes on, taking advice from colleagues. # Source the system cshrc file, if it exists if ( -f /usr/local/lib/Cshrc ) then source /usr/local/lib/Cshrc endif # Put your own aliases, etc. here alias ls ls --color=auto alias ssh 'ssh -Y' #alias rm 'rm -i' # ...that's the basics. What's below is setup for using IDL. # IDL variables # # At present, we are using v8.9 by default. setenv IDL_DIR /opt/idl/idl89/idl setenv IDL_PATH "$IDL_DIR/lib:$IDL_DIR/examples" setenv PATH ${PATH}:${IDL_DIR}/bin # CASA software binaries setenv PATH $PATH":/opt/casa/bin" # You may want to put local IDL programs into ~/local/lib/idl if (-d $HOME/local/lib/idl) then setenv IDL_PATH ${IDL_PATH}:${HOME}/local/lib/idl endif # environment for SolarSoft: SSW setenv SSW /opt/ssw # The following is a fairly minimal version setenv SSW_INSTR 'hessi xray spex trace sxt goes ethz' # You may add to this list any other instruments which you want to use. # For example... #setenv SSW_INSTR 'gx_simulator goes hessi xray spex packages pfss trace ethz goes sxt eit eis xrt sot norh nrh hinode aia hmi chianti ovsa radio stereo wind iris tplot 3dp' # The command gossw sets up all the variables for SSW. alias gossw "source $SSW/gen/setup/setup.ssw" # SXT needed for synop setenv HESSI_PATH $SSW/hessi # there is also a 'released' version of HESSI, # which may or may not be prefereable # setenv HESSI_PATH $SSW/hessi/release # skip remaining setup if not an interactive shell if ($?USER == 0 || $?prompt == 0 || $?TERM == 0) exit # source the general SSW setup script source $SSW/gen/setup/setup.ssw # You may want to make adjustments to where files are stored, or where # they are cached. To pick just one example, the file # $SSW/hessi/setup/setup.hessi_env shows a wide variety of possible # settings. You can source this file, and re-setenv variables # afterwards, or just setenv whatever variables you prefer. # # Note: Cached files should be located in a local/scratch directory; # they should NOT be in /home. setenv HSI_DATA_ARCHIVE /opt/rhessi setenv HSI_CATALOG_ARCHIVE /opt/rhessi/metadata/catalog setenv SUMMARY_DATA /opt/rhessi/metadata/catalog