Skip to content

Commit f511671

Browse files
committed
first commit
0 parents  commit f511671

File tree

256 files changed

+113166
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+113166
-0
lines changed

LICENSE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 1980-2020, David C. Radford
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
This is the source code of the Linux/Unix version of David Radford's Data Analysis Software.
2+
3+
Latest update: 7 Dec 2020
4+
5+
This release is portable between linux, Mac OS X, and many unix variants.
6+
For more details on installing in Mac OS X you may wish to look at README.macosx.
7+
8+
A brief description of what each program does is in the file doc/aa_radware.lis.
9+
More documentation can also be found at http://radware.phy.ornl.gov/ and in other files in the doc directory.
10+
You can find demonstration data files in the demo directory.
11+
12+
To compile rw05, you should be able to use almost any C compiler.
13+
14+
==================================
15+
== To download the source code: ==
16+
==================================
17+
18+
From github:
19+
============
20+
21+
The rw05 git repository is on
22+
https://github.com/dcr-radware/rw05
23+
24+
25+
By svn:
26+
=======
27+
28+
An less-frequently-updated version is available using Subversion (svn).
29+
If you have svn installed, you can use the command
30+
svn co https://radware.phy.ornl.gov/rw05
31+
to check out the latest rw05 source tree.
32+
33+
=============================================
34+
== Required Software Development Packages: ==
35+
=============================================
36+
37+
Radware will be compiled from scratch. That means that you need to have
38+
some "development packages" installed on your system, or the compile will
39+
fail.
40+
41+
You will always want to have readline and X11 installed. If you want to use
42+
GUI versions of gls, escl8r, levit8r and 4dg8r, then you will also need
43+
GTK2 and/or lesstif (or openmotif) packages installed.
44+
On some modern linux distributions, you will also need to install X11 fonts.
45+
46+
On my Kubuntu system, I need at least to install the following:
47+
gcc (C compiler)
48+
make (to build the programs)
49+
libreadline-dev
50+
libgtk2.0-dev
51+
lesstif2-dev
52+
53+
==================
54+
== To Compile: ==
55+
==================
56+
57+
There is a separate README files for Mac OS X, namely README.macosx.
58+
If you are installing on a mac, read that file too.
59+
60+
1) Type:
61+
cd rw05/src
62+
cp Makefile.sys Makefile
63+
64+
where "sys" corresponds tpo your system, namely "linux", "macosx", "solaris", etc.
65+
Edit the top level Makefile (the one you just made with the cp command).
66+
If needed, change any of the lines that depend specifically on your local
67+
filesystem, for example the definitions of X_WIN_TOP and MOTIF_TOP.
68+
Change INSTALL_DIR, INSTALL and INSTALL_BIN if you wish to install the
69+
files in a separate directory (see step 4).
70+
71+
2) RadWare can read spectra from ORNL-format .his histogram files.
72+
Most users will not be interested in this feature; if this includes you,
73+
skip to step 3.
74+
If you want to be able to read .his files, your system needs to have the
75+
ORPHLIB library installed, and you need to change your Makefile to link
76+
some of the programs with orphlib.a and some FORTRAN run-time libraries.
77+
Here is what you need to do:
78+
Edit your top level Makefile, and uncomment the line that defines HISLIBS,
79+
changing the FORTRAN libraries and the location of orphlib.a as needed.
80+
If (and only if) orphlib.a was compiled with g77, you also need to
81+
uncomment the line redefining FC = g77
82+
83+
3) To make the standard (non-GUI) codes, type:
84+
make all
85+
86+
If your system is missing development libraries, such as X11 or
87+
readline, the make will fail. There will be compile errors, usually
88+
beginning with something like
89+
"error: readline/readline.h: No such file or directory"
90+
If this happens, speak to your system administrator, and/or try to
91+
find out whcih packages to install, and how to do it.
92+
93+
GTK versions: If your system has the GTK2 development libraries installed,
94+
and you wish to use the GTK versions of gls, escl8r, etc., then type:
95+
make GTK
96+
97+
Motif versions If your system has the Motif development libraries installed,
98+
and you wish to use the Motif versions of gf3, gls, escl8r, etc., then type:
99+
make XM
100+
101+
102+
4) You can install the executables and data files in a separate directory.
103+
THIS IS NOT NECESSARY to run the programs; if you choose not to do the
104+
install, you can just run them directly from the src directory of steps
105+
1) and 3).
106+
107+
To install, check the definition of INSTALL_DIR, INSTALL and INSTALL_BIN
108+
in the Makefile and type:
109+
make install
110+
111+
If the install fails for some reason, try editing your top level Makefile,
112+
to replace the line near the end:
113+
include Makefile.install_sysv
114+
or
115+
include Makefile.install_ucb
116+
by:
117+
include Makefile.install_cp
118+
and try again.
119+
120+
5) Edit the .radwarerc file so that the pathname variables
121+
are properly defined to $(INSTALL_DIR)/font, etc., or whatever.
122+
These definitions will allow the various programs to find files that
123+
they need, such as icc/icctbl.dat, font/font.dat, and doc/gfonline.hlp.
124+
There are some other environment variables in there, too, that you
125+
might like to play with. See WHATS_NEW for details.
126+
127+
.radwarerc can be found in either the src directory, or in $(INSTALL_DIR).
128+
There is also a bash version, .radware.bashrc, for those who prefer bash
129+
to tcsh or csh.
130+
131+
6) Make sure that your .login, .bashrc, or .cshrc, or the system .login, includes
132+
source $(INSTALL_DIR)/.radwarerc
133+
or copy the .radwarerc to your home directory and have it executed
134+
from there.
135+
Also make sure that $(INSTALL_DIR)/bin (or the src directory, if you
136+
didn't do the install) is in your path.
137+
Then you are set to go; try gf3, gtkgls etc.
138+
Have a look in the demo directory for sample files.
139+
You should also copy demo/gfinit.dat into your home directory.
140+
141+
7) To clean up the source directory:
142+
make clean
143+
To clean up the source and all subdirectories, leaving only the source code:
144+
make very-clean
145+
146+
-------------------------------------------------------------------
147+
Please send any bug reports and suggestions to [email protected]
148+
-------------------------------------------------------------------
149+
150+
D.C. Radford Dec 2020

