pro iug_load_hf_tohokuu, site=site, parameter=parameter,$
downloadonly=downloadonly, no_download=no_download,$
trange=trange
site_code_all = strsplit('iit', /extract)
if(n_elements(site) eq 0) then site='iit'
site_code=thm_check_valid_name(site, site_code_all, /ignore_case, /include_all)
if(site_code[0] eq '') then return
print, site_code
param_all = strsplit('RH LH', /extract)
if(n_elements(parameter) eq 0) then parameter='all'
param = thm_check_valid_name(parameter, param_all, /ignore_case, /include_all)
if(param[0] eq '') then return
print, param
source = file_retrieve(/struct)
if keyword_set(downloadonly) then source.downloadonly=1
if keyword_set(no_download) then source.no_download=1
if(not keyword_set(downloadonly)) then downloadonly=0
show_text=0
for i=0,n_elements(site_code)-1 do begin
filehour = file_dailynames(file_format='YYYYMMDDhh',trange=trange,/hour_res)
filedate = strmid(filehour,0,8)
source.local_data_dir = root_data_dir() + 'iugonet/tohokuu/radio_obs/iit/hfspec/'
source.remote_data_dir = 'http://ariel.gp.tohoku.ac.jp/~jupiter/it_hf/cdf2/'
relfnames = filedate+'/'+'it_h1_hf_'+filehour+'_v02.cdf'
datfiles = file_retrieve(relfnames, _extra=source)
filenum=n_elements(datfiles)
file_exist=intarr(filenum)
for it=0,filenum-1 do begin
file_exist[it] = file_test(datfiles[it])
endfor
if(downloadonly eq 0 and (where(file_exist eq 1))[0] ne -1) then begin
datfiles = datfiles[where(file_exist eq 1)]
show_text = 1
for j=0,n_elements(param)-1 do begin
cdf2tplot, file=datfiles, varformat=strupcase(param[j])
get_data, strupcase(param[j]), data=data, dlimit=dlimit
store_data, strupcase(param[j]), /delete
gatt={Project:dlimit.cdf.gatt.project, Logical_source_description:"Jupiter's/solar wide band spectral data in HF-band", PI_name:"Atsushi Kumamoto", PI_affiliation:"Tohoku University", TEXT:"When the data is used in or contributes to a presentation or publication, you should let us know and make acknowledgement to the Planetary Plasma and Atmospheric Research Center, Tohoku University.", LINK_TEXT:"For more information, see", HTTP_LINK:"http://ariel.gp.tohoku.ac.jp/~jupiter/"}
cdf = {filename:dlimit.cdf.filename, gatt:gatt, vname:dlimit.cdf.vname, vatt:dlimit.cdf.vatt}
dl = {cdf:cdf, spec:dlimit.spec, log:dlimit.log, ysubtitle:dlimit.ysubtitle}
if param[j] eq 'rh' then store_data, 'iug_iit_hf_R', data=data, dlimit=dl
if param[j] eq 'lh' then store_data, 'iug_iit_hf_L', data=data, dlimit=dl
endfor
endif
endfor
datfile = source.local_data_dir+relfnames[0]
if (show_text eq 1) then begin
dprint, ''
dprint, '**********************************************************************'
dprint, "Jupiter's/solar wide band spectral data in HF-band"
dprint, ''
dprint, 'PI and Host PI(s): ', 'Atsushi Kumamoto'
dprint, 'Affiliations: ', 'PPARC, Tohoku University'
dprint, ''
dprint, 'Rules of the Road for HF Data Use:'
dprint, 'When the data is used in or contributes to a presentation or publication, you should let us know and make acknowledgement to the Planetary Plasma and Atmospheric Research Center, Tohoku University.'
dprint, '**********************************************************************'
dprint, ''
endif else begin
dprint, '**********************************************************************'
dprint, 'No data is loaded'
dprint, '**********************************************************************'
endelse
return
end