KASHIWA jpg creating on LINUX


update
[KASHIWA jpg creating on LINUX #1] Based on the KASHIWA camera image data, I converted it into a jpg image with reference to the article by JH4XSY/1. It was quite forced, so the finished image is a little off, but it turned out to be a painting, so I feel a sense of accomplishment. I downloaded the data from SatNOGS and referred to my article on converting it to CAS-5A_jpg. http://www.ne.jp/asahi/hamradio/je9pel/cas5atst.htm https://tool.muzin.org/16/ |<-------20------->| Frame_No. 2024-05-17 07:30:51| vvvv 4A4736594257304A4736594D58303EF0FFF0FF800000FFD8FFE000104A4649.......... ||JA1GDE-PM95ws ^^ ^^^^ Image_No. JPEG_header [ext080.rb] > for i in 0..0x070 > printf("grep 3EF0FFF0FF80%04X 2024-05-17_07.csv | head -1 | cut -c 65-186 >> 2024-05-17_07_cut.hex\n", i) > end [Terminal] $ cd ~/kashiwa/ $ grep '^2024-05-17 07' 40518ksw.csv > 2024-05-17_07.csv > modify to total 112 lines and save as 2024-05-17_07.csv > [0112] decimal = [0070] hexadecimal > save above [ext080.rb] $ ruby ext080.rb $ ruby ext080.rb > 40518ksw.sh $ sh 40518ksw.sh $ cat 2024-05-17_07_cut.hex > 40518ksw.hex $ tr -d '\n' < 40518ksw.hex > 40518ksw-oneline.hex $ cat 40518ksw-oneline.hex | xxd -r -p > 40518ksw-completion.jpg [KASHIWA jpg creating on LINUX #2] [KASHIWA jpg creating on LINUX #3] An image with no deviation is finally completed! Tnx.JH4XSY/1 [ext080new.rb] > for i in 0..0x492 > printf("grep 3EF0FFF0FF80%04X 2024-05-19.csv | head -1 | cut -c 65-186 >> 2024-05-19_cut.hex\n", i) > end [Terminal] $ grep '^2024-05-12 10' 40518ksw.csv >> 2024-05-19.csv $ grep '^2024-05-14 08' 40518ksw.csv >> 2024-05-19.csv $ grep '^2024-05-17 07' 40518ksw.csv >> 2024-05-19.csv > [1170] decimal = [0492] hexadecimal > save above [ext080new.rb] $ ruby ext080new.rb $ ruby ext080new.rb > 40519ksw.sh $ sh 40519ksw.sh $ cat 2024-05-19_cut.hex > 40519ksw.hex $ tr -d '\n' < 40519ksw.hex > 40519ksw-oneline.hex $ cat 40519ksw-oneline.hex | xxd -r -p > 40519ksw-completion.jpg [KASHIWA jpg creating on LINUX #4] #90 2024-05-27 edition [ext090ne2.rb] > for i in 0..0x596 > printf("grep 3EF0FFF0FF90%04X 2024-05-27.csv | head -1 | cut -c 65-186 >> 2024-05-27_90cut.hex\n", i) > end [Terminal] $ grep '^2024-05-27 04' 40527ksw.csv > 2024-05-27.csv > [1430] decimal = [0596] hexadecimal > save above [ext090ne2.rb] $ ruby ext090ne2.rb $ ruby ext090ne2.rb > 40527_90ksw.sh $ sh 40527_90ksw.sh $ cat 2024-05-27_90cut.hex > 40527_90ksw.hex $ tr -d '\n' < 40527_90ksw.hex > 40527_90ksw-oneline.hex $ cat 40527_90ksw-oneline.hex | xxd -r -p > 40527_90ksw-completion.jpg [KASHIWA jpg hint] (C)JH4XSY/1 [KASHIWA jpg test] I tested gcreating JPEG signal from KASHIWA into an image from the data file that received directly using DwForwarder. The data has spaces every 1 byte (i.e. every 2 characters), so I started the experiment by removing those spaces, and finally attempted to create an image by forcibly adding a line containing FFD9, which represents JPEG footer recognition, but unfortunately it did not result in a JPEG image. If the direct reception data were more complete, it would be possible to create an image using the following procedure. (This time, because there are many missing data, the "for i in .." part has been changed to a larger value of 0x064.) [test.txt] $ cat 20240520T151556.hex $ tr -d ' ' < 20240520T151556.hex > 20240520T151556_spacecut.hex $ cat 20240520T151556_spacecut.hex [ext080test.rb] > for i in 0..0x064 > printf("grep 3EF0FFF0FF80%04X 20240520T151556_tailcut.hex | head -1 | cut -c 41-166 >> 20240520T151556_headercut.hex\n", i) > end [Terminal] $ cat 20240520T151556_spacecut.hex | cut -c 1-166 > 20240520T151556_tailcut.hex > [0100] decimal = [0064] hexadecimal > save above [ext080test.rb] $ ruby ext080test.rb $ ruby ext080test.rb > 40603test.sh $ sh 40603test.sh $ cat 20240520T151556_headercut.hex | cut -c 5-166 > 40603ksw.hex > Add a last line in 40603ksw.hex, 4B56136247FFD900000000000000000000.......... $ tr -d '\n' < 40603ksw.hex > 40603ksw-oneline.hex $ cat 40603ksw-oneline.hex | xxd -r -p > 40603ksw-completion.jpg [KASHIWA jpg #88 update] [ext088.rb] > for i in 0..0x297 > printf("grep 3EF0FFF0FF88%04X 2024-06-02.csv | head -1 | cut -c 65-186 >> 2024-06-02_88cut.hex\n", i) > end [Terminal] $ grep '^2024-06-02 01' 40606ksw.csv > 2024-06-02.csv > [0663] decimal = [0297] hexadecimal > save above [ext088.rb] $ ruby ext088.rb $ ruby ext088.rb > 40602_88ksw.sh $ sh 40602_88ksw.sh $ cat 2024-06-02_88cut.hex > 40602_88ksw.hex $ tr -d '\n' < 40602_88ksw.hex > 40602_88ksw-oneline.hex $ cat 40602_88ksw-oneline.hex | xxd -r -p > 40602_88ksw-completion.jpg [KASHIWA jpg Bluish_Earth] [ext01B.rb] > for i in 0..0x11a > printf("grep 3EF0FFF0FF1B%04X 2024-06-19_02.csv | head -1 | cut -c 65-186 >> 2024-06-19_02cut.hex\n", i) > end [Terminal] $ grep '^2024-06-19 02' 40619ksw.csv > 2024-06-19_02.csv > [0282] decimal = [011a] hexadecimal > save above [ext01B.rb] $ ruby ext01B.rb $ ruby ext01B.rb > 40619ksw.sh $ sh 40619ksw.sh $ cat 2024-06-19_02cut.hex > 40619ksw.hex $ tr -d '\n' < 40619ksw.hex > 40619ksw-oneline.hex $ cat 40619ksw-oneline.hex | xxd -r -p > 40619ksw-completion.jpg https://twitter.com/CitGardens https://jh4xsy.asablo.jp/blog/2024/06/19/9694383 https://www.asahi-net.or.jp/~ei7m-wkt/numb1157.htm https://www.ne.jp/asahi/hamradio/je9pel/kasiwjpg.htm https://todo.vc/anotherdecade/2024/20240616_kashiwa_image.php



Back to Top
Back to Home Page