spacepy.datamodel.toCDF

spacepy.datamodel.toCDF(fname, SDobject, **kwargs)[source]

Create a CDF file from a SpacePy datamodel representation

Parameters
fnamestr

Filename to write to

SDobjectspacepy.datamodel.SpaceData

SpaceData with associated attributes and variables in dmarrays

Returns
None
Other Parameters
skeletonstr (optional)

create new CDF from a skeleton file (default ‘’)

flattenbool (optional)

flatten incoming datamodel - if SpaceData objects are nested (default False)

overwritebool (optional)

allow overwrite of an existing target file (default False)

autoNRVbool (optional)

attempt automatic identification of non-record varying entries in CDF

backwardbool (optional)

create CDF in backward-compatible format (default is v3+ compatibility only)

TT2000bool (optional)

write variables beginning with ‘Epoch’ as datatype CDF_TT2000 (default is automatic selection of EPOCH or EPOCH16)

verbosebool (optional)

verbosity flag