Package: gnudatalanguage
Version: 0.9~rc1-1.1
Severity: important
Inquiring a NetCDF variable with more than one dimension leads to an
assertion error in dstructgdl.hpp when the tag DIM is initialized as
GetTag(tIx)->N_Elements() == 1 and data.N_Elements == 2 (in fact the real
dimension)
gdl: dstructgdl.hpp:380: void DStructGDL::InitTag(const std::string&,
const DataGDL&) [with DataGDL = Data_<SpDULong>]: Assertion `GetTag(
tIx)->N_Elements() == data.N_Elements()' failed.
This renders the package nearly unusable if you are dealing with NetCDF
files.
Here is a simple program code to reproduce the error
------------ snip here ------------
fid = NCDF_OPEN('simple.nc')
; getting the variables is ok
NCDF_VARGET, fid, 0, test1d
NCDF_VARGET, fid, 1, test2d
PRINT, '1d'
PRINT, test1d
PRINT, '2d'
PRINT, test2d
; inquiring 1d-variables is ok
inq1d = NCDF_VARINQ(fid, 0)
PRINT, '1d'
PRINT, inq1d
; but inquiring 2d (or nd) variables fails with an assertion error
inq2d = NCDF_VARINQ(fid, 1)
PRINT, '2d'
PRINT, inq2d
END
------------ snip here ------------
and the NetCDF file can be produce by running
ncgen -o simple.nc simple.txt
with simple.txt being the following:
------------ snip here ------------
netcdf simple {
dimensions:
x = 2 ;
y = 2 ;
variables:
int test1d(x) ;
test1d:long_name = "test1d" ;
test1d:standard_name = "test1d" ;
int test2d(y, x) ;
test2d:long_name = "test2d" ;
test2d:standard_name = "test2d" ;
data:
test1d = 1, 2 ;
test2d =
1, 2,
3, 4 ;
}
------------ snip here ------------
Best regards
Armin
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnudatalanguage depends on:
ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libfftw3-3 3.1.2-3.1 library for computing Fast Fourier
ii libfontconfig1 2.6.0-1 generic font configuration library
ii libgcc1 1:4.3.1-9 GCC support library
ii libgsl0ldbl 1.11+dfsg-1 GNU Scientific Library (GSL) -- li
ii libhdf4g 4.1r4-22 The Hierarchical Data Format libra
ii libhdf5-mpich-1.6.6 1.6.6-4 Hierarchical Data Format 5 (HDF5)
ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG
ii libmagick++10 7:6.3.7.9.dfsg1-2+b2 C++ API to the ImageMagick library
ii libncurses5 5.6+20080830-1 shared libraries for terminal hand
ii libnetcdf4 1:3.6.2-3.1 An interface for scientific data a
ii libplplot-c++9c2 5.9.0-8 Scientific plotting library
ii libplplot9 5.9.0-8 Scientific plotting library
ii libreadline5 5.2-3 GNU readline and history libraries
ii libsm6 2:1.0.3-2 X11 Session Management library
ii libstdc++6 4.3.1-9 The GNU Standard C++ Library v3
ii libx11-6 2:1.1.5-1 X11 client-side library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii python2.5 2.5.2-11 An interactive high-level object-o
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages gnudatalanguage recommends:
ii plplot9-driver-xwin 5.9.0-8 Scientific plotting library (X11 d
ii python-numarray 1.5.2-4 An array processing package modell
Versions of packages gnudatalanguage suggests:
ii python-matplotlib 0.98.1-1 Python based plotting system in a
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]