voyager 1
Export Images in the Golden Disk
โวเอเจอร์ 1 เป็นยานอวกาศที่ NASA ปล่อยเมื่อวันที่ 5 กันยายน พ.ศ. 2520 ยานโวเอเจอร์ 1 ซึ่งเป็นส่วนหนึ่งของโครงการโวเอเจอร์เพื่อศึกษาระบบสุริยะชั้นนอก ถูกส่งขึ้นสู่อวกาศ 16 วันหลังจากยานโวเอเจอร์ 2 ซึ่งเป็นแฝดของมัน --วิกิพีเดีย
พื้นที่เก็บข้อมูลนี้มีโค้ดที่จำเป็นสำหรับการเขียนสคริปต์ 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 ได้อย่างละเอียดเพื่อให้ชัดเจนยิ่งขึ้น