pro iug_load_iprt, datatype = datatype, $
trange = trange, verbose = verbose, $
downloadonly = downloadonly
if ~keyword_set(verbose) then verbose=0
if ~keyword_set(datatype) then datatype='Sun'
vns=['Sun']
if size(datatype,/type) eq 7 then begin
datatype=thm_check_valid_name(datatype,vns, $
/ignore_case, /include_all)
if datatype[0] eq '' then begin
dprint,'IPRT file ',file,' not found. Skipping'
endif
endif else begin
dprint,'DATATYPE must be of string type.'
endelse
acknowledgstring = '"We would like to present the following two guidelines.' $
+ 'The 1st one concerns what we would like you to do when you use the data.' $
+ '1. Tell us what you are working on.' $
+ 'This is partly because to protect potential Ph.D. thesis projects.' $
+ 'Also, if your project coincides with one that team members are working on,' $
+ 'that can lead to a fruitful collaboration. The 2nd one concerns what you do '$
+ 'when you make any presentations and publications using the data.' $
+ '2. Co-authorship:' $
+ 'When the data forms an important part of your work, we would like you to '$
+ 'offer us co-authorship.' $
+ '3. Acknowledgements:' $
+ 'All presentations and publications should carry the following sentence:' $
+ ' "IPRT(Iitate Planetary Radio Telescope) is a Japanese radio telescope '$
+ 'developed and operated by Tohoku University."' $
+ '4. Entry to publication list:'$
+ 'When your publication is accepted, or when you make a presentation at a '$
+ 'conference on your result, please let us know by sending email to PI.'$
+ 'Contact person & PI: Dr. Hiroaki Misawa (misawa@pparc.gp.tohoku.ac.jp)'
relpathnames = file_dailynames(file_format='/YYYY/YYYYMMDD_IPRT', $
trange=trange, addmaster=addmaster)+'.fits'
source = file_retrieve(/struct)
source.verbose = verbose
source.local_data_dir = root_data_dir() + 'iugonet/tohokuU/iit/'
source.remote_data_dir = 'http://radio.gp.tohoku.ac.jp/db/IPRT-SUN/DATA2/'
local_files = file_retrieve(relpathnames, _extra=source, /last_version)
if keyword_set(downloadonly) then return
print,(local_files)
for j=0,n_elements(local_files)-1 do begin
file = local_files[j]
if file_test(/regular,file) then begin
dprint,'Loading IPRT SOLAR RADIO DATA file: ', file
fexist = 1
endif else begin
dprint,'Loading IPRT SOLAR RADIO DATA file ',file,' not found. Skipping'
continue
endelse
year = (strmid(relpathnames[j],strlen(relpathnames[j])-18,4))
month = (strmid(relpathnames[j],strlen(relpathnames[j])-14,2))
fits_read,file,data,hd
date_start = time_double(sxpar(hd,'DATE-OBS')+'/'+sxpar(hd,'TIME-OBS'))
timearr = date_start $
+ sxpar(hd,'CRVAL1') + (dindgen(sxpar(hd,'NAXIS1'))-sxpar(hd,'CRPIX1')) * sxpar(hd,'CDELT1')
freq = sxpar(hd,'CRVAL2') + (dindgen(sxpar(hd,'NAXIS2'))-sxpar(hd,'CRPIX2')) * sxpar(hd,'CDELT2')
append_array,databufL,data[*,*,0]
append_array,databufR,data[*,*,1]
append_array,timebuf,timearr
endfor
if size(databufL,/type) eq 1 then begin
tplot_nameL = 'iprt_sun_L'
tplot_nameR = 'iprt_sun_R'
wbad = where(finite(databufL) gt 99999, nbad)
if nbad gt 0 then databufL[wbad] = !values.f_nan
wbad = where(databufL lt 0, nbad)
if nbad gt 0 then databuL[wbad] = !values.f_nan
dlimit=create_struct('data_att',create_struct('acknowledgment', acknowledgstring, $
'PI_NAME', 'H. Misawa') $
,'SPEC',1)
store_data, tplot_nameL, data={x:timebuf, y:databufL, v:freq}, dlimit=dlimit
store_data, tplot_nameR, data={x:timebuf, y:databufR, v:freq}, dlimit=dlimit
options, tplot_nameL, labels=['IPRT_SUN_LCP'] , $
ytitle = sxpar(hd,'CTYPE2'), $
ysubtitle = ''
title = 'IPRT Solar radio data'
options, tplot_nameR, labels=['IPRT_SUN_RCP'] , $
ytitle = sxpar(hd,'CTYPE2'), $
ysubtitle = ''
title = 'IPRT Solar radio data'
endif
databufL = 0
databufR = 0
timebuf = 0
print, 'We would like to present the following two guidelines.'
print, 'The 1st one concerns what we would like you to do when you use the data.'
print, '1. Tell us what you are working on.'
print, 'This is partly because to protect potential Ph.D. thesis projects.'
print, 'Also, if your project coincides with one that team members are working on,'
print, 'that can lead to a fruitful collaboration. The 2nd one concerns what you do '
print, 'when you make any presentations and publications using the data.'
print, '2. Co-authorship:'
print, 'When the data forms an important part of your work, we would like you to '
print, 'offer us co-authorship.'
print, '3. Acknowledgements:'
print, 'All presentations and publications should carry the following sentence:'
print, ' "IPRT(Iitate Planetary Radio Telescope) is a Japanese radio telescope '
print, 'developed and operated by Tohoku University."'
print, '4. Entry to publication list:'
print, 'When your publication is accepted, or when you make a presentation at a '
print, 'conference on your result, please let us know by sending email to PI.'
print, 'Contact person & PI: Dr. Hiroaki Misawa (misawa@pparc.gp.tohoku.ac.jp)'
end