combine 2 netcdf files into one

조회 수: 6 (최근 30일)
Jian Lu
Jian Lu . 2015년 6월 3일
편집: Ashish Uthama . 2015년 6월 3일
I try to combine two netcdf files ( and into one, but the resultant file ( contains all NaN values. The code of mine is:
nccreate('','lat','dimensions',{'s' 56 't' 1}); ncwrite('','lat',lat); info0 = ncinfo('');
nccreate('','lon','dimensions',{'n' 192 't' 1}); ncwrite('','lon',lon); info00 = ncinfo('');
savefile=''; ncwriteschema(savefile,info00); ncwriteschema(savefile,info0);

답변 (1개)

Ashish Uthama
Ashish Uthama 2015년 6월 3일
편집: Ashish Uthama 님. 2015년 6월 3일
ncwriteschema only writes the 'schema',i.e things like variable and dimension definitions. You still need to follow this with an ncwrite to actually write the data.

Community Treasure Hunt

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

Start Hunting!

Translated by