Tips & Tricks

1 Emacs

1.1 Using tramp connection with a different port

C-x C-f /ssh:test@host#2222:/tmp

2 Network

2.1 Port forward

At home, the association between xgarrido.dyndns.org address with the local IP must be done by adding

192.168.1.77 xgarrido.dyndns.org

in /etc/hosts file.

3 Plotting with python/matplotlib

airmass zenith_seeing delivered_seeing
1.3 0.95 1.1119612
1.3 1.0 1.1704854
1.3 1.1 1.2875340
1.3 1.2 1.4045825
import matplotlib.pyplot as plt

x, y, z = zip(*delsee)

fig = plt.figure()
axes = fig.add_subplot(1,1,1)
axes.plot(y, z, marker='o')
fig.savefig(fname)

return fname
File under version control - commit 1b7d8a5 - 2015-10-19