5.3 How to use software

We introduce software which is required notice on the MDAS.
  1. AIPS
  2. CASA
  3. CASA Analysis Utilities
  5. IDL
  6. IRAF
  7. Jupyter Notebook
  9. Miriad
  11. pLaTeX
  12. SDFRED
  13. xdvi


Use application

If you use AIPS, please inform us (consult(at-mark) your MDAS account. With AIPS on the MDAS, you become able to analyze data analyzed by Server_A on Server_B by putting AIPS temporary files into your home directory. For this purpose, we have to write the pass to your home directory into AIPS setting files, so we want to know whether you use AIPS or not. If you do not inform us, you can only use AIPS ID 2-9, but ID 2-9 are the target of the scheduled deletion.

How to start AIPS

Please input commands below.
$ source /usr/local/aips/LOGIN.SH
$ aips tv=local:0


How to start CASA

The default path of CASA is a latest version. If you want to use old versions, please execute following lines.
4.7.0-1: /usr/local/casa/casa-release-4.7.0-1-el7/bin/casa
4.7.1: /usr/local/casa/casa-release-4.7.1-el7/bin/casa
4.7.2: /usr/local/casa/casa-release-4.7.2-el7/bin/casa
5.0.0: /usr/local/casa/casa-release-5.0.0-218.el7/bin/casa
5.1.0: /usr/local/casa/casa-release-5.1.0-74.el7/bin/casa
5.1.1: /usr/local/casa/casa-release-5.1.1-5.el7/bin/casa
5.1.2: /usr/local/casa/casa-release-5.1.2-4.el7/bin/casa
5.3.0: /usr/local/casa/casa-release-5.3.0-143.el7/bin/casa
5.4.0: /usr/local/casa/casa-release-5.4.0-70.el7/bin/casa
5.4.1: /usr/local/casa/casa-release-5.4.1-32.el7/bin/casa
5.5.0: /usr/local/casa/casa-release-5.5.0-149.el7/bin/casa

3. CASA Analysis Utilities

How to use

CASA Analysis Utilities are installed into following path: "/usr/local/src/casa/analysis_scripts/". Edit your casapy initializing file "~/.casa/" or create new file if it does not exist, and add the following.
import sys
aupath = '/usr/local/src/casa/analysis_scripts'
if aupath not in sys.path:
import analysisUtils as aU

checked functions

Operation of function on the following web site was confirmed.
Analysis Utilities in CASA Guide (
Note following points:

About Antenna Pad Information

Because antenna pad information is not installed, functions that require it can not work properly.

When you install into your home directory

You can install CASA Analysis Utilities also into your home directory. In that case, deploy the tools referring to the following site and change the path described in the to the appropriate one.
Analysis Utilities in CASA Guide (


How to start GILDAS

You need to input the following command before starting the GILDAS.
$ gilenv
After executing the command, you should able to start the GILDAS only on the terminal.

5. IDL

Can't start IDL (1)

After you kill IDL, you may have a trouble to restart IDL. The IDL configuration files may be damaged due to the forced termination. You may solve the problem with following operation, but the operation can damage the configuration files.
Rename "~/IDLWorkspace8?"
Rename "~/.idl"

Can't start IDL (2)

If you change shells after you login to the MDAS, you do not start IDL because IDL does not read configuration files. Please use a following command if you want to change shells.
$ modify_userinfo -s [Shells]


How to start IRAF 2.14

The default path is IRAF 2.16. If you want to use IRAF 2.14, please append following lines into your configuration files.
[sh, bash]
Append following script to both "~/.bashrc" and "~/.bash_profile".
if [ -r /usr/local/iraf2141/iraf/unix/hlib/ ]; then
export IRAFARCH=redhat
export iraf=/usr/local/iraf2141/iraf/
. $iraf/unix/hlib/

[csh, tcsh]
Append following script to "~/.cshrc".
if ( -r /usr/local/iraf2161/iraf/unix/hlib/setup.csh ) then 
  setenv IRAFARCH redhat
  setenv iraf /usr/local/iraf2141/iraf/
  source $iraf/unix/hlib/setup.csh

7. Jupyter Notebook

If you wish to execute jupyter notebook with "-no-browser" option on the MDAS interactive server, and use the notebook on a web browser on your local computer inside the network of NAOJ, we strongly recommend the use of SSH port forwarding, because the communication between your computer and the interactive server is not encrypted.

(If you use the VPN software and VPN servers of the MDAS, the software encrypts the communication between your computer and the VPN server of the MDAS, so that the use of SSH port forwarding is not required)

How to use SSH port forwarding for Jupyter Notebook

  1. Execute jupyter notebook on the MDAS interactive server with "-no-browser" option.
    $ jupyter notebook --no-browser
    --> URL to access the notebook is displayed.
    e.g.: http://localhost:8888/?token=...
  2. Execute SSH on your local computer (In case that the port number in URL is 8888).
    $ ssh -L 8888:localhost:8888  your_account@server_name(executing jupyter)
    Note: If the port number in URL differs from 8888,
          match the number in SSH option to the port number.
  3. Execute web browser on your computer, input the URL in address bar, and access the URL.


How to start the MCSRED

When you load mscred on the IRAF, then the MCSRED2 will be started in default setting. If you would like to start the MCSRED, you need to modify the following files.
task $mcsred=/usr/local/subaru/MCSRED/
set dir_mcsred="/usr/local/subaru/MCSRED/"
<sh/csh setting files>
[sh, bash]
Plese add a following line into ~/.bashrc and ~/.bash_profile.
export MCSRED_DIR=/usr/local/subaru/MCSRED

[csh, tcsh]
Please add a following line into ~/.cshrc.
setenv MCSRED_DIR /usr/local/subaru/MCSRED

9. Miriad

How to use Miriad

You need to call any of the following aliases before starting the Miriad.
[e.g. sh, bash]
alias mirenv="source /usr/local/miriad/" (for CARMA)
alias mirenv-sma="source /usr/local/miriad/miriad-sma/lib/miriad/" 
(for SMA)
alias mirenv-ata="source /usr/local/miriad/miriad-ata/lib/miriad/" 
(for ATA)
alias mirenv-bima="source /usr/local/miriad/miriad-bima/lib/miriad/" 
(for BIMA)
alias mirenv-gmrt="source /usr/local/miriad/miriad-gmrt/lib/miriad/" 
(for GMRT)
alias mirenv-wsrt="source /usr/local/miriad/miriad-wsrt/lib/miriad/" 
(for WSRT)
alias mirenv-atnf="source /usr/local/miriad/miriad-atnf/miriad/" (for ATNF)
alias mirenv-atnf2="source /usr/local/miriad/miriad-atnf2/lib/miriad/" 
(for ATNF, old version)
alias mirenv-fasr="source /usr/local/miriad/miriad-fasr/" (for FASR)
alias mirenv-lofar="source /usr/local/miriad/miriad-lofar/" (for LOFAR)
[e.g. Starging Miriad for SMA]
$ mirenv-sma
$ miriad


Can't start NEWSTAR

If empty temporary files such as "nsmmmlock", "mmm*", "pops*", "AIPS*", and "ttt*" exist in your home directory, then you can't open a login window or "AIPS can't start" would be displayed after you push a "ok" in the login window. You can start NEWSTER normally after remove the temporary files.

11. pLaTeX

Compilation error

If you cannot compile LaTeX files with EUC-JP encoding, please use -kanji option because default character set of the pLaTeX on the MDAS is UTF-8.
$ platex -kanji=euc hoge.tex


How to start SDFRED

The default path of SDFRED is a latest version. If you want to use SDFRED 1.4.1, please append following lines into your configuration files.
[sh, bash]
1) Append following lines to both "~/.bashrc" and "~/.bash_profile".
  PATH=/usr/local/subaru/sdfred20100528/bin:$PATH export PATH
  export PATH
2) Execute "source /.bashrc"

[csh, tcsh]
1)Append a following line to "~/.cshrcf"
  set path=(/usr/local/subaru/sdfred20100528/bin $path)
2) Execute "source ~/.cshrc".
3) Execute "rehash".

13. xdvi

Text garbling

Files compiled with EUC-JP encoding would be garbled on xdvi. Please use -kanji option if you compile files with EUC-JP encoding.
$ platex -kanji=euc hoge.tex