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

Home » Public Forums » archive » Using TV command instead of contour
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: Using TV command instead of contour [message #76953 is a reply to message #76865] Tue, 12 July 2011 12:01 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Jul 12, 6:18 am, Amit <amisra.a...@gmail.com> wrote:
> Dear Friends,
>
> I have a data in form of flags, for example, dust=1,smoke=2 and so on.
> There cannot be numbers in between.
>
> The data is in the form of 2-dimensional array, with each cell
> corresponding to a latitude, longitude pair. I want to display it --
> the output would look something like a chess board. If I use the
> CONTOUR command, it interpolates at the boundaries, producing
> incorrect plots.
> This problem is solved if I use TVIMAGE program. However, I cannot
> pass the latitude,longitude data to the command (like CONTOUR). Can
> anyone suggest me how to use TVIMAGE or TV in a way similar to
> CONTOUR?

The program pg_plotimage can be called similarly to contour:

http://hea-www.cfa.harvard.edu/~pgrigis/idl_stuff/pg_plotima ge.pro

pg_plotimage,image,x,y

where image is a n by m array, x an n array and y an m array.

Ciao,
Paolo





>
> Thanks for your help
> Amit
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: GONG SOLAR DATA ANALYSIS IN IDL
Next Topic: Multiple-plot multiple-page landscape postscript problem

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

Current Time: Wed Oct 08 19:33:38 PDT 2025

Total time taken to generate the page: 0.00452 seconds