pro omni2_load,type,files=files,trange=trange,verbose=verbose,downloadonly=downloadonly, $
varformat=varformat,datatype=datatype, $
res5min=res5min, $
addmaster=addmaster,data_source=data_source, $
tplotnames=tn,source_options=source
istp_init
if not keyword_set(source) then source = !istp
pathformat1 = 'omni2/YYYY/omni2_h0_mrg1hr_YYYY0101_v0?.cdf'
pathformat2 = 'omni2/YYYY/omni2_h0_mrg1hr_YYYY0701_v0?.cdf'
relpathnames1 = file_dailynames(file_format=pathformat1,trange=trange,/unique)
relpathnames2 = file_dailynames(file_format=pathformat2,trange=trange,/unique)
files1 = file_retrieve(relpathnames1, _extra=source)
files2 = file_retrieve(relpathnames2, _extra=source)
files=[files1,files2]
if keyword_set(downloadonly) then return
prefix = 'OMNI2_mrg1hr_'
varformat='DST BZ_GSM Pressure'
cdf2tplot,file=files,varformat=varformat,verbose=verbose,prefix=prefix ,tplotnames=tn
dprint,dlevel=3,'tplotnames: ',tn
options,/def,tn+'',/lazy_ytitle
end