Re: outputting model to plain text

From: David P. Huenemoerder <dph_at_email.domain.hidden>
Date: Wed, 19 May 2010 12:46:11 -0400
    Tolga> You can get the parameter values using : 

    Tolga> variable_name=get_par(parameter_number);

    Tolga> and write them to an ascii file using the fprintf function,
    Tolga> of course first opening the file with the fopen.

    Tolga> so, basically you can do these following the the S-lang
    Tolga> intrinsic function reference :
    Tolga> http://www.s-lang.org/doc/html/slangfun.html

That is certainly a low-level way to get and write individual
parameters and gives you arbitrary control.  There are some
higher-level functions which might be useful:

If you want all params:

  p = get_par( "*" ) ; 

  writecol( "params.tbl", p ) ; 

If you want some, you can use other strings in the wildcard:

  p = get_par( "gauss(*).center" );

If you want them all with all info:

  p = get_params;

and p is a structure  array which includes the names, values, min,
max.

Of course, save_par("file.par"), load_par("file.par") are the way to
manage param i/o in isis.  And then you can use and editor or unix
tools on the .par files for arbitrary manipulation.

-- Dave

David Huenemoerder  617-253-4283 (o); -253-8084 (f); http://space.mit.edu/home/dph
MIT Kavli Institute for Astrophysics and Space Research
70 Vassar St., NE80-6065,
Cambridge, MA  02139
[Admin. Asst.: Elaine Tirrell, 617-253-7480, egt_at_email.domain.hidden
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Wed May 19 2010 - 12:46:23 EDT

This archive was generated by hypermail 2.2.0 : Thu Jun 03 2010 - 12:59:29 EDT