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

Home » Public Forums » archive » Re: Export values from plot window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Export values from plot window [message #56204 is a reply to message #56198] Mon, 15 October 2007 12:03 Go to previous messageGo to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Oct 15, 4:59 am, vijay <vijayans...@gmail.com> wrote:
> Hi all, i had plotted an image for two bands (plot,red,green). From
> the plot window can i able to
> store the minimum and maximum values to a variable. I also want to
> write those two values to an ASCII file, can i able to do that?

Sure!! Just do this:

print,max(green)
print,min(green)

then, open a text editor, type in the values you see on the screen,
and save it to a file!

Hmm... I suppose you'd rather do the whole thing in IDL... In that
case, try this:

minpt = min(green)
maxpt = max(green)

openw,lun,'filename',/get_lun
printf,lun,minpt,maxpt
close,lun
free_lun,lun
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hist_2d, variable bin size
Next Topic: How to read file to fill an array "partially" ?

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

Current Time: Sat Oct 11 10:41:47 PDT 2025

Total time taken to generate the page: 0.32128 seconds