{"id":1113,"date":"2021-09-22T17:10:58","date_gmt":"2021-09-22T22:10:58","guid":{"rendered":"http:\/\/www.gergltd.com\/home\/?p=1113"},"modified":"2021-12-17T13:12:24","modified_gmt":"2021-12-17T18:12:24","slug":"goes-satellite-downlink-capture","status":"publish","type":"post","link":"https:\/\/www.gergltd.com\/home\/goes-satellite-downlink-capture\/","title":{"rendered":"GOES Satellite Downlink Capture"},"content":{"rendered":"<p>This video is from the GOES Satellite imaging sensor over a 24 hour period.<\/p>\n<p>I captured this using a SawBird LNA, a WiFi dish, an RTL-SDR, and the <a href=\"https:\/\/usa-satcom.com\/xrit-decoder-for-goes-satellite\/\">XRIT decoding software<\/a>.<\/p>\n<p><iframe loading=\"lazy\" title=\"GOES Satellite Capture\" width=\"620\" height=\"465\" src=\"https:\/\/www.youtube.com\/embed\/vVnJiFTEX5w?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1128\" src=\"http:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772.jpg\" alt=\"\" width=\"1244\" height=\"2560\" srcset=\"https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772.jpg 1244w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-146x300.jpg 146w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-644x1325.jpg 644w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-768x1580.jpg 768w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-746x1536.jpg 746w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-995x2048.jpg 995w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210209_185501-1-scaled-e1632403612772-624x1284.jpg 624w\" sizes=\"auto, (max-width: 1244px) 100vw, 1244px\" \/><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1129\" src=\"http:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1244\" srcset=\"https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-scaled.jpg 2560w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-300x146.jpg 300w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-644x313.jpg 644w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-768x373.jpg 768w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-1536x747.jpg 1536w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-2048x996.jpg 2048w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121922-1-624x303.jpg 624w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1130\" src=\"http:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1244\" srcset=\"https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-scaled.jpg 2560w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-300x146.jpg 300w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-644x313.jpg 644w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-768x373.jpg 768w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-1536x747.jpg 1536w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-2048x996.jpg 2048w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/20210213_121929-1-624x303.jpg 624w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>Screenshot of the &#8220;groundstation terminal.&#8221;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1139\" src=\"http:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station.png\" alt=\"\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station.png 1920w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station-300x169.png 300w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station-644x362.png 644w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station-768x432.png 768w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station-1536x864.png 1536w, https:\/\/www.gergltd.com\/home\/wp-content\/uploads\/2021\/09\/gerg_ground_station-624x351.png 624w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Source code to compile the video is below.<\/p>\n<pre>import os\r\nimport glob\r\n\r\nimport cv2\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport tqdm\r\n\r\ndata_dir = r'C:\\Users\\laptop\\Desktop\\SDR\\XRIT-Suite-Winter-20\\images'\r\nfiles = sorted(glob.glob(os.path.join(data_dir, '*full*fsclr*.png')), key=os.path.getmtime) # full disk\r\nfiles = files[53:53+48+2]\r\nN = len(files)\r\n\r\n# Make mask\r\nimg = cv2.imread(os.path.join(data_dir, 'G16-Full Disk-FSCLR-202102101800.png'))\r\nmask = np.mean(img, axis=2) == 0\r\nmask[:162,:] = 0 \r\nmask[5617:,:] = 0\r\nmask = (~mask.astype('bool')).astype('uint8')\r\n\r\nimages = np.zeros((N, 5961\/\/2, 5424\/\/2, 3), dtype='uint8')\r\nfor fidx, f in enumerate(files):\r\n   #img = cv2.cvtColor(cv2.imread(f), cv2.COLOR_BGR2RGB)\r\n   img = cv2.imread(f) \r\n   if img.shape[0] != 5961:\r\n      continue\r\n   # Post process\r\n   img = cv2.medianBlur(img, 7)\r\n   img = img*mask[:,:,None]\r\n\r\n   img = cv2.resize(img, (0,0), fx=0.5, fy=0.5, interpolation=cv2.INTER_AREA)\r\n   images[fidx,:,:,:,] = img\r\n\r\nfourcc = cv2.VideoWriter_fourcc(*'MJPG')\r\nout = cv2.VideoWriter('output.avi',fourcc, 30, (5424\/\/2, 5961\/\/2))\r\nfor k in tqdm.tqdm(np.linspace(0,N-2,N*15)):\r\n   f = int(np.floor(k))\r\n   offset = k - f\r\n   print(offset)\r\n   frame = ((1-offset)*images[f,:,:,:].astype('float32') + offset*images[f+1,:,:,:].astype('float32')).astype('uint8')\r\n   out.write(frame)\r\n\r\nout.release()\r\nprint('done')<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This video is from the GOES Satellite imaging sensor over a 24 hour period. I captured this using a SawBird LNA, a WiFi dish, an RTL-SDR, and the XRIT decoding software. &nbsp; Screenshot of the &#8220;groundstation terminal.&#8221; Source code to compile the video is below. import os import glob import cv2 import matplotlib.pyplot as plt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":6,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"predecessor-version":[{"id":1140,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/1113\/revisions\/1140"}],"wp:attachment":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}