Tags:
create new tag
view all tags
-- LucaFruzza - 24 Oct 2013

Preliminary Course Tools Coding:

1) Signal measuring

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pyfits
import numpy

def Gaf(x):

f = pyfits.open(x)
i = f[0]
d = i.data
plt.imshow(d)
plt.show(d)

def Signal(x,x1,x2,y1,y2,xx1,xx2,yy1,yy2):

f = pyfits.open(x)
i = f[0]
d = i.data
u = d[x1:x2,y1:y2].sum()-(((x2-x1)*(y2-y1))/((xx2-xx1)*(yy2-yy1)))*(d[xx1:xx2,yy1:yy2].sum())
print u

2)

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt definer.txt r1 manage 0.5 K 24 Oct 2013 - 23:03 LucaFruzza Signal Measuring

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r1 - 24 Oct 2013 - LucaFruzza

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback