[ Japanese | English ]
Export version of NOSTAR runs on Linux (Red Hat EL or Fedora) machines. We do not support other environments (compilation from the source may be available, though). Developments are carried out on the following machine/OSs.
NOSTAR consists of the following three components:
Hereafter we describe how to install them.
There are two ways to install binaries: to copy pre-compiled binaries, or to compile from the source files. C and FORTRAN compilers (e.g., gcc & g77) are needed if you intend to compile the source. Pre-compiled binaries require g77 library files.
Download and extract an archive of binaries onto desired directory. Here we assume the destination directory to be /usr/local/nostar/bin/ .
% su
# mkdir -p /usr/local/nostar
# tar zxvf otf-bin-XXXX-XX-XX.tar.gz -C /usr/local/nostar/
You may have to install a library related to g77 (libg2c.so.0). It will be installed by installing g77.
If the binaries do not work well, please compile them from the source.
Download and expand the source tarball.
% tar zxvf otf-src-XXXX-XX-XX.tar.gz
% cd src
Specify environment variables CC, FC, and OTF_INSTALL_DIR. CC represents the C compiler and its options: genarally "gcc -DINTEL -Wall". The "-DINTEL" option is needless if the CPU is not Intel-like (i.e., the CPU is big-endian). Old compilers (GCC 2.x or earlier?) may need "-DGCC2" FC is the FORTRAN compiler, and OTF_INSTALL_DIR is a destination directory in which the compiled binaries are copied.
% setenv CC "gcc -DINTEL -Wall"
% setenv FC g77
% setenv OTF_INSTALL_DIR /usr/local/nostar/bin
Of course the above example is written in the C-shell style. In B-shell, type like export CC="gcc -DINTEL -Wall" .
"make" and install.
% make clean
% make
% su
# mkdir -p /usr/local/nostar/bin
# setenv OTF_INSTALL_DIR /usr/local/nostar/bin
# make install
If a licenced copy of IDL is installed on the computer, copy IDL procedures into a desired directory. Otherwise, install the IDL Virtual Machine, and use a set of pre-compiled procedures (".sav" file).
Set an environment variable IDL_DIR adequately.
% setenv IDL_DIR /usr/local/itt/idl
Download and extract a tarball of procedures. Here we assume the destination directory to be /usr/local/nostar/pro/ .
% su
# tar zxvf otf-pro.tar.gz -C /usr/local/nostar/
Alternatively, you can use a pre-compiled ".sav" file as described below.
Download the IDL Virtual Machine from the web site of Harris Geospatial and install. Set the command search path to idl, and set an environment variable IDL_DIR adequately.
% set path=(/usr/local/itt/idl/bin $path)
% setenv IDL_DIR /usr/local/itt/idl
Download and extract a pre-compiled IDL procedures (a ".sav" file). Here we assume the destination directory to be /usr/local/nostar/ .
% tar xvzf otf.sav.71.tar.gz
% su
# mv otf.sav /usr/local/nostar/
Download and modify the startup script.
% gunzip nostar.gz
% vi nostar
OTF_START_CMD is a command-line to launch NOSTAR. If you use pre-compiled IDL procedures (IDL VM) set "idl -vm=(path to the .sav file)", otherwise set "idl start_otf".
OTF_START_CMD='idl start_otf'
# OTF_START_CMD="idl -vm=/usr/local/nostar/otf.sav"
OTF_ROOT_DIR_PREFIX and OTF_ROOT_DIR_POSTFIX determines the data directory, which is ${OTF_ROOT_DIR_PREFIX}GROUP${OTF_ROOT_DIR_POSTFIX}PROJ/ In the case shown below, the data directory becomes /home/GROUP/PROJ/ .
OTF_ROOT_DIR_PREFIX=/home/
OTF_ROOT_DIR_POSTFIX=/
OTF_CMD_PATH should point the directory in which the command binaries are installed. In addition, if you use raw (not pre-compiled) IDL procedures, set OTF_GUI_PATH to the directory in which the IDL procedures are installed, and set OTF_ASTRO_PATH to point the NASA IDL Astronomy Library.
EXPORT)
OTF_CMD_PATH=/usr/local/nostar/bin
OTF_GUI_PATH=/usr/local/nostar/pro
OTF_ASTRO_PATH=/usr/local/itt/idl/idl_astron
Make it executable, and place it to a desired directory (e.g., /usr/local/bin/).
% chmod 755 nostar
% su
# mv nostar /usr/local/bin/
Make a directory ${OTF_ROOT_DIR_PREFIX}GROUP${OTF_ROOT_DIR_POSTFIX}PROJ/otfdata for each GROUP/PROJ. Generally the GROUP is the same as the login name. Subdirectories .../otfdata/split and .../otfdata/raw are also needed.
% mkdir -p /home/hogeusr/hogeprj/otfdata/{raw,split}
The format of raw data and split-raw data is the same as the Solaris/SPARC version (the byte-order is big-endian). Thus simply copy the raw data to ${OTF_ROOT_DIR_PREFIX}GROUP${OTF_ROOT_DIR_POSTFIX}PROJ/otfdata/raw and split-raw data to ${OTF_ROOT_DIR_PREFIX}GROUP${OTF_ROOT_DIR_POSTFIX}PROJ/otfdata/split . The raw data are located in the directory /otfdata/45m/rawfile/GROUP/PROJ/ on the NRO CPU servers (see Data Download). Copy from Linux/Intel to Solaris/SPARC is also available. The history files (with the extension ".his") are ASCII text, thus are platform-independent.
Other temporary files (e.g., ".sp" files used by the Flag task) are written in local endian order, thus are not compatible between Solaris/SPARC and Linux/Intel.
Run the startup script, then the GUI will appear.
% nostar
If you are using pre-compiled IDL procedures, a splash-screen of the IDL VM appears. Click to proceed.
Copyright
Copyright of NOSTAR is co-owned by Nobeyama Radio Observatory and Fujitsu Ltd. All rights reserved. Redistribution of the software without permission is prohibited.