How to open .CDF files on iOS

To open .CDF files on iOS, iOS typically won’t open NASA .cdf data files directly in a standard viewer; transfer the file to a desktop system and open it with MATLAB, Python (SpacePy/CDFlib), or Wolfram Language.

Step-by-step instructions

  1. iOS typically won’t open NASA .cdf data files directly in a standard viewer; transfer the file to a desktop system and open it with MATLAB, Python (SpacePy/CDFlib), or Wolfram Language.

Alternative methods

  • Open .CDF in a browser-based viewer if desktop apps fail.
  • Try opening .CDF on iOS with a secondary app to rule out app-specific issues.
  • Convert .CDF only with trusted tools when direct opening is not possible.

Common issues

The file won’t open or looks like “unknown/unsupported format”

Many programs do not support NASA CDF, and “.cdf” can also be used for unrelated file types. If the tool you chose doesn’t explicitly support NASA CDF, it may fail immediately.

  1. Try a tool that explicitly supports NASA CDF (e.g., MATLAB CDF functions, Wolfram Language NASACDF import, or Python with SpacePy/CDFlib).
  2. If it still fails, confirm the file is actually a NASA CDF (not just a .cdf extension used by something else) by checking the source that provided it and trying NASA CDF-focused tooling.

You can open the file but don’t know what variables mean

CDF files often store multiple variables plus metadata; without inspecting attributes and variable descriptions, the data can be hard to interpret.

  1. Inspect metadata first (for MATLAB, start with functions like cdfinfo; in Python, list variables and their attributes using your CDF library).
  2. Look for variable attributes (units, descriptions, fill values) before plotting or exporting.

Your script reads the file but data values look wrong (fill values, time variables, or scaling)

Scientific CDF datasets commonly include fill values for missing data and may store time in specific time representations; misinterpreting these can make plots or statistics look incorrect.

  1. Check the variable attributes/metadata for fill values and time-related attributes before analysis.
  2. Export or transform data using a CDF-aware tool (the NASA CDF site lists utilities such as CDFexport) to verify your interpretation.

Confusion between single-file and other CDF storage/layout options

NASA’s documentation discusses different storage options/layouts; most users encounter a single .cdf container, but documentation details can be confusing when troubleshooting.

  1. Treat the .cdf you received as the main container file and consult the official user guide if you suspect a nonstandard layout.
  2. If the dataset provider mentions a specific CDF layout/storage option, follow their instructions and verify you have all required files.

Security note

.cdf (NASA CDF) is a data container, not a script or macro format, but it can still be risky to open unknown files because complex scientific parsers can have bugs; prefer well-maintained libraries and updated analysis tools.

Back to .CDF extension page