...
Code Block |
---|
; querying the service oUrl = OBJ_NEW('IDLnetUrl') pipo=oUrl->Get(URL="http://voparis-europlanet-dev.obspm.fr/planetary/data/epn/access-url/?access_url_contains=VV0521_05.CAL&service_shortname=VVEx", /string) print, pipo OBJ_DESTROY, oUrl ; parsing the URL (array with one element per match) truc= JSON_PARSE(pipo, /tostruct, /toarray) print, truc.results.access_url(0) ; getting the file nomf= wget(truc.results.access_url(0), dir='/tmp') ; then read it with appropriate routine, eg for VotableVOtable: spe = read_vot(nomf) |
Notice that IDL's older wget routine cannot query a web service.
...