Created
July 24, 2018 01:05
-
-
Save jdswinbank/2db30e49b703b8e7781c9ba14d713692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting up the basic environment: | |
[jds@magpie 087 (master)]$ ssh -Y swinbank@lsst-dev01.ncsa.illinois.edu | |
Last login: Mon Jul 23 19:58:05 2018 from 205.175.118.96 | |
lsst-dev01.ncsa.illinois.edu (141.142.237.49) | |
OS: CentOS 7.5.1804 HW: Dell Inc. CPU: 48x 2.60GHz RAM: 252 GB | |
Site: ncsa DC: ncsa3003 Cluster: developer Role: dev_login | |
Puppet environment: production | |
Next scheduled maintenance: 2018-09-20 08:00-12:00 CT http://ls.st/0l6 | |
GPFS fileset usage for user swinbank: | |
--------------------------------------------------------------- | |
| GPFS Fileset | Used (GB) | Quota (GB) | # Of Files | | |
--------------------------------------------------------------- | |
| home | 1 | 1000 | 3,123 | | |
| jhome | 1 | 100 | 837 | | |
| project | 1 | 0 | 3 | | |
| scratch | 0 | 0 | 1 | | |
| datasets | 1 | 0 | 9 | | |
--------------------------------------------------------------- | |
$ scl enable devtoolset-6 bash | |
$ export PATH=`pwd`:$PATH | |
$ ./ds9 & | |
[1] 2064301 | |
$ . /ssd/lsstsw/stack/loadLSST.bash | |
Note: use devtoolset-6 in conjunction with this stack. | |
$ setup lsst_distrib | |
Now wait for ds9 to load, then run: | |
$ pytest $AFW_DIR/tests/test_ds9.py | |
You should see a bunch of activity in the ds9 window. | |
Next, you want to setup your own display_ds9 code: | |
$ cd display_ds9 | |
$ setup -k -r . | |
Now you can jump into IPython and try using it: | |
$ ipython | |
>>> import lsst.afw.display.ds9 as ds9 | |
>>> import lsst.afw.image as afwImage | |
>>> exposure = afwImage.ExposureF(100, 100) # blank 100 by 100 pixel image | |
>>> ds9.mtv(exposure) # display the image | |
But why is it called mtv? https://github.com/lsst/afw/blob/master/python/lsst/afw/display/interface.py#L425 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment