readPAR: Reads the value of a parameter in a MAESTRA/MAESPA input file.
Description
Reads the value of any parameter in a namelist in one of the MAESTRA/MAESPA input files.
Also works for other text files that have the FORTRAN namelist input structure.
Optionally specifies in which namelist to look for the parameter.
# Read the number of trees in the plot:readPAR("confile.dat", "notrees", "plot")
# Read the X and Y coordinates:readPAR("confile.dat", "xycoords", "xy")