Tech Briefs

Kameleon-Plus: Data Access, Interpolation, and Fieldline Tracing Library for Space Weather Simulation Data

This library provides an abstraction layer that an end user can access, interpolate, and perform fieldline integration for space weather simulation data. Normally, accessing and interpolating space weather simulation data requires knowledge of the model-specific data formats, spatial and temporal grids, coordinate transformations, and units conversions. This library handles all of that for the user, allowing the user to use simple standard calls to perform the same action across models. The fieldline tracer lets users perform fieldline integration without needing a file reader. The Kameleon-Plus library also abstracts out the file format, allowing several standardized file formats to be used, instead of the model specific binary files.

This is a library written in C++, but also has Java, C, Fortran, and Python wrappers to use in those languages. This library provides a simplified, object-oriented interface to access space weather simulation data. It provides an abstraction layer to hide the complexity of the underlying data, and calculates interpolated values (using trilinear interpolation) for both base and derived variables. It also has a fieldline tracer component, performing 4th order Runge-Kutta integration in 3D vector fields in any model supported by the interpolation component of Kameleon-Plus.

This library allows interpolation on derived variables — those that do not exist in the data but can be calculated from base variables. Variables can be loaded and unloaded by the user, minimizing memory usage when opening and processing very large data files.

This work was done by David Berrios, Marlo Maddox, and Lutz Rastaetter of Goddard Space Flight Center. For further information, contact the Goddard Technology Transfer Office at (301) 286-5810. GSC-16379-1