voyager 1
Export Images in the Golden Disk
航海家 1 號是 NASA 於 1977 年 9 月 5 日發射的太空探測器。
該儲存庫包含 R# 腳本所需的程式碼,用於解碼 Voyager Golden Record 上的圖像資料。
鳴謝:測試wav檔案資料和部分解碼器演算法實作來自專案儲存庫:Voyager-Golden-Record-Decoder。
下面是一個範例R#
腳本,用於解碼 goden 記錄中的第一個圓形影像:
# R# "E:voyager-1Rscriptfirst-circle.R" --debug --ignore-missing-startup-packages
imports " voyager1 " from " voyager-1 " ;
imports " wav " from " signalKit " ;
const goldenRecord as string = " J: G oogleDrive V oyager 3 84kHzStereo.wav " ;
# A demo R# script for image decode from the goden record wave data
# this very first circle image on the goden record is used for
# parameter calibration of the image decoder
using wav as read.wav( file = file( goldenRecord ), lazy = TRUE ) {
# view of the raw file data summary;
print( wav );
# parameters of the first circle image
# and wav decoder arguments
let first_circle = new image.chunk( channel = " Left " , start = 6000208 , length = 1928181 );
let decoder = new decode( windowSize = 3400 , offset = 217 );
print( first_circle );
print( " data size of this image chunk: " );
print( wav : > chunk_size( chunk = first_circle ));
# run decoder and save the
# result image file
wav
: > decode( chunk = first_circle , decode = decoder )
: > as.bitmap( white = 1.125 )
: > bitmap( file = `${dirname(!script$dir)}/docs/circle.png` )
;
}
使用 R# 解譯器運行演示腳本:
那麼演示腳本應該輸出從 wav 資料解碼的灰階影像,如下所示:
最後,您可以在 Photoshop 中微調結果影像輸出,使其更加清晰。