pro iug_get_datainfo, nlat=nlat, slat=slat, elon=elon, wlon=wlon, $
ts=ts, te=te, rpp=rpp, query=query, $
xmldir=xmldir, xmlfile=xmlfile, $
data=data
data=''
if ~keyword_set(rpp) then rpp=300
if ~keyword_set(xmldir) then xmldir=root_data_dir()
if ~keyword_set(xmlfile) then xmlfile='tmp.xml'
in_query=iug_makequery_mddb(/granule, query=query, nlat=nlat, slat=slat, $
elon=elon, wlon=wlon, ts=ts, te=te, rpp=rpp)
file_http_copy, xmlfile, serverdir=in_query, localdir=xmldir
ResID=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='ResourceID')
if size(ResID, /dimensions) ne 0 then begin
nstn=n_elements(ResID)
stname=strarr(nstn)
for istn=0, nstn-1 do begin
rem_ResID=ResID[istn]
for irep=0, 5 do begin
pos=strpos(rem_ResID, '/')
rem_ResID=strmid(rem_ResID, pos+1, strlen(rem_ResID)-pos-1)
endfor
pos_end=strpos(rem_ResID, '/')
stname[istn]=strmid(rem_ResID, 0, pos_end)
endfor
sc_nlat=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='NorthernmostLatitude')
sc_slat=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='SouthernmostLatitude')
lat=string((float(sc_nlat)+float(sc_slat))*0.5, format='(f6.2)')
sc_elon=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='EasternmostLongitude')
sc_wlon=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='WesternmostLongitude')
lon=string((float(sc_elon)+float(sc_wlon))*0.5, format='(f7.2)')
url=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='URL')
data = {name:stname, glat:lat, glon:lon, url:url}
iug_show_obsinfo, obs=data
endif
end