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

Home » Public Forums » archive » Re: IDL Error GCPC data
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: IDL Error GCPC data [message #69220 is a reply to message #69219] Tue, 29 December 2009 11:28 Go to previous messageGo to previous message
sampton is currently offline  sampton
Messages: 8
Registered: December 2009
Junior Member
Hi,
Now that Santa is gone back to IDL ;)
Itried the code but get some syntax error handling in this code and
here is the error:
IDL> struct = Read_V2_1_file('gpcp_v2_1_psg.2009')

if n_elements(num_lon) eq 0 then num_lon = 144
^
% Syntax error.
At: ~/.../read_v2_1_file.pro, Line 44

return, struc
^
% Return statement in procedures can't have values.
At: ~/.../read_v2_1_file.pro, Line 51

function read_v2_1, file,
^
% Syntax error.
At: ~/.../read_v2_1_file.pro, Line 54

endif
^
% Type of end does not match statement (END expected).
At: ~/.../read_v2_1_file.pro, Line 79

if file eq "" then return, -1
^
% Return statement in procedures can't have values.
At: ~/.../read_v2_1_file.pro, Line 84

struct = create_v2_1_struct(NUM_LON=num_lon, $
^
% Syntax error.
At: ~/.../read_v2_1_file.pro, Line 104

return, struct
^
% Return statement in procedures can't have values.
At: ~/.../read_v2_1_file.pro, Line 115
% Compiled module: READ_V2_1_FILE.
% Attempt to call undefined procedure/function: 'READ_V2_1_FILE'.
% Execution halted at: $MAIN$

The initial code is working but still don't know how to save the
output in a .txt or .dat file.
Thanks again for your help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fitting contours with ellipse
Next Topic: Re: Reducing a set of curves to a mean curve

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

Current Time: Sun Oct 12 05:38:50 PDT 2025

Total time taken to generate the page: 1.59962 seconds