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

Home » Public Forums » archive » Writing on the image using IDL.
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
Writing on the image using IDL. [message #92300] Thu, 12 November 2015 22:07 Go to next message
ristight is currently offline  ristight
Messages: 5
Registered: September 2015
Junior Member
I want to create a program that writes the data to the image, but it does not go well.
What will you do?
Please tell me how to write the data to the image.
Array of image is (3, 3547, 3431).
Re: Writing on the image using IDL. [message #92301 is a reply to message #92300] Fri, 13 November 2015 00:23 Go to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Friday, 13 November 2015 07:07:06 UTC+1, 山本正志 wrote:
> I want to create a program that writes the data to the image, but it does not go well.
> What will you do?
> Please tell me how to write the data to the image.
> Array of image is (3, 3547, 3431).

Not really enough information to answer this, but something like this might work if your data are floating point:

write_image, 'your_data.png', 'PNG', bytscl(array)

or

write_image, 'your_data_db.png', 'PNG', bytscl(alog(array))

Of course, there are many other formats you could use, see the documentation:

http://www.exelisvis.com/docs/WRITE_IMAGE.html

--
Yngvar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: contour palette
Next Topic: multiple barplots on histogram

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

Current Time: Wed Oct 08 11:36:01 PDT 2025

Total time taken to generate the page: 0.01181 seconds