pro iug_get_obsinfo, nlat=nlat, slat=slat, elon=elon, wlon=wlon, $
rpp=rpp, query=query, xmldir=xmldir, xmlfile=xmlfile, $
obs=obs
obs=''
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(/observatory, query=query, nlat=nlat, slat=slat, $
elon=elon, wlon=wlon, 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
pos=strpos(ResID[istn], '/', /reverse_search)
stname[istn]=strmid(ResID[istn], pos+1, strlen(ResID[istn])-pos-1)
endfor
lat=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='Latitude')
lat=string(float(lat), format='(f6.2)')
lon=iug_parsexml_mddb(filename=xmldir+xmlfile, tag='Longitude')
lon=string(float(lon), format='(f7.2)')
obs = {name:stname, glat:lat, glon:lon}
iug_show_obsinfo, obs=obs
endif
end