HTML automatically generated with rman
Table of Contents

Name

nemopars - extract parameters from a bash-style rc file

Synopsis

nemopars par1,par2,... rc1 rc2 ...

Description

nemopars will extract the values of par=val constructs in a bash-style rc file (it will also support python assignments). The convention is that in a run directory NEMO stores these in a nemopars.rc file. For example with the following rc file
# ./mkmh97.sh version=11-aug-2022
run=run0 m=1 v0=1 seed=-3
m16=0.815569
the command
   nemopars m,v0,m16 run0/nemopars.rc
   
would result
   # m v0 m16
   1 1 0.815569

When many simulations each in their own run directory, a command line

   nemopars m,v0,m15 run*/nemopars.rc
   

would be a quick way to assemble a table summarizing these three parameters

Parameters

This is a simple python script, the CLI does not adhere to the usual getparam(3NEMO) conventions.

When a parameter is missing (or mis-spelled) from the rc file, the value "nan" is printed instead.

See Also

nemo(1NEMO) , awk(1)

Files


$NEMO/src/scripts/nemopars    (python) script

Author

Peter Teuben

Update History


17-aug-2022    Created        PJT
16-nov-2022    Print "nan" when parameter missing    PJT


Table of Contents