Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#524 NCDF_VARGET fails for string array

v1.0 (example)
closed-accepted
nobody
None
5
2013-08-30
2013-03-25
Harald Anlauf
No

Hello,

the attached example shows that gdl-0.9.3 fails for me when reading a string array from a NetCDF file.
Expected output (from IDL):
Open NetCDF file: test.nc

Global attribute: Experiment = 9029
Dimensions: 2
Inquire Dimension 0 : n_rep= 3
Inquire Dimension 1 : len8= 8

Reading dates:
varid : 0
long_name : date
units : yyyymmdd
varinq : { date LONG 1 2 0
}
ndims : 1
dates : 20121031 20121031 20121031

Reading station names:
varid : 3
long_name : station id in character form
varinq : { statid CHAR 2 1 1 0
}
ndims : 2
station_id: CO022338 CO062338 CO022254

However, with gdl the read of array station_id fails:

% NCDF_VARGET: (NC_ERROR=-56)
% Execution halted at: GDLTEST 48 gdltest.pro
% $MAIN$

Is there a workaround?

Discussion

<< < 1 2 (Page 2 of 2)
  • Alain C.
    Alain C.
    2013-08-30

    • status: open --> closed-accepted
    • Group: --> v1.0 (example)
     
<< < 1 2 (Page 2 of 2)