필터 지우기
필터 지우기

how to read netcdf unsupported datatype variable

조회 수: 20 (최근 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 CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by