Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Log Book Entry No.50
| ||||||||
Line: 20 to 20 | ||||||||
File name CCDImage_Xs_N.fit example of name type, X=exposure time [seconds], N = image number at that exposure | ||||||||
Added: | ||||||||
> > | #------------------------ ipython cheat sheet: install packages: pyfits, scipy, numpy, matplotlib ipython use: %quickref to access reference, % to exit pwd & cd work as usual exit to exit run ipython with pylab (list of examples below) #------------------------ ipython --pylab In [0]: import pyfits In [1]: f=pyfits.open('test.fit') In [4]: f[0].data Out[4]: array([[ 106., 97., 105., ..., 122., 129., 117.], [ 113., 115., 116., ..., 125., 120., 123.], [ 106., 109., 93., ..., 127., 120., 122.], ..., [ 106., 107., 103., ..., 123., 134., 123.], [ 99., 107., 106., ..., 121., 121., 123.], [ 104., 108., 102., ..., 125., 130., 125.]], dtype=float32) In [5]: imshow(f[0].data) Out[5]: <matplotlib.image.AxesImage at 0x7f5a13268150> In [11]: print len(f) 1 In [14]: print numpy.amax(f[0].data) #maximum value 1371.0 In [20]: print f[0].data.mean() 107.114 In [21]: print f[0].data.std() 6.86704 In [17]: print numpy.where(f[0].data>1000) #where(condition) (array([236]), array([269])) | |||||||
Back to: LogBookAstronomy
|
Line: 1 to 1 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | ||||||||||||||||||||
> > |
Log Book Entry No.50
<-- Please DO NOT alter or remove the line below this line.
|