Science with the Virtual Observatory |
These notes are companions to the presentation on Nesssi (PPT).
% source ../bin/setup.csh
% mkdir -p /etc/grid-security/certificates % cp 85* /etc/grid-security/certificates(note -- you may have to do this with sudo or as root)
% python >>> import os >>> print os.getuid() 501
% java NesssiInit <username> <password> /tmp/x509up_u501(note -- the last part of the filename is your UID)
$ python
>>> import nesssi_client as nesssi
>>> nesssiServer=nesssi.client('https://envoy.cacr.caltech.edu:8443/clarens/',debug=0)
>>> sessionID = nesssiServer.sleepyadd.init()
>>> print "Your session ID is", sessionID
>>> nesssiServer.sleepyadd.run(sessionID, "-time 30 -n 52 -m 344")
(wait a few seconds for the prompt)
>>> msg = nesssiServer.sleepyadd.monitor(sessionID)
>>>print msg
(note -- you could also just run the code in sleepyadd/sleepyadd_client.py)
http://envoy.cacr.caltech.edu:8080/dposssiap/siap?band=F&POS=49.1,60.1&SIZE=0.5Make sure that there are image URLs returned -- otherwise your mosaic will not work. This is the same SIAP server that the mosaicker uses. You can try the other bands too (F, J, N)
$ python
>>> import nesssi_client as nesssi
>>> nesssiServer=nesssi.client('https://envoy.cacr.caltech.edu:8443/clarens/',debug=0)
>>> args = "-ra 49.1 -dec 60.1 -rawidth 0.5 -decwidth 0.5 -filt f"
>>> session = dbsvr.dpossMosaic.mosaic(args)
>>> print "Your session ID is %s." % session
>>> msg = nesssiServer.dpossMosaic.monitor(session)
>>> print msg
https://envoy.cacr.caltech.edu:8443/clarens/ https://dtf-test1.sdsc.teragrid.org:8443/clarens/