PV-Wave Insists My Label is Undefined [message #71483] |
Wed, 23 June 2010 11:06 |
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
|
|
|