Access NetCDF library
Access NetCDF library
- Subject: Access NetCDF library
- From: Johan Kool <email@hidden>
- Date: Sat, 12 Apr 2003 14:12:36 +0200
Dear all,
My project is currently to be able to read NetCDF data files and plot
these on screen. NetCDF is an open standard that is used for storing
scientific data. On the website of the maintainer UniData source code
to read and write this fileformat can be obtained. I succeeded in
building the library and building/running all supplied test programs
without errors.
http://www.unidata.ucar.edu/packages/netcdf/
In order to read the data into my Cocoa app I have to acces the library
in my Objective-C code. The problem is that couldn't find how to do
this neatly. I suppose I have to include the entire folders named
"libsrc" and "cxx" into my project. But what statement do I put above
my code to access it? #include "netcdfcpp.h" from "cxx" seemed like a
logical choice to me, but it was generating over 400 error messages!
Amongst others it complained about the absence of iostream.h, which I
could find somewhere on my computer, but it seems like it is
depreciated old code, better not used.
Am I right that I can use C++ in the Objective-C files of Cocoa?
Is it really necessary to include all these files or can I just do
something with "libnetcdf.a" to access the data? I have been searching
on this topic, but couldn't yet find a satisfactory explanation of this
matter. Or does someone very perhaps have a piece of sample code on
this?
Thanks in advance!
Johan Kool
PS Is it clear that I am a newbie? ;-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.