25 *
" must give bin webonly filename tempfile as arguments" 26 write(0,*)
" bin=1-->input is ascii file" 27 write(0,*)
" bin=2--> binary file" 29 *
"webonly=0-->input is made from mkLDD" 30 *
" (core region data exists) " 32 *
"webonly=1-->input is made from FDD rawdata" 33 *
"(no core region data) " 34 write(0,*)
" filename: path to the input file" 35 write(0,*)
" tempfile: path to the temporary working file" 37 write(0,*)
" you gave ", count-1,
" arguments" 38 call getarg(1, buf, status)
39 write(0,*)
" The first one was ", buf
42 call getarg(1, buf, status)
43 read(buf,*) binorascii
44 if(binorascii .ne. 1 .and. binorascii.ne. 2)
then 45 write(0,*)
' error input to binOrascii=',binorascii
50 if(binorascii .eq. 1)
then 61 #include "ZprivateSub.h" 62 #include "../../Hist/Z90histc.h" 63 #include "../../Hist/Z90histo.h" 64 #include "../../Hist/Z90hist1.h" 77 character*256 filename, tempfile
81 integer nbinhisto, mode, status, webonly
82 integer kwhistReadAscii
86 call getarg(2, buf, status)
88 call getarg(3, filename, status)
90 call getarg(4, tempfile, status)
92 open(fnot, file=filename,
93 * iostat=status, access=
'sequential',
94 * form=
'unformatted', action=
'read')
95 if(status .ne. 0 )
then 96 write(0,*)
' cannot open file =' 100 open(fnow, file=tempfile,
101 * iostat=status, access=
'sequential',
102 * form=
'formatted', action=
'write')
103 if(status .ne. 0 )
then 104 write(0,*)
' cannot open file =' 110 if(webonly .eq. 0)
then 113 read( fnot, end=100 ) histid0
114 if( histid0 .ne.
'#hist1' )
then 115 write(0,*)
' histogram is not 1D: ',histid0
119 write(0,*)
' reading core region' 131 write(0,*)
' reading web region' 137 read( fnot, end=100 ) histid0
138 if( histid0 .ne.
'#hist1' )
then 139 write(0,*)
' histogram is not 1-D: ',histid0
143 write(fnow,
'(a)') h10%c%id
155 write(0,*)
' unexpected EOF ' 161 call getarg(2, buf, status)
163 call getarg(3, filename, status)
165 call getarg(4, tempfile, status)
166 open(fnot, file=filename,
167 * iostat=status, access=
'sequential',
168 * form=
'formatted', action=
'read')
169 if(status .ne. 0 )
then 170 write(0,*)
' cannot open file =' 174 open(fnow, file=tempfile,
175 * iostat=status, access=
'sequential',
176 * form=
'formatted', action=
'write')
177 if(status .ne. 0 )
then 178 write(0,*)
' cannot open file =' 183 if(webonly .eq. 0 )
then 187 nbinhisto=kwhistreadascii(h10, fnot)
188 if(nbinhisto .le. 0 )
then 189 write(0,*)
' ascii read failed' 204 nbinhisto=kwhistreadascii(h10, fnot)
205 if(nbinhisto .le. 0 )
then 206 write(0,*)
' ascii read failed' 209 write(fnow,
'(a)') h10%c%id
void kwhistd(struct histogram1 *h)
void kwhistr(struct histogram1 *h, FILE *bfnor, int icon)
void kwhists(struct histogram1 *h, float inorm)