README.macosx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
3+
1. Make sure Xcode command line tools and XQuartz are installed.
4+
================================================================
5+
6+
Xcode is available from the Apple App Store. But you also need to make sure
7+
the command-line tools are installed.
8+
The command-line tool installation is usually not difficult, but has varied
9+
over time with different OS X versions. I suggest you use web search to find
10+
a solution for your specific setup.
11+
One example:
12+
https://stackoverflow.com/questions/9329243/how-to-install-xcode-command-line-tools
13+
14+
XQuartz downloads are available from https://www.xquartz.org/
15+
16+
2. Install tools and libraries.
17+
===============================
18+
19+
If you want to use the GTK or Motif GUIs, you will need to install the appropriate
20+
developer packages. I have not done this myself in recent years, but many years ago
21+
I was successful in using MacPorts or Fink.
22+
23+
Old instructions, probably obsolete:
24+
25+
A. Using MacPorts:
26+
You may need to install the java development headers from the Apple Developer site.
27+
If you don't have an Apple ID, you can create one for free.
28+
Update MacPorts and its repository lists by typing
29+
sudo port selfupdate
30+
Use MacPorts to install the following packages:
31+
[ readline ] - may already be on system in MacOSX10.*.sdk
32+
lesstif (required for xm* versions of gf3, gls, escl8r, etc)
33+
gtk2 (required for gtk* versions of gls, escl8r, etc)
34+
You would normally do this from the terminal, by typing
35+
sudo port install <package-name>
36+
for each <package-name> above. Other dependent packages will also be
37+
installed automatically, and the process will take some time.
38+
39+
40+
B. Using Fink:
41+
Start the Fink application. From the list of applications, choose the
42+
following packages to install:
43+
[ readline ] - may already be on system in MacOSX10.*.sdk
44+
lesstif (required for xm* versions of gf3, gls, escl8r, etc)
45+
gtk2 (required for gtk* versions of gls, escl8r, etc)
46+
47+
48+
3. Build RadWare
49+
================
50+
51+
Use Makefile.macosx as the starting point for your Makefile:
52+
cd rw05/src
53+
cp Makefile.macosx Makefile
54+
55+
You may need to edit this Makefile to match your system.
56+
Please refer to the Linux/Unix README for other comments.
57+
Then build rw05 with the command
58+
make all
59+
60+
If you have the appropriate GTK2 or Motif packages installed and you
61+
wish to use the GUI versions of some of the codes, can also
62+
make GTK (for GTK versions, and/or)
63+
make XM (for Motif versions)
64+
65+
66+
You can run the programs directly from the rw05/src directory, or
67+
optionally install them in a different place. To do the install,
68+
edit the Makefile so that the install path and user/group details are
69+
appropriate for your system. Then run
70+
make install
71+
72+
For instructions on setting things up to run the programs easily,
73+
please look at sections 4) through 7) of the Linux/Unix README.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This is the source code of the Linux/Unix version of David Radford's Data Analysis Software.
2+
3+
Latest update: 7 Dec 2020
4+
5+
This release is portable between Linux, Mac OS X, and many unix variants.
6+
A brief description of what each program does is in the file doc/aa_radware.lis.
7+
More documentation can also be found at http://radware.phy.ornl.gov/ and in other files in the doc directory.
8+
You can find demonstration data files in the demo directory.
9+
10+
Compilation and installation instructions are in the README file in the root directory.

