gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #15892] Search VizieR datasets that cover a certain location


From: Francois Ochsenbein
Subject: [task #15892] Search VizieR datasets that cover a certain location
Date: Tue, 9 Mar 2021 07:32:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

Follow-up Comment #5, task #15892 (project gnuastro):

Boxes are defined with the parameters -c.bd= (degrees) or -c.bm (arcmin) or
-c.bs (arcsec), e.g. -c.bd=1x3 (rectangle of 1x3°) or just -c.bd=1 (for a
1x1° square).

For simple queries to vizier, and a short list of parameters, the GET method
(with urlencoded parameters) is shorter and simpler than the form (--form);
the GET message may alternatively be transmitted by appending the question
mark and parameters separated by an ampersand to the remote server. Example:

curl
"http://vizier.unistra.fr/viz-bin/asu-tsv?-c=123.45+54.321&-c.bd=1&-ucd=src.redshift";

is identical to

curl -G --data-urlencoded -c=123.45+54.321 --data-urlencoded -c.bd=1
--data-urlencoded -ucd=src.redshift http://vizier.unistra.fr/viz-bin/asu-tsv

Replacing the --data-urlencoded by --form (and removing the -G) generates a
form, which is much more verbose.

If you would like to see the actual differences, I've a very simple script as
http://www.ochsenbein.org/cgi-bin/Echo which shows exactly what is received,
e.g. try

curl -G --data-urlencoded -c=123.45+54.321 --data-urlencoded -c.bd=1
--data-urlencoded -ucd=src.redshift http://www.ochsenbein.org/cgi-bin/Echo

or

curl --form -c=123.45+54.321 --form -c.bd=1 --form -ucd=src.redshift
http://www.ochsenbein.org/cgi-bin/Echo




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?15892>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]