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 #78430 is a reply to message #78429] Sat, 26 November 2011 05:57 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <f717fe01-26a2-47db-b9f8-1a1157eac29c@a2g2000prb.googlegroups.com>,
Mat <mga1@waikato.ac.nz> wrote:

> 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?

What is the result when you do this?

HELP, temp, time, depths

It sounds like you think that temp is a 2-D array, but it is not.

Ken
[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 17:54:31 PDT 2025

Total time taken to generate the page: 0.00362 seconds