aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/libvoclient/examples/messier.cl
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /vendor/voclient/libvoclient/examples/messier.cl
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'vendor/voclient/libvoclient/examples/messier.cl')
-rw-r--r--vendor/voclient/libvoclient/examples/messier.cl22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/voclient/libvoclient/examples/messier.cl b/vendor/voclient/libvoclient/examples/messier.cl
new file mode 100644
index 00000000..54926590
--- /dev/null
+++ b/vendor/voclient/libvoclient/examples/messier.cl
@@ -0,0 +1,22 @@
+# MESSIER -- Loop through the Messier catalog, displaying a DSS image of each.
+
+procedure messier ()
+
+begin
+ int qr, stat
+ string svc, coords = "/tmp/coords"
+
+ reset clobber = yes # Allow file overwrites
+
+ svc = regResolver ("dss","sia") # Find the DSS SIA service
+
+ for (i=1; i < 111; i=i+1) { # Loop over Messier objs
+ sesame ("M"//i,verb+) | scan (x,y) # Resolve name to coords
+ print ("30 30 0 :text M"//i, > coords)
+
+ qr = dalSiapSvc (svc, x, y, 0.25) # Query for data
+ stat = dalGetData (qr, 0, "foo.fits") # Download 1st image
+ display ("foo.fits[0]", 1) # Display it
+ tvmark (1,"",commands=coords,txsiz=5,col=205) # Label it
+ }
+end