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

Home » Public Forums » archive » PV-Wave Insists My Label is Undefined
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
PV-Wave Insists My Label is Undefined [message #71483] Wed, 23 June 2010 11:06
Solargus is currently offline  Solargus
Messages: 5
Registered: May 2010
Junior Member
I'm at a complete loss as to why my labels are coming up as undefined
in the following code. Can anyone help?

print, 'Enter the time of interest:'
print, ' '

retry: print, 'Enter the 4-digit year: '
read, beginyr
beginyr=fix(beginyr)
beginyr=strtrim(beginyr, 2)

print, 'Enter the month (i.e. 11 for Nov): '
read, beginmo
beginmo=fix(beginmo)
beginmo=strtrim(beginmo, 2)

print, 'Enter the day: '
read, beginday
beginday=fix(beginday)
beginday=strtrim(beginday, 2)

print, 'Enter the UTC hour: '
read, beginhr
beginhr=fix(beginhr)
beginhr=strtrim(beginhr, 2)

idx = where((time.year eq beginyr) and (time.month eq beginmo) and $
(time.day eq beginday) and (time.hour eq beginhr))
idx=fix(idx)
case 1 of
(idx eq -1): begin
read, 'The input you provided failed to produce a time index. $
(0) Try again (1) Exit ', response
response=fix(response)
if (response eq 0) then begin
goto, retry
endif else goto, exit
endcase

Print, 'The index for the time you entered is: '
print, idx

exit: cd, '/data1/Ken-rpm/GOES_TRENDING_ANALYSIS/trending_files'
retall
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: keyboard mapping in nedit, on a Mac
Next Topic: Re: PV-Wave Insists My Label is Undefined

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

Current Time: Wed Oct 08 17:26:22 PDT 2025

Total time taken to generate the page: 0.00559 seconds