SDDS question, retaining last page only

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

SDDS question, retaining last page only

Post by Max » 11 Mar 2010, 04:12

I have a SDDS question whose answer I could probably find in the SDDS toolkit manual if I was clever enough.
I have tried without success.
I have a .fin file that contains several pages, each the result of a step in an optimization process. I would like to extract
(i.e. to be able to access the parameters) only the last page, that contains the final optimization values.
I have been using SDDSSPLIT and then addressed
the last file. This is cumbersome. I would like to be able to extract the parameters of the last page only automatically. How do I do that ?
Michael, thanks for your reply to my previous question.

Max

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: SDDS question, retaining last page only

Post by michael_borland » 11 Mar 2010, 09:22

Max,

The fastest way to do this is using sddsprocess and the "optimized" parameter:

% sddsprocess <input> <output> -filter=parameter,optimized,1,1 -nowarning

This selects only the pages for which the "optimized" parameter is on the interval [1,1].

--Michael

Post Reply