forked from abegyoung/gusto-corr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.txt
executable file
·54 lines (34 loc) · 2.3 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# PS map data reduction script
for i in `seq 6589 4 6782`;do python3 ../coadd_glob.py "ACS3_SRC_0$i*DEV4*" "ACS3_REF_0`echo $i-1|bc`*DEV4*";done
# make a movie
ffmpeg -r 2 -i NGC3603-%02d.png -i palette.png -lavfi paletteuse test.gif
ffmpeg -r 2 -f image2 -s 640x480 -i NGC3603-%02d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p test.mp4
# make a 7x7 plot (uncomment thumbnails in coadd_glob
montage NGC3603-*.png -tile 1x7 -trim -mode Concatenate miff:- | montage - -geometry +0+0 -tile 7x1 result.png
# remote shell to spectrometer
ssh -oKexAlgorithms=diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss [email protected]
# kill Mac OS tftpd and start tftpd-hpa
~/bin/tftpdctl.sh stop
sudo /opt/local/sbin/tftpd -L -c -s /private/tftpboot/
fswatch -or ./out.spec |xargs -n1 -I{} ./plot.sh
HEADER MESSAGE
=================== ===================
Byte 0 1 2 3 4 0 1 2 3 4
#ACS power CMD LEN DEV ON
s.send(b'\x0e\x00\x00\x00\x88\x05\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00')
#Setup CMD LEN DEV LAG FTP
s.send(b'\x0e\x00\x00\x00\x81\x05\x00\x00\x00\x00\x8f\x03\x00\x00\x00\x00\x00\x00')
#Integration time CMD LEN DEV (--32bit int--)
s.send(b'\x0e\x00\x00\x00\x82\x05\x00\x00\x00\x00\x40\x42\x0f\x00\x00\x00\x00\x00')
#set output path CMD LEN 1 9 2 . 1 6 8 . 1 . 2 0
s.send(b'\x17\x00\x00\x00\x91\x0e\x00\x00\x00\x31\x39\x32\x2e\x31\x36\x38\x2e\x31\x2e\x32\x30\x00\x00\x00\x00\x00\x00')
#set output filename CMD LEN f i l e n a m e
s.send(b'\x13\x00\x00\x00\x90\x0a\x00\x00\x00\x66\x69\x6c\x65\x6e\x61\x6d\x65\x00\x00\x00\x00\x00\x00')
#AUTO CAL CMD LEN DEV NUM
s.send(b'\x0e\x00\x00\x00\x87\x05\x00\x00\x00\x01\x14\x00\x00\x00\x00\x00\x00\x00')
#TRIGGER CMD LEN DEV
s.send(b'\x0e\x00\x00\x00\x83\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
#READ OUTPUT CMD LEN DEV
s.send(b'\x0e\x00\x00\x00\x06\x05\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00')
#REBOOT CMD LEN
s.send(b'\x0e\x00\x00\x00\xa1\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')