필터 지우기
필터 지우기

nccreate: error with "unlimited" dimension

조회 수: 1 (최근 30일)
Simon Lind
Simon Lind 2015년 8월 26일
댓글: Ashish Uthama 2015년 8월 27일
Please
I'm trying to export a 3D (time x latitude x longitude) matrix into a netcdf file by using nccreate. The time dimension has to be "UNLIMITED" because of climate model input format. After using "inf" for the time dimension as
nccreate([Path filename '.nc'],filename,'Dimensions',{'time',inf,'lat',size(Data,2),'lon',size(Data3)},'Format','classic');
I got the following error
Error using netcdflib
The NetCDF library encountered an error during execution of 'open' function - 'Unknown file format
(NC_ENOTNC)'.
I'm using a R2014a version
thank you in advance
Carlo
  댓글 수: 1
Ashish Uthama
Ashish Uthama 2015년 8월 27일
Carlo, a full runnable reproduction step would help.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by