Exposing vdc creation API?

3 posts / 0 new
Last post
leigh.orf
Exposing vdc creation API?

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

clyne

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

michealwilliam2...
michealwilliam234_663702's picture
With a specific end goal to get creationism instructed in training they should imagine their religious convictions are Dissertation Services quite minimum perhaps legitimate deductively. In the event that they can transform their doctrine into something that resembles a deductively conceivable option clarification, the intelligent upshot is that it won't hurt to show it in science classes.