Hits since 2022-03-19 10:43:26:
642




Rosevear Software






Script gogeeqie :

Here is a script that I wrote and use in SAM

Here is a script that I wrote and use in SAM, although it is not a part of the SAM distribution.  I put it here for your benefit.  You will need to remove the line which references con_menu, as that is a SAM command which prompts SAM to display a menu.  The script should work fine without it.

And you will need to remove or replace the skip from the sequence of piped commands.  This allows the user to skip over an arbitrary number of initial data points, but skip is a SAM command, so you won't have it without using SAM.

    #!/bin/sh
    # gogeeqie
    
    
    
    # Joseph Rosevear 220313 I made this script (gogeeqie) by copying it
    # from go_xv.
    
    # Joseph Rosevear 220313 I changed the code to:
    
    # -store the temporary files in /tmp
    # -use geeqie instead of xv
    # -use $plot instead of plot
    # -use $data instead of data.txt
    # -don't do "cd $level"
    # -use $lines (which now comes from $3) instead of $1.
    
    # Joseph Rosevear 220321 I changed to code to be compatible with an
    # instruction file that makes a .svg file instead of a .eps file.
    
    
    
    # Definitions.
    data="$1"
    plot="$2"
    
    if [ "$3" = "" ]; then
    
      lines=0
    else
      lines="$3"
    fi # Make file.svg (as defined in instruction file). cat $data | skip $lines | gnuplot $plot # Plot file.svg using geeqie. geeqie /tmp/file.svg # Conditionally display the menu. con_menu
© Joseph Rosevear
  |   Source touched: 2023-03-24 01:57:47   |