This HTML automatically generated with rman for NEMO
Table of Contents

Name

pedit - parameter editing on a file

Synopsis

pedit parfile [options] key=val ...

Description

pedit helps you create a new parameter file based on a template by replacing the values of selected parameters. The result is shown on stdout.

The sad state is that for parameter file conventions there are many options, many of which this program hasn’t implemented.

Flags

-e
This will assume the lines are bash style key=val (no spaces allowed)
-o
This will overwrite, and not use stdout
-r
This reverse format allows editing
      value = keyword = COMMENTS
style parameter files. The lone example I know that uses this format is hochunk3D.

Examples


   % pedit $NEMODAT/Bbarolo/model0_3dfit.par FITSFILE=out.fits OUTFOLDER=out.3dfit
INC=40 > qout.3dfit.par
   % pedit lmtoy_79448.rc -e -o slice=[-100,100]
   Overwriting lmtoy_79448.rc
   % pedit mctherm.par -r -e NP=40000 NPMIN=10000 > run_bench/mctherm.par

Here is a very peculiar example from the hochunk3D program, which uses a "value = keyword = comment" format, plus once defined, never overwritten style. COmments not allowed (yet)


  ’ =================== Parameter file ===================’
  ’**** Preliminaries ****’
  40000000 = NP = Number of photons from central star
  ’../parfiles’ = PARDIR = directory containing atmosphere, dust, and filter
files
  

See Also

nemo(1NEMO)

Author

Peter Teuben

Files

$NEMO/src/scripts/pedit    python script

Update History


jul-2019    created                PJT
30-may-2020    finally documented           PJT
17-feb-2021    options after parfile,    added -e, -o    PJT


Table of Contents