comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to print the mpfitfun output to a file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to print the mpfitfun output to a file? [message #93406] Thu, 07 July 2016 03:13 Go to next message
Sonu Tabitha is currently offline  Sonu Tabitha
Messages: 29
Registered: April 2016
Junior Member
I gave the code like the following
res = mpfitfun('model',x,y,err,p,PARINFO=par)
print,res
fname='/home/meegle_jade/data1.dat'
OPENW,1,fname
PRINTF,res
CLOSE,1

But it's showing error. Infact I wanted to write the output 'res' to data1.dat.Can you please help me out?
Re: How to print the mpfitfun output to a file? [message #93407 is a reply to message #93406] Thu, 07 July 2016 03:45 Go to previous messageGo to next message
Richard Morton is currently offline  Richard Morton
Messages: 7
Registered: April 2016
Junior Member
On Thursday, July 7, 2016 at 11:13:19 AM UTC+1, Meegle_Jade wrote:
> I gave the code like the following
> res = mpfitfun('model',x,y,err,p,PARINFO=par)
> print,res
> fname='/home/meegle_jade/data1.dat'
> OPENW,1,fname
> PRINTF,res
> CLOSE,1
>
> But it's showing error. Infact I wanted to write the output 'res' to data1.dat.Can you please help me out?

You need to specify the logical unit your writing to, e.g., PRINTF,1,res
Re: How to print the mpfitfun output to a file? [message #93409 is a reply to message #93406] Thu, 07 July 2016 18:17 Go to previous message
Sonu Tabitha is currently offline  Sonu Tabitha
Messages: 29
Registered: April 2016
Junior Member
On Thursday, July 7, 2016 at 3:43:19 PM UTC+5:30, Meegle_Jade wrote:
> I gave the code like the following
> res = mpfitfun('model',x,y,err,p,PARINFO=par)
> print,res
> fname='/home/meegle_jade/data1.dat'
> OPENW,1,fname
> PRINTF,res
> CLOSE,1
>
> But it's showing error. Infact I wanted to write the output 'res' to data1.dat.Can you please help me out?

Oh..Okay. Thanks a lot!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Extracting a sub-cube from a cube
Next Topic: Strange behaviour of Uniq static method

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:13:06 PDT 2025

Total time taken to generate the page: 0.06292 seconds