demo/4play.inc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Er154,155 4d tests Eurogam presorted tapes
2+
/dev/rmt0h
3+
er.scr
4+
er.4d
5+
er.tab
6+
16384
7+
1500
8+
n
9+
10+
--------------------------------------------------
11+
The above lines provide the following information to 4play:
12+
line 1: user-provided title for the replay task
13+
line 2: name for the input tape drive device to be used
14+
line 3: name to be used for the "scratch" disk file
15+
line 4: name of the 4D hypercube directory file
16+
line 5: name of the look-up table file to be used to map ADC chs to cube chs
17+
(generally produced by running the program lufwhm)
18+
line 6: block size for the records to be read from tape, in bytes
19+
line 7: size to be used for the "scratch" disk file, in MB
20+
(should generally be at least several hundred MB
21+
in order to minimize scanning time)
22+
line 8: y(es) or n(o) to specify whether the records read from tape need
23+
to be byte-swapped
24+
25+
NOTE: If the 4D hypercube directory file does not yet exist (i.e. you
26+
are starting a new replay) you will need to create it by running
27+
the program make4cub. Recommended filename extensions are .4d
28+
for the directory file and .4cub for the actual hypercube files.

demo/am241.sou

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
26.3450 .0010 2400. 100.
2+
33.1950 .0110 103. 11.
3+
43.4230 .0200 57. 18.
4+
59.5370 .0010 35700. 500.

demo/am243.sou

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
43.5300 .0200 620. 30.
2+
61.4600 .0200 129. 6.
3+
74.6600 .0200 6800. 200.
4+
99.5300 .0200 1280. 40.
5+
103.7400 .0200 2040. 60.
6+
106.1200 .0200 2640. 80.
7+
209.7400 .0200 330. 10.
8+
228.1600 .0200 1120. 30.
9+
277.5800 .0200 1450. 40.
10+
315.8600 .0200 160. 5.
11+
334.2900 .0200 206. 6.

demo/ba133.sou

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
53.1560 .0050 348. 7.
2+
79.6230 .0050 377. 9.
3+
80.9990 .0040 5120. 40.
4+
160.6090 .0250 105. 3.
5+
223.1160 .0350 71. 2.
6+
276.4040 .0070 1130. 20.
7+
302.8580 .0050 2920. 30.
8+
356.0140 .0090 10000. 30.
9+
383.8590 .0090 1450. 20.

demo/calib.sou

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
511.006 .002 100. 3. beta+
2+
1460.859 .010 100. 3. 40K
3+
609.37 .16 100. 3. 226Ra
4+
1764.45 .22 100. 3. 226Ra
5+
1173.238 .009 10000. 30. 60Co
6+
1332.513 .011 10000. 30. 60Co
7+
898.0450 .0120 9130. 70. 88Y
8+
1836.0620 .0250 9934. 7. 88Y
9+
121.7830 .0020 13620. 160. 152Eu
10+
244.6920 .0020 3590. 60. 152Eu
11+
344.2760 .0040 12750. 90. 152Eu
12+
964.1310 .0090 6920. 90. 152Eu
13+
1112.1160 .0170 6490. 90. 152Eu
14+
1408.0110 .0140 10000. 30. 152Eu

demo/co56.sou

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
846.7720 .0080 100000. 100.
2+
1037.8400 .0060 14000. 100.
3+
1175.1020 .0060 2280. 20.
4+
1238.2820 .0070 67600. 400.
5+
1360.2150 .0120 4330. 40.
6+
1771.3510 .0160 15700. 150.
7+
2015.1810 .0160 3080. 30.
8+
2034.7550 .0150 7890. 70.
9+
2598.4580 .0130 16900. 150.
10+
3009.5910 .0220 1000. 10.
11+
3201.9620 .0160 3040. 30.
12+
3253.4160 .0150 7410. 65.
13+
3272.9900 .0150 1750. 20.
14+
3451.1520 .0170 875. 10.

0 commit comments

Comments
 (0)