To my knowledge, all of the Vapor tools for creating VDC files involve conversion from an intermediate format, such as netCDF. I use a homegrown format that is not one of the supported formats, so I have to create netCDF files as an intermediate step, then use the ncdf2vdf command on these files.
I'm wondering whether it's possible to skip the intermediate step. It would save me lots of time if I were able to call (from C, preferably) the routines that generate the VDC files by passing arrays to them (plus perhaps a structure, or metadata that makes up the VDF file). Is this doable?
Leigh
Hi Leigh,
The API is indeed published, and the relevant C++ classes are documented here:
http://docs.software.ucar.edu/vapor/Documentation/2.5.0/doc/library/html...
In your case I'd suggest looking at the "process_volume" function inside of the source code for raw2vdf for an example of how the use the API.
That said, the API will change quite a bit in VAPOR3. Just an FYI so you can decide how much effort to invest. Let us know if you have any trouble.
cheers - jc