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 #78428 is a reply to message #78426] Sat, 26 November 2011 13:23 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 <edd5e854-16f7-4e76-903a-2728823af6cd@d37g2000prg.googlegroups.com>,
Mat <mga1@waikato.ac.nz> wrote:

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

CONTOUR is expecting an array, and you are giving it a structure. The data you
want is probably inside the structure TEMP.

Try

HELP, temp, time, depth, /STR

to find out what is inside your structures.

Then you need to do something like

CONTOUR, temp.something, time.something, depth.something

where "something" is the name of the array inside each structure.

Also, it sounds like you are an IDL beginner. I recommend you get an IDL book
(like mine, which is aimed at beginners). Go to Amazon and search for "bowman
idl"

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 13:37:16 PDT 2025

Total time taken to generate the page: 0.00404 seconds