#Matlab run cdf files software#
The basic component of CDF is a software programming interface that is a device-independent view of the CDF data model. Hence the specification focuses on an API rather than on organization of data in files. APIs in Fortran and C are available for all versions, in Java for version 2.7 and up.ĭata documentation (quality, provenance, etc.)Ĭapabilities for embedding user documentation for the dataset as a whole or for particular elements through a data dictionary can support documentation of precision, provenance, etc.ĬDF is designed to support multi-dimensional data. The structure of CDF allows one to define an unlimited number of variables completely independent (loosely coupled) of one another and disparate in nature, a group of variables that illustrate a strong dependency (tightly coupled) on one another or both simultaneously.Ĭompared to HDF format, CDF permitted cross-linking data from different instruments and spacecraft in ISTP with one development effort (according to ).įile type signifiers and format identifiers The CDF structure is based on variable definitions (name, data type, number of dimensions, sizes, etc.) where a collection of data elements is defined in terms of a variable. In 2002, the CDF office developed an XML-based markup language called CDF Markup Language (CDFML) to describe CDF data and metadata. Translators among various data formats, including CDF are available at ĬDF was designed and developed in 1985 by the National Space Science Data Center (NSSDC) at NASA/GSFC. CDF was originally written in FORTRAN and only ran in VAX/VMS environments.ĬDF V3.0 was released on February 10, 2005. V3.0 is backward compatible with CDF V2.7, V2.6, and V2.5, but not vice versa. Libraries for CDF 3.0.0 and later will read a file that was created with CDF 2.5, 2.6, or 2.7 library, and save the file in the version that was originally created under (not 3.0). A file created from scratch with CDF 3.0.0 or later will be stored in the new format. The 3.0 format is incompatible with the previous versions of the CDF library. Ī probable cause for the error in MATLAB CDFLIB functions comes from the TT2000 datatype that is used for the epoch variable in MAVEN files.As of December 2021, the latest version of the CDF library is 3.8.1. With SPDF version of CDF routines you would get the correct output: > mvninfo = spdfcdfinfo('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf')įilename: 'mvn_lpw_l2_lpnt_20180814_v03_r02.cdf'Īnd spdfcdfread returns the data as a MATLAB array > mvndata = spdfcdfread('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf') With MATLAB provided CDFLIB running on MATLAB 2017a (9.2.0) you get > cdfinfo('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf') The version of cdflib that comes with MATLAB does not support some of the features used in MAVEN files. The Installation instructions are fairly straightforward and there is little that can be added to it.
#Matlab run cdf files for free#
This version of the library is provided for free and can be downloaded directly from SPDF. To read the data from NASA Space Physics Data Facility (SPDF) you are encouraged to use the CDF handling library from SPDF.