Gitlab is now running v13.9.0 - More info -> here <-

Commit 9313f687 authored by perdereau's avatar perdereau

modif help comments

parent b34a8efd
......@@ -7,14 +7,15 @@ from matplotlib import pyplot as plt
# data and fitted results from trkacxfit
# this will also plot the difference (in gray, scale on the right)
# unused tracks are alsor plotted
#numero_antenne = 0,1,2,3 pour 1H, 2H,...
# make_fig_scan_xc(filename,numero_antenne,nombre_de_traces)
# make_fig_scan_xc(filename,cross,nombre_de_traces)
# plots of all cross-cor visi comparision between
# data and fitted results from trkacxfitc (real and imag part)
# this will also plot the difference (in gray, scale on the right)
# for the real part
# unused tracks are alsor plotted
# cross = 0,1,...,5 pour 1Hx2H, 1Hx3H, ...,3Hx4H
......@@ -22,6 +23,7 @@ from matplotlib import pyplot as plt
keynam='HIERARCH NOM_OBJET'
def myplot_xcor(hdul,i):
plt.clf()
plt.plot(hdul[i].data,label='Real')
......@@ -136,7 +138,7 @@ def make_fig_scan(ffnam,ant,ntot):
plt.tight_layout()
plt.subplots_adjust(top=0.9)
def make_fig_scan_xc(ffnam,ant,ntot):
def make_fig_scan_xc(ffnam,cross,ntot):
hda=fits.open(ffnam)
nrows=np.int(np.sqrt(ntot))
ncols=ntot/nrows
......@@ -145,10 +147,10 @@ def make_fig_scan_xc(ffnam,ant,ntot):
f, axarr = plt.subplots(nrows,ncols,figsize=(ncols*4,nrows*4))
axarf=axarr.flatten()
f.suptitle('Antenna '+str(ant))
f.suptitle('CrossCor '+str(cross))
for ip in np.arange(ntot):
i=get_num_cx(ant,ip+1,ntot)
i=get_num_cx(cross,ip+1,ntot)
print hda[i].header[keynam]
print hda[i+1].header[keynam]
#axarf[ip ].plot(hda[i].data,label='Signal')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment