FUNCTION LIST_FREQ, aaaajjjd, hd, aaaajjjf, hf, $
quiet=quiet, verbose=verbose, $
freq_index=freq_index
if keyword_set(freq_index) then data_level = 'n1' else data_level = 'n2'
if keyword_set(verbose) then message,'Loading opmodes .lis data for '+$
string(format='(I7,".",I2.2,"-",I7,".",I2.2)',aaaajjjd, hd, aaaajjjf, hf),/info
read_data_opmode,aaaajjjd, hd, aaaajjjf, hf,opmode,verbose=verbose,/keep_valid_only
nopmode = n_elements(opmode)
FileList=['']
nFileList = 0L
for imode = 0,nopmode-1 do begin
aj = long(t97_aj(opmode(imode).t97))
hh = fix((opmode(imode).t97 mod 1.d0)* 24.d0)
ptrDataFileList = make_file_list(aj, hh, aj, hh+1, level=data_level)
if ~ptr_valid(ptrDataFileList) then stop
fileList=[fileList,*ptrDataFileList]
nFileList =nfilelist + 1l
ptr_free, ptrDataFileList
endfor
FileList = FileList[1:*]
if keyword_set(freq_index) then xf = [0l] else xf=[0.]
nf = 0l
for iFile = 0l,nFileList-1l do begin
if keyword_set(verbose) then message,fileList(iFile),/info
read_data_binary,fileList(iFile),data,level=data_level
if keyword_set(freq_index) then xf = uniq_list([xf,data.fi]) $
else xf = uniq_list([xf,data.f])
if n_elements(xf)-1 ne nf then begin
if not keyword_set(quiet) then $
message,'% found '+string(n_elements(xf)-1-nf)+' new frequencies in '+fileList(iFile),/info
nf = n_elements(xf)-1
endif
endfor
xf=xf(1:*)
if not keyword_set(quiet) then help,xf
return,xf
end