[Kst] NASA's cdf datasource
Nicolas.Brisset at eurocopter.com
Nicolas.Brisset at eurocopter.com
Fri Jul 9 18:01:51 CEST 2004
Hi,
I've been trying to add a datasource for NASA's cdf file format
(http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html) which we happen to work with.
It is an extremely compact, open and flexible (binary) format, delivered with
an Open Source library and tools.
I have succeeded in:
- creating the datasource directory in the kst distribution (actually a CVS
snapshot) and getting it to compile (not that easy with auto* tools !)
- retrieving the list of variable names
- reading the data values
Well, that sounds rather good, doesn't it ? The only _small_ problem is that
kst crashes while reading the values (the second time !). I do not understand
exactly what is wrong and why all values for a given variable are read more
than once, so I thought one of you might help :-)
Attached are the following:
1) cdf.cpp implementation
2) cdf.h corresponding header
3) .desktop file
4) Makefile.am file with the important line:
kstdata_cdf_la_LIBADD= $(CDF_LIBS) which makes it link the cdf library
(libcdf.so)
5) a sample cdf file to experiment with.
Thanks for all the work on kst, and feel free to make the cdf datasource
work :-)
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kst_sample_small.cdf
Type: application/x-netcdf
Size: 104648 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20040709/7f9217dc/kst_sample_small.cdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdf.cpp
Type: text/x-c++src
Size: 7547 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20040709/7f9217dc/cdf.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstdata_cdf.desktop
Type: application/x-desktop
Size: 2262 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20040709/7f9217dc/kstdata_cdf.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.am
Type: text/x-makefile
Size: 301 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20040709/7f9217dc/Makefile.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdf.h
Type: text/x-chdr
Size: 1691 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20040709/7f9217dc/cdf-0001.bin
More information about the Kst
mailing list