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

Home » Public Forums » archive » Re: data to image? Please help...
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: data to image? Please help... [message #63722 is a reply to message #63688] Mon, 17 November 2008 22:30 Go to previous message
lbnc is currently offline  lbnc
Messages: 15
Registered: January 2005
Junior Member
On 18 Nov, 04:28, mbwel...@gmail.com wrote:
> Hello,
>
> I have an output file that gives me data in the form of:
> Top, bottom, left, right sides of a cell (so basically the corners)
> and two separate magnitude data columns.
>
> What I need to be able to do is create two image files that
> graphically, either via contours, colored cell scheme, or other...,
> display the values of magnitude per cell ( either Magnitude value 1 or
> value 2).
>
> Is this feasible to do in IDL, if not is there another program better
> suited?
>
> If anyone has any ideas, I would really appreciate it.
>
> Thanks,
>
> ~Matt

Although it will not be the fastest solution and produce large
PostScript files, I would suggest looping over all values, plotting
them using POLYFILL, like so:

;- establish axes, without actually plotting them, because the
polyfill would cover them
plot, [0], /nodata, xstyle=5, ystyle=5, $
xrange=some_xrange, yrange=some_yrange
for i=0L, ndata-1L do $
polyfill, [xstart[i], xend[i], xend[i], xstart[i], xstart[i]], $
[ystart[i], ystart[i], yend[i], yend[i], ystart[i]], $
color=data_value[i], noclip=0
;- plot axes
plot, [0], /nodata, /noerase, xstyle=1, ystyle=1, xrange=some_xrange,
yrange=some_yrange

Cheers
Lasse
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: program variables
Next Topic: Re: reading slices of FITS files

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

Current Time: Sat Oct 11 08:54:16 PDT 2025

Total time taken to generate the page: 0.00588 seconds