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

Home » Public Forums » archive » Error-Emergecy
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
Error-Emergecy [message #91935] Sun, 20 September 2015 08:07 Go to next message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
When I put the comand:
"FOR x=0, N_ELEMENTS(FILE)-1 DO begin

IF ((MONTH[i] EQ MONTH2[x]) AND (DAY[i] EQ DAY2[x])) then begin
printf, u, year(i),month(i), day(i), hour(i), minute(i), hour2(x), minute2(x)
endif
endfor"

Appear the message:

'Attempt to subscript MONTH2 with X is out of range.'

How Do I fix it?
Re: Error-Emergecy [message #91936 is a reply to message #91935] Sun, 20 September 2015 09:47 Go to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Sunday, September 20, 2015 at 9:07:38 AM UTC-6, Joyrles Fernandes wrote:
> When I put the comand:
> "FOR x=0, N_ELEMENTS(FILE)-1 DO begin
>
> IF ((MONTH[i] EQ MONTH2[x]) AND (DAY[i] EQ DAY2[x])) then begin
> printf, u, year(i),month(i), day(i), hour(i), minute(i), hour2(x), minute2(x)
> endif
> endfor"
>
> Appear the message:
>
> 'Attempt to subscript MONTH2 with X is out of range.'
>
> How Do I fix it?

This will give you a start:

help, month2, n_elements(file)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Time
Next Topic: READ IMAGE

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

Current Time: Wed Oct 08 15:13:58 PDT 2025

Total time taken to generate the page: 0.00510 seconds