/usr/share/ngraph-gtk/addin/fft.nsc is in ngraph-gtk-addins 6.06.13-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #
# fft.nsc written by S. ISHIZAKA. 1999/07
#
# Description: _FFT...,Fast Fourier Transform,
new dialog
SOURCE_FILE=${dialog::get_open_file}
if [ ! -r "$SOURCE_FILE" ]
then
del dialog
exit
fi
DEST_FILE=${dialog::get_save_file:"dat _fft_.dat"}
if [ -z "$DEST_FILE" ]
then
del dialog
exit
fi
if "$NGRAPHLIB/fft" "$SOURCE_FILE" "$DEST_FILE"
then
true
else
dialog::message "some errors are occurred while calculation."
del dialog
exit
fi
new file
file::x=1
file::y=2
file::file="$DEST_FILE"
file::type=line
file::B=255
new file
file::file="$DEST_FILE"
file::x=1
file::y=3
file::type=line
file::R=255
new file
file::file="$DEST_FILE"
file::x=1
file::y=2
file::type=staircase_x
file::math_y='SQRT(%02^2+%03^2)'
menu::modified=true
del dialog
menu:0:clear
|