This forum is dedicated to discuss all problems and suggestions related to the inversion software
admin
Site Admin
Posts: 841 Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:
Post
by admin » Tue Feb 03, 2009 5:38 pm
Here is a script to compute the minimum misfit achieved as a function of the number of model generated (the same as in the status window in dinver graphical interface).
Code: Select all
gpdcreport *.report -pm | awk '
BEGIN{m=1e99}
{
col=$2+3
if ($col<m) {
m=$col
print $1,m
}
}'
admin
Site Admin
Posts: 841 Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:
Post
by admin » Wed May 27, 2009 6:44 pm
The proposed script does not work due to comment lines (starting with '#'). So the correct script would be:
Code: Select all
gpdcreport *.report -pm | grep -v "#" | awk '
BEGIN{m=1e99}
{
col=$2+3
if ($col<m) {
m=$col
print $1,m
}
}'