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

Home » Public Forums » archive » Please help
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Please help [message #5448] Fri, 15 December 1995 00:00 Go to next message
lili is currently offline  lili
Messages: 1
Registered: December 1995
Junior Member
Hi, Dear Netters,

I have a problem when using PV-WAVE to plot contours. It seems that PV-WAVE does not label contours if the keyword "clip={x0,y0,x1,y1]" is added. Any suggestion to solve this problem is highly appreciated.

Li
Re: please help [message #51054 is a reply to message #5448] Fri, 03 November 2006 08:03 Go to previous messageGo to next message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"creon" <cinarbencan@gmail.com> wrote in message
news:1162568712.436303.195010@m7g2000cwm.googlegroups.com...
> Hello. Iam a beginner and i am having trouble with a loop.It's like
> this:
> j=0
> for i=0,20 do begin
> if (data.field08[i]='V') then begin
> dataV.time[j]=data.field10[i]
> dataV.object[j]=data.field07[i]
> dataV.count[j]=data.field09[i]
> dataV.filter[j]=data.field08[i]
> endif
> j++
> endfor
> if i delete j++, it works fine writing all to the 0.th. but i need j to
> increase each time. so i add j++ and recieve an error message like
> this:
> " Subscript range values of the form low:high must be >= 0, < size,
> with low <= high: <No name>"
> how can i fix that? i will be thankfull if you help me out with this.
> good day.
>

A shot in the dark, do you want your j++ inside the if block?

Perhaps j is being increased to 20, and your dataV structure
does not have arrays with 20 elements. If that doesn't help,
post more information such as:
help,dataV,/st
help,data,/st

Cheers,
bob
Re: please help [message #51230 is a reply to message #5448] Sat, 04 November 2006 10:59 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
creon wrote:
> Thanks for your replies. yeah you're right the j++ is in the if
> block already. i've wrote it wrong in the message, sorry for that. the
> code is like that:
>
> j=0
> for i=0,20 do begin
> if (data.field08[i]='V') then begin
> dataV.time[j]=data.field10[i]
> dataV.object[j]=data.field07[i]
> dataV.count[j]=data.field09[i]
> dataV.filter[j]=data.field08[i]
> j++
> endif
> endfor
>
> Maybe i should explain better. i have some observation data with
> time, object, filter and count in each column. the structure called
> data carries those.There are three diffrent filters U,B, and V. now i
> want to pick the data in V filter and write it to the structure dataV.
> i am new to idl programming so that loop is what i could find to do
> this task. is there any other way to do this? or am i doing something
> wrong?
>

You could also use the where() function...

goodIndices = where(data.field08 eq 'V')
dataV.time = data.field10[goodIndices]

Jean
Re: please help [message #51231 is a reply to message #5448] Sat, 04 November 2006 08:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
creon writes:

> Maybe i should explain better. i have some observation data with
> time, object, filter and count in each column. the structure called
> data carries those.There are three diffrent filters U,B, and V. now i
> want to pick the data in V filter and write it to the structure dataV.
> i am new to idl programming so that loop is what i could find to do
> this task. is there any other way to do this? or am i doing something
> wrong?

My guess is that you are doing something wrong. Probably
making assumptions about your variables that aren't
correct--this is the most common reason for these
kinds of problems.

In any case, WE can't help you here. When your program
crashes, why don't you just take a look around? What is
I at that point? What is j? Are the variables you are
trying to subscript big enough to accommodate I and j?
The HELP command is, uh, well, helpful in figuring
these kinds of things out.

The error message indicates that either I or j are
bigger than you think they are, or your data
arrays are not the size you think they are. Only
you can tell us this. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: please help [message #51233 is a reply to message #51054] Sat, 04 November 2006 01:00 Go to previous message
creon is currently offline  creon
Messages: 3
Registered: November 2006
Junior Member
Thanks for your replies. yeah you're right the j++ is in the if
block already. i've wrote it wrong in the message, sorry for that. the
code is like that:

j=0
for i=0,20 do begin
if (data.field08[i]='V') then begin
dataV.time[j]=data.field10[i]
dataV.object[j]=data.field07[i]
dataV.count[j]=data.field09[i]
dataV.filter[j]=data.field08[i]
j++
endif
endfor

Maybe i should explain better. i have some observation data with
time, object, filter and count in each column. the structure called
data carries those.There are three diffrent filters U,B, and V. now i
want to pick the data in V filter and write it to the structure dataV.
i am new to idl programming so that loop is what i could find to do
this task. is there any other way to do this? or am i doing something
wrong?
Re: please help [message #51240 is a reply to message #51054] Fri, 03 November 2006 10:49 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
R.G. Stockwell wrote:
> "creon" <cinarbencan@gmail.com> wrote in message
> news:1162568712.436303.195010@m7g2000cwm.googlegroups.com...
>
>> Hello. Iam a beginner and i am having trouble with a loop.It's like
>> this:
>> j=0
>> for i=0,20 do begin
>> if (data.field08[i]='V') then begin
>> dataV.time[j]=data.field10[i]
>> dataV.object[j]=data.field07[i]
>> dataV.count[j]=data.field09[i]
>> dataV.filter[j]=data.field08[i]
>> endif
>> j++
>> endfor
>> if i delete j++, it works fine writing all to the 0.th. but i need j to
>> increase each time. so i add j++ and recieve an error message like
>> this:
>> " Subscript range values of the form low:high must be >= 0, < size,
>> with low <= high: <No name>"
>> how can i fix that? i will be thankfull if you help me out with this.
>> good day.
>>
>
>
> A shot in the dark, do you want your j++ inside the if block?
>
> Perhaps j is being increased to 20, and your dataV structure
> does not have arrays with 20 elements. If that doesn't help,
> post more information such as:
> help,dataV,/st
> help,data,/st
>
> Cheers,
> bob

same thing with i! ... and that would explain, I guess, the <no name> in
the error message.

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Segmentation Fault
Next Topic: data removal from array

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

Current Time: Wed Oct 08 15:33:56 PDT 2025

Total time taken to generate the page: 0.00856 seconds