Accessing .cdf files

1 view (last 30 days)
Ahmed Abdulla
Ahmed Abdulla on 25 May 2021
Commented: Ahmed Abdulla on 25 May 2021
I have downloaded some space science data from the following link,however, the file format is .cdf and I have no experience with such file format. I have tried both cdflib.open() and cdfread() with no luck. Any help is appreciated
  2 Comments
per isakson
per isakson on 25 May 2021
Did you try cdfinfo()?
Ahmed Abdulla
Ahmed Abdulla on 25 May 2021
yes with no luck

Sign in to comment.

Accepted Answer

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 25 May 2021
Hi,
You would need additional patch installed to read .cdf extension files. Here is the source:
Good luck
  1 Comment
Ahmed Abdulla
Ahmed Abdulla on 25 May 2021
I have looked into this solution, however I am not sure where the downloaded patch file should go (its currently in my downloads file) and I also gt stuck in the following step because im not sure where Matlab's environment variables are:
"If you have downloaded the leap second table, then set the environment variable CDF_LEAPSECONDSTABLE to the table.set CDF_LEAPSECONDSTABLE='<patch_install_dir>\CDFLeapSeconds.txt'
This table will be used, instead of the hard-coded one embedded in the released library. Not setting the environment variable will result in the use of the table from the library. The step is necessary when the leap second table is different from the one in the library. Need to set the environment variable before running CDF modules under MATLAB."

Sign in to comment.

More Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!