我无法使用Matlab的 cdfread 函数读取'.cdf'文件。我也尝试了 netcdf 。文件'mvn_lpw_l2_lpnt_20180814_v03_r02.cdf'可以在此处找到:CDF文件。
我使用的是Matlab R2015a(版本8.5)。
请给予帮助,谢谢。
我使用的是Matlab R2015a(版本8.5)。
请给予帮助,谢谢。
>> cdfinfo('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf')
Error using cdflibmex
33 is not a recognized DATATYPE mode.
[... stack trace ...]
>> data = cdfread('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf')
Error using cdflibmex
33 is not a recognized DATATYPE mode.
[... stack trace ...]
>> mvninfo = spdfcdfinfo('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf')
mvninfo =
struct with fields:
Filename: 'mvn_lpw_l2_lpnt_20180814_v03_r02.cdf'
FileModDate: '01-Jan-2019 03:18:45'
FileSize: 2579209
Format: 'CDF'
FormatVersion: '3.6.3'
FileSettings: [1×1 struct]
Subfiles: {}
Variables: {7×12 cell}
GlobalAttributes: [1×1 struct]
VariableAttributes: [1×1 struct]
LibVersion: '3.7.0'
PatchVersion: '3.7.0.0'
而 spdfcdfread
会将数据作为 MATLAB 数组返回。
>> mvndata = spdfcdfread('mvn_lpw_l2_lpnt_20180814_v03_r02.cdf')
mvndata =
1×7 cell array
Columns 1 through 3
[17532×10 single] [17532×1 double] [17532×1 double]
Columns 4 through 6
[17532×10 single] [17532×10 single] [17532×1 single]
Column 7
[17532×1 single]
data epoch time_unix ddata_lo ddata_up flag info
________ ________ _________ ________ ________ ________ ________
'single' 'tt2000' 'double' 'single' 'single' 'single' 'single'
cdfinfo
函数打印这个文件的什么信息?cdfread
报告了什么错误? - Dima Chubarov