Re: Contour dimension problem [message #78429 is a reply to message #78428] |
Sat, 26 November 2011 12:40   |
Mat
Messages: 14 Registered: December 2009
|
Junior Member |
|
|
On Nov 27, 2:57 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article < f717fe01-26a2-47db-b9f8-1a1157eac...@a2g2000prb.googlegroups .com >,
>
>
>
>
>
>
>
>
>
> Mat <m...@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
Hi Ken,
I thought depth_time was 2d but I see its not. Anyway here is the
result of help:
IDL> help, temp, time, depth
TEMP STRUCT = -> <Anonymous> Array[1]
TIME STRUCT = -> <Anonymous> Array[1]
DEPTH STRUCT = -> <Anonymous> Array[1]
I thought this would work for vectors but I get:
IDL> contour, temp,time,depth, /Irregular
% CONTOUR: Struct expression not allowed in this context: TIME.
% Execution halted at: $MAIN$
One thing to note is that this is a very large dataset, with depth,
time, and temp all FLOAT[392197].
Cheers,
Mat
|
|
|