Re: Variable Pixel Spacing for Images in IDL [message #86712 is a reply to message #86711] |
Fri, 29 November 2013 06:23   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Robert Seigel writes:
> I have a 2D array that is an x-z vertical plane, where the vertical axis is stretched from ~ 25 meter spacing between rows at the bottom (index = 0) to 100 meter spacing at the top. I am trying to plot these data as an image with the y-axis "stretched" appropriately:
>
> yaxis = zcoords ; Vertical axis [12.4,37.67,63.44...16400,16500,16600]
> xaxis = xcoords ; Horizontal axis [0,100,200...50900,51000,51100]
> p = image(rgbData,xaxis,yaxis,/buffer, $
> axis_style=2)
>
> But, the above code does stretch the image properly. Using contour stretches the data fine, but I would prefer to plot these data as an image. Does anyone know how I can plot these data as an image so that the data points match the locations specified by yaxis?
I would try PG_PlotImage by Paolo Grigis. You can find it in the
"public" directory of the IDL Coyote Library, among other places. It is
a direct graphics solution, however.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|