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

Home » Public Forums » archive » IDL and GRIB
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL and GRIB [message #94025] Tue, 27 December 2016 06:57 Go to previous message
s.fdrc70 is currently offline  s.fdrc70
Messages: 4
Registered: December 2016
Junior Member
Dear all,

I'm trying to run the following IDL code:

--------------
pro read_grb2

file = FILEPATH('atl.grb2', $
SUBDIRECTORY=['examples','data'])
;FILE_COPY,file,dir+'atl.grb2'
GRIB_LIST,dir+'atl.grb2'

record = ORDEREDHASH()
record['GRIBEditionNumber']=2
record['values'] = dblarr(1024)
GRIB_PUTDATA, dir+file, record

end
--------------------------

It should add "record" to the grib file atl.grb2 (that was copied in my home directory).
When I run the code I get the following error:

% Loaded DLM: GRIB.
% Compiled module: GRIB_LIST.
1 crain DOUBLEARRAY[141151]
2 usct DOUBLEARRAY[141151]
3 vsct DOUBLEARRAY[141151]
4 tsec DOUBLEARRAY[141151]
% Compiled module: GRIB_PUTDATA.
% GRIB_PUTDATA: GRIB_SET: Value is read only
% Execution halted at: READ_GRB2 123
/Users/stefano/fdgrib2/read_grb2.pro
% $MAIN$

I cannot understand the reason for this error. Does anybody have an idea?

Thanks

Stefano
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can we plot with cumulative values along x-axis ?????
Next Topic: PDF Advanced Organic Chemistry Part A- Structure and Mechanisms 5th E INSTRUCTOR SOLUTIONS MANUAL; Carey, Sundberg

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

Current Time: Wed Oct 08 09:23:05 PDT 2025

Total time taken to generate the page: 0.00486 seconds