Output from multiple runs in Dinver

This forum is dedicated to discuss all problems and suggestions related to the inversion software
Post Reply
Aniket19061990
Posts: 9
Joined: Sun Jan 24, 2021 11:11 am

Output from multiple runs in Dinver

Post by Aniket19061990 »

Hello.
I have 200 runs in a Dinver files, each with a different target but same parameterizations. I want -gpprofile of lowest misfit from each run. Currently I am giving -gpprofile command 200 times, each for a single run. Is there any shorter way for doing that?

admin
Site Admin
Posts: 604
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Output from multiple runs in Dinver

Post by admin »

No, not really. If you merge all the best models produced by "gpdcreport -best 1" in a single stream, you can run gprofile only once

Code: Select all

(
  for F in $(ls *.report); do
    gpdcreport $F -best 1
  done
) | gprofile -vs
I'm unsure if this is what you meant.

Aniket19061990
Posts: 9
Joined: Sun Jan 24, 2021 11:11 am

Re: Output from multiple runs in Dinver

Post by Aniket19061990 »

Thanks for your reply.
I wrote the command as you have written, but it showed this error:

sh: syntax error near unexpected token `)'

admin
Site Admin
Posts: 604
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Output from multiple runs in Dinver

Post by admin »

This scirpt is written in bash. If you save the code in a file with the first line set to

Code: Select all

#!/bin/bash
It should be better.

Post Reply