cleverklion.blogg.se

Saoimage ds9 tutorial
Saoimage ds9 tutorial











Pip uninstall -user ipython pip uninstall -user jupyter I have also encountered several problems with cloning, tagging and building my own versions of parts of the stack, so here is a recipe for building a custom stack, including building on lsst-dev, and installing correct versions of IPython etc so that the tutorial above works. This, however, will often cause its own problems. Firstly, IPython is most likely not installed for a given user, so a local copy will need to be installed as it no longer ships with the stack. import 9 as ds9ĭata = np.zeros((100,100), dtype = np.float32)ĭue to current bugs with the stack and its setup, certain problems are likely to be encountered when following these instructions. The stack should try to launch it for you, but I think this only works for the cmdline version and not the App. Open ds9 (either cmdline version or the “App”), mainly just to check if you have it installed. PS: If you just want to try a local stack with a local ds9: To test that you have a remote kernel with the stack loaded correctly and the instance of ds9 on your local machine correctly connected, open a new notebook and do the following: import as afwImageĭata = np.zeros((10,10), dtype=np.float32)Ī small, 10x10 black box should appear inside ds9 on your local machine. This should connect you to the remote kernel. Now, on your local machine, launch firefox (or your browser of choice), and go to: Nohup ipython notebook -no-browser -port=YYYY > ~/ipython_notebooks/stdout.txt Or, for a continuous session something along the lines of: Now, cd to wherever your IPython notebook directory is, eg:Īnd launch the IPython notebook with no browser, specifying the port from before: Source /lsst/stack/loadLSST.sh (or appropriate for your shell)Īnd specify the XPA ports on this machine too, using the same values as before: On lsst-dev setup the stack: ( or use one of these methods) I believe that if this is not the case then you are going to have problems.

#Saoimage ds9 tutorial password

You should not be prompted for a password (unless it is for your ssh key via an OS-X dialog) as you should have set up your keys. So that it picks up the config from the ssh config file. If it’s not then close ds9 and relaunch the ‘app’ from the terminal by typing: If you have an OS-X “app style” distribution you can try launching it from the OS-X GUI as you usually would, but you will need check whether it has picked up the XPA port config from the environment by clicking File->XPA->Information in ds9 and confirming that the number after the colon under XPA_METHOD is equal to XXXXX from before (sometimes it is, sometimes it isn’t, I haven’t figured out why ). If you have a from-source version then just launch by typing ‘ds9 &’ from the same terminal. Ssh -N -f -L localhost:ZZZZ:localhost:YYYY the values from above. On your local machine configure the XPA ports for ds9 by typing:Īnd open an ssh tunnel with port forwarding: I have not included values here, because otherwise once multiple people have followed these instructions we will end up with a bunch of collisions and a tangled, buggy mess! Where XXXX and XXXX+1 are random consecutive numbers greater than 4096, and YYYY and ZZZZ are any other random numbers greater than 4096. On your local machine, create/edit the file: ~/.ssh/config and add the entry: Host lsst-dev This is a tutorial designed to help people setup and run the stack on lsst-dev, with the IPython kernels running there, but controlling these in a local web-browser, and with a local copy of ds9, as opposed running ds9 on lsst-dev and X-forwarding the images (and all the lag that brings). However, these don’t play all that nicely with running the stack on lsst-dev, as IPython notebook are controlled through web-browsers, and using ds9 with X-forwarding largely negates the advantages offered by ds9 (fast, interactive re-scaling & panning etc.) Many people’s workflows these days involve running IPython notebooks, and often ds9 as well as their image browser of choice.











Saoimage ds9 tutorial