[mesa-users] some postprocessing scripts

Willie Strickland cwskas at gmail.com
Fri Sep 12 12:26:43 EDT 2014


I am not a programmer, which will likely be obvious, but have cludged some scripts together that I almost always use at the end of a run, normally by adding to the end of 'rn' such as

	#!/bin/bash

	pwd

	rm -f restart_photo
	date;./star;date

	./save_tgz.sh
	#./save_output.sh
	#./profile_summary.rb
	#./return_ss.rb

I have not shared them sooner, because I wanted to try and 'clean them up' a bit.  But that hasnt happened, so here they are as is.  I am sure there are more efficient ways to accomplish some of the tasks.  Please post improvements.

Willie


==>  profile_summary.rb

If called without argument it will give a summary of some of the info (which of course could be customized if one wanted) in all the profiles that have a priority greater than 1.  Results are saved to Profile_Summary_priority.txt

If a single argument 'all' is added it will summarize all the profiles and Profile_Summary_all.txt will be saved.

If called profile_summary.rb prof 14 then only profile 14 will be summarized and Profile_Summary_14.txt will be saved.


==>  save_output.sh

will save a bunch of files automatically in a timestamped directory.  I find this particular useful if I am running some sort of grid.  Not much explanation needed, no arguments, customize and go.


==>  save_tgz.sh

Is like save_output, but also compresses the files for ftp.  I just made this modification yesterday because it makes it simpler to get data off a remote machine.


==>  return_ss.rb

requires the reordering of the columns to put the data you want in the first few columns.  It creates two files -- return_info.txt which contains the values from the latest run & spreadsheet.txt which includes tab separated info from each of the runs in a grid.  Then the whole document can be copied and pasted into a google spreadsheet or whatever.  It also echos return_info.txt to the terminal.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: save_output.sh
Type: application/octet-stream
Size: 1039 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140912/85765f12/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: return_ss.rb
Type: text/x-ruby-script
Size: 3886 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140912/85765f12/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save_tgz.sh
Type: application/octet-stream
Size: 1149 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140912/85765f12/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile_summary.rb
Type: text/x-ruby-script
Size: 8854 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140912/85765f12/attachment-0001.bin>


More information about the Mesa-users mailing list