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

Home » Public Forums » archive » Re: Contour dimension problem
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: Contour dimension problem [message #78432 is a reply to message #78430] Fri, 25 November 2011 14:18 Go to previous messageGo to previous message
Mat is currently offline  Mat
Messages: 14
Registered: December 2009
Junior Member
On Nov 26, 5:02 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article < cca14042-fbbd-40da-a693-70828da8c...@s17g2000pra.googlegroup s.com >,
>
>  Mat <m...@waikato.ac.nz> wrote:
>> I'm trying to create a contour plot of temperature, depth and time.
>> Right now I have the temperature at 13 depths and 30169 date/times as
>> "temp" FLOAT [13, 30169], "depths" Int[13], and "time" FLOAT[30169].
>
>> I don't have my dimensions right for the following command:
>
>> IDL> contour, temp, time, depths
>> % CONTOUR: Array must have 2 dimensions: TEMP.
>> % Execution halted at: $MAIN$
>
>> Does anyone know the command to contour this data with one degree
>> contours?
>
>> Thanks for your help
>
> Try
>
>    HELP, temp, time, depths
>
> If temp = temp(depth, time)
>
> Then you should call
>
>    CONTOUR, temp, depth, time
>
> I hope your data is very smooth in the time dimension.
>
> Ken Bowman

Hi Ken,

Thanks for your help. My data is in 15 min intervals. I would think a
matrix is 2d but it still gives me the same error when I create a
matrix of temperature and depth! Is there an ideal way to format the
data to make this easier. What if I put all the data into a matrix of
time, depth, temp. OR separate into 3 vectors?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL tools
Next Topic: Writing arrays to text file - format code trickery?

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

Current Time: Wed Oct 08 15:28:13 PDT 2025

Total time taken to generate the page: 0.00447 seconds