how to read netcdf unsupported datatype variable

17 ビュー (過去 30 日間)
Floyd Yassin
Floyd Yassin 2021 年 6 月 29 日
回答済み: Alan Moses 2021 年 7 月 2 日
I was trying to read one of netcdf varaiable using the code below. And it returns "not a regognized netCDF datatype". I guess it is becaues the data type is text and listed as unsupported dtatype. does anyone now a way around this issue?
FYI, it works fine when I read other variables.
Thanks
station_nameID = netcdf.inqVarID(ncid, 'station_id');
station_nameData = netcdf.getVar(ncid, station_nameID);
Error using netcdf.getVar (line 137)
12 is not a recognized netCDF datatype.

採用された回答

Alan Moses
Alan Moses 2021 年 7 月 2 日
You may try the h5disp or h5read functions. You may also refer to a similar question here that shows the use of these functions.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by