1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#
# Save data-query results in formats other than VOTable.
# Set the test description string.
votest.descr = "Save data-query results in formats other than VOTable."
print ("------------------------------------------------------------------")
print ("Req 4.4: Users shall be able to save the results of a query in a")
print (" tabular format other than VOTable.")
print ("------------------------------------------------------------------")
fcache init
# Execute the test commands.
string qstr, ofn
# Generate a query string.
qstring ("gsc2.3", "m101", size=0.005, type="catalog") | scan (qstr)
print (qstr)
votcopy (qstr, "STDOUT", format="ascii")
votcopy (qstr, "STDOUT", format="asv")
votcopy (qstr, "STDOUT", format="bsv")
votcopy (qstr, "STDOUT", format="csv")
votcopy (qstr, "STDOUT", format="tsv")
votcopy (qstr, "STDOUT", format="html")
votcopy (qstr, "STDOUT", format="shtml")
votcopy (qstr, "STDOUT", format="xml")
votcopy (qstr, "STDOUT", format="raw")
votcopy (qstr, "STDOUT", format="votable")
# The FITS file is a special case where we want to create a file.
ofn = "tmp$req44.fits"
delete (ofn, verify-, >& "dev$null")
votcopy (qstr, ofn, format="fits")
tinfo (ofn)
delete (ofn, verify-, >& "dev$null")
|