Radwareを使いたくなった。CentOS 7.6.1810。
rw05を解凍
srcディレクトリに移動し、cp Makefile.linux Makefile
make
ここで数々のエラーが出た。
cannot find readline.h
#Makefile
CFLAGS = -O2 -Wall -I$(MOTIF_TOP)/include -DHAVE_GNU_READLINE
-> CFLAGS = -O2 -Wall -I$(MOTIF_TOP)/include
LIBS = -lX11 -lm -lreadline -lncurses
-> LIBS = -lX11 -lm
cannot find Xm.h
> yum install compat-gcc-44 openmotif-devel lapack-devel blas-devel
これでコンパイルが通った。実行できるかはわからない。
[sg]./gls_conv
GLS_conv Version 2.0 D. C. Radford Sept 1999
Welcome....
Type 1 to create a level scheme figure in postscript
from a .gls file,
2 to output level and gamma data (.dat file) from a .gls file,
3 to convert a .gls file to an ASCII (.ags) file,
4 to convert an ASCII .ags file to a .gls file,
5 to calculate B(M1)/B(E2), B(E2)/B(E2) and B(E1)/B(E2) ratios,
or 6 to calculate E(band1) - E(band2) or E - RigidRotor
energy differences.
...Response = ?1
Name of GLS level scheme file = ?
(rtn to abort)
(default .ext = .gls)zn.ags
Level Scheme File header:
** NUCID = 64Zn A = 64 Z = 30 N = 34
** COULOMB EXCITATION:XUNDL-4 2010MO14 201008
** ASCII Graphical Level Scheme file (Radware)
** Created from ENSDF with e2a v0.0 (12 June 2000) on 23-May-13 18:13:03
** ** NOTE THAT SOME ENSDF ASSIGNMENTS ARE NOT PRESERVED - see .txt file **
Add title? (Y/N)N
Add y-axis (excitation energy in MeV)? (Y/N)Y
Enter character height (rtn for 200) ?
Put y-axis at Left(L) or Right(R) ?L
Output postscript file = ?
(default .ext = .ps)
(rtn for zn.ps)
Print and delete the postscript file now? (Y/N)
(If No, the file will be saved)Y
Please choose a font:
Select 0 for The Standard RadWare Font,
1 for AvantGarde-Book,
2 for Helvetica,
3 for NewCenturySchlbk-Roman,
or 4 for Times-Roman.
(Default is AvantGarde-Book)
...Your choice = ?2
ERROR - cannot open file font_ps.dat
-- Check that the environment variable or logical name
RADWARE_FONT_LOC is properly defined, and that the file
font_ps.dat exists in the directory to which it points.
Press any key to continue...
zn.psはできているものの空ファイルであった。
.bashrc
export RADWARE_FONT_LOC=/home/sg/rw05/font
ここから64Znのagsファイルをダウンロードした。下記の通り、./gls_convコマンドのオプション 1ではglsファイルからレベルスキームの図を作成する、と書いてあるがそのままagsファイルを与えても図を吐き出すことができる。
[sg@localhost src]$ ./gls_conv
GLS_conv Version 2.0 D. C. Radford Sept 1999
Welcome....
Type 1 to create a level scheme figure in postscript
from a .gls file,
2 to output level and gamma data (.dat file) from a .gls file,
3 to convert a .gls file to an ASCII (.ags) file,
4 to convert an ASCII .ags file to a .gls file,
5 to calculate B(M1)/B(E2), B(E2)/B(E2) and B(E1)/B(E2) ratios,
or 6 to calculate E(band1) - E(band2) or E - RigidRotor
energy differences.
...Response = ?1
Name of GLS level scheme file = ?
(rtn to abort)
(default .ext = .gls)zn.ags
Level Scheme File header:
** NUCID = 64Zn A = 64 Z = 30 N = 34
** COULOMB EXCITATION:XUNDL-4 2010MO14 201008
** ASCII Graphical Level Scheme file (Radware)
** Created from ENSDF with e2a v0.0 (12 June 2000) on 23-May-13 18:13:03
** ** NOTE THAT SOME ENSDF ASSIGNMENTS ARE NOT PRESERVED - see .txt file **
Add title? (Y/N)N
Add y-axis (excitation energy in MeV)? (Y/N)Y
Enter character height (rtn for 200) ?
Put y-axis at Left(L) or Right(R) ?L
Output postscript file = ?
(default .ext = .ps)
(rtn for zn.ps)zn2.ps
Print and delete the postscript file now? (Y/N)
(If No, the file will be saved)N
Please choose a font:
Select 0 for The Standard RadWare Font,
1 for AvantGarde-Book,
2 for Helvetica,
3 for NewCenturySchlbk-Roman,
or 4 for Times-Roman.
(Default is AvantGarde-Book)
...Your choice = ?4
Suppress logo and file info? (Y/N)Y
zn2.psが生成できたので見てみる。
Znのレベルスキームが生成された。