#!/bin/bash #----------------------------------------------------------------------- # # plotGt1Maps.sh -- Create heatmaps from GT1 files # #----------------------------------------------------------------------- # # 2019-10-08 (marcelk) First version # find . -name \*.gt1 | xargs -n 1 gt1dump.py | cut -c -54 | awk ' function copy() { if (length(f)) for (addr in f) n[addr]++ delete f } /^\* file:/ { copy() } /^[0-9a-f]/ { addr=int("0x"$1) for (i=0;i segments.dat gnuplot <= 128 plot 'segments.dat' using 2:1:(\$1<128?\$3:1/0) with image # 64K view set title 'Gigatron file segment heatmap (64K)' set yrange [256:-2] set ytics out 0,16,255 set ytics add (255) set output 'Heatmap_64K.png' plot 'segments.dat' using 2:1:3 with image ! open Heatmap_*K.png