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

Home » Public Forums » archive » Re: Running IDL routine.
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: Running IDL routine. [message #78928 is a reply to message #78926] Mon, 09 January 2012 04:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shambhu writes:

> Am reading a text file which consists of wind speed data, using read
> ASCII macros. when i give a command:
>
> array = data
> array = Reverse(array, 1)
> lat = Reverse(data.lat)
>
> the following error is coming.
>
> % ROTATE: Struct expression not allowed in this context: A.
> % Error occurred at: REVERSE

It is hard to tell exactly what you are doing,
but it sounds like you probably got a structure
returned from a function, and that the structure
contains your wind speed and location data. If
that is the case, you need something like this.

struct = ASCII_MACRO()
windsp = struct.data
lat = struct.lat
lon = struct.lon

Then, you probably want to reverse your windsp and lat
variables in the Y direction if you are planning to put
these on a map.

windsp = Reverse(windsp, 2)
lat = Reverse(lat, 2)

Cheers,

David





--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Technology!
Next Topic: widget_slider cross platform (from windows to Mac)

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

Current Time: Mon Dec 01 02:46:57 PST 2025

Total time taken to generate the page: 0.24296 seconds