Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.




Data Format Translation Tools

Converting HDF4, HDF5, FITS, netCDF, Json to CDF

The CDF office has developed a set of the data format translators, which users can use to translate files in netCDF (Version 4 with limited data types), FITs, HDF4 and HDF5 (not an efficient tool) to CDF. The data translation tools are available for download.

As for the translation from HDF4 to HDF5, the NCSA Hierarchical Data Format (HDF) office has developed a tool that converts a HDF4 file to HDF5, and this tool (h4toh5) is available from the HDF home page.

Conversion programs available that will convert non-CDF files into CDF files or vice versa

Below is a list of the data translations (linked or made from CDF V3.9.1) that are currently available:

Individual Translators Download

Most of the translators are available either in binary or source code.

Source Code Download

If you would like to have a copy of any of the translators listed below installed on your local machine or desktop, please download the translator(s) of interest and follow the instructions in the README.install or INSTALL file.

Pre-Built binary Executables

The table listed below is available for download. Please contact us if you need pre-built binary for any other platforms that are not included.

For Unix-based systems, the translator is packaged as a compressed file. You need to run Unix’s tar command something this: tar -zxvt xxxxx.tar.gz where xxxxx.tar.gz is the compressed download to extract the files. Before you run the application, please update your PATH environment variable to include the directory that has the extracted translator.

Note: CDF-to-netCDF and netCDF-to-CDF converters for Windows are combined into a single .zip file.

Linux (Intel)Mac OS X (Intel/ARM)Windows
CDF-to-netCDFDownloadDownloadDownload
netCDF-to-CDFDownloadDownloadDownload
CDF-to-FITSDownloadDownloadDownload
FITS-to-CDFDownloadDownloadDownload
HDF4-to-CDFDownloadDownloadDownload
CDF-to-PDS3DownloadDownloadDownload

If you have any questions or encounter problems, please send an email to cdfsupport and we’ll respond as soon as possible.

Creating CDF-A files for archiving at Planetary Data System (PDS)

If you are looking to make PDS4 files solely for archiving, it would be easier and more practical to submit CDF-A files to PDS with PDS labels, following the guidance at https://pds.nasa.gov/datastandards/documents/archiving/Guide-to-Archiving-CDF-Files-in-PDS4-v7.pdf.

Assuming the CDFs already have good metadata following the ISTP Guidelines, you only need to run the cdfconvert command to make a CDF-A file acceptable to PDS, and the docgen command to make the PDS label file.

Use the commands in the PDF

There’s a PDS CDF checker

PDS white paper on CDF-A

ESA’s PDS doc, see section 11.2 for CDF-A

docgen for CDF