This is a call to all solar physicists* that are using csh or any variant of it (eg. tcsh). Stop damaging yourself! You maybe don’t even know why you are using it. Well, if you are a solar physicists most likely you are using it because solarsoft but I’m here to tell you how you can start using bash without giving up of your sswidl environment (yet)
* This guide can be applied to anyone, not just solar physicists and solarsoft, other astronomers using iraf or other researchers using some other code that needs of csh will be able to follow the steps below and changing accordingly to their needs
Step Numero 1 - Know which shell you are using
Some of you have set the tcsh by default, others just get into it to run sswidl. To know in which shell you are in you can just do:
If you get such output then here’s where a new life for your shell experience will start.
Step 2 - Make bash your default
This depends how is your system configured. Normally, if it’s your own machine, then you could do:
Opening a new shell and trying step 1 should show whether it works. There are other options which you won’t need it. In the case the system is administrated by an IT team, then you should ask them to do it for you.
Step 3 - Solarsoft working from bash
Till today, probably you have a .cshrc
file full of your configuration variables for solarsoft.
From now on, you can keep your solarsoft configuration in an independent file.
Let’s first create that file in a place where your PATH sees it. You don’t know what PATH means?
Then do not worry, we can then create a new directory:
and add it to your PATH
Now we are going to create a new file in such directory called ssw, use your favourite editor to do such:
Note: the file as it is should work if you are at MSSL
Now, save it and let’s give it permissions to execute:
Done!
Open a new session and check whether it works:
Now you have an awesome shell and could do very cool stuff and run solarsoft from it.
Do you want an awesome idl shell? keep tuned! I’ll tell you how to use rIDL soon, but that will require a chocolate fee. :)
Enjoy!