X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Oct 2013 10:27 AM by  anon
write_jpeg inside a loop
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Oct 2013 10:27 AM
    hello. I'm still pretty new to idl, so bare with me. I'm trying to read a load of .fits files, plots those files and then save the plots using the write_jpeg function. But I'm trying to do it all inside a loop so that it reads a file -> saves the plot ->reads next file ->saves that plot.. etc. But when it writes a new jpeg file, it overwrites the previous one and I want to save them all in the same directory with names image1, image2, image3.. etc. What is the write_jpeg syntax for this? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    28 Oct 2013 10:08 AM
    Here is how you create unique names in a loop: http://www.idlcoyote.com/code_tips/se...
    You are not authorized to post a reply.