Skip to content

Instantly share code, notes, and snippets.

@dpshelio
Last active October 11, 2015 02:28
Show Gist options
  • Save dpshelio/3788942 to your computer and use it in GitHub Desktop.
Save dpshelio/3788942 to your computer and use it in GitHub Desktop.
My Solarsoft configuration files
# SSW path
setenv SSW $HOME/ssw/ssw_local
# SSW instrument list
setenv SSW_INSTR "gen eit hessi secchi stereo"
# Set IDL paths; where you have all your wonderful creations that you will use more than once
setenv IDL_PATH "~/Work/IDL:+~/Superlib"
# set IDL startup options; Do you have any preferred options in IDL that you want them to load at the beginning?
setenv IDL_STARTUP ~/idl_startup_ssw
# execute SSW setup script
source $SSW/gen/setup/setup.ssw /quiet
# we need a blank line!
# SSW path
setenv SSW $HOME/ssw/ssw_phy
# SSW instrument list
setenv SSW_INSTR "gen eit hessi secchi stereo"
# Set IDL paths; where you have all your wonderful creations that you will use more than once
setenv IDL_PATH "~/Work/IDL:+~/Superlib"
# set IDL startup options; Do you have any preferred options in IDL that you want them to load at the beginning?
setenv IDL_STARTUP ~/idl_startup_ssw
# execute SSW setup script
source $SSW/gen/setup/setup.ssw /quiet
# we need a blank line!
!PROMPT = 'SSW>'
; and other idl commands
#!/bin/bash
ip=`curl -s http://checkip.dyndns.com | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"`
# TCD ip addresses are 134.226.254.???
if [[ $ip =~ ^134\.226\.254\.[0-9]{1,3}$ ]]; then
if [ ! -d ~/ssw/ssw_phy/gen ]; then
#connect with phy108018
sshfs solarsoft@phy108018.phy.tcd.ie:/Users/solarmachine/ssw ~/ssw/ssw_phy
fi
#read script_phy
ssw_phy
else
#use local copy
ssw_local
fi
#!/bin/tcsh
# This file fires up ssw without the need to change to (t)csh;
# Save it in a place set in your path (echo $PATH ; eg: /usr/local/bin) or execute it as ./ssw
# Don't forget to set the execution permissions right! ie. chmod 755 ssw
source ~/cshrc_ssw_local
sswidl
#!/bin/tcsh
# This file fires up ssw without the need to change to (t)csh;
# Save it in a place set in your path (echo $PATH ; eg: /usr/local/bin) or execute it as ./ssw
# Don't forget to set the execution permissions right! ie. chmod 755 ssw
source ~/cshrc_ssw_phy
sswidl
#!/bin/bash
#To use before disconnect... otherwise the system has to be rebooted
fusermount -u ~/ssw/ssw_phy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment