remove chunkSize while creating a nc file in matlab
1 view (last 30 days)
Show older comments
I am creating a .nc file after processing another file in MATLAB. I want the created .nc file to be of exactly the same format as the original size for which I need Chunk Size and Fill value as '[ ]' .
For that I have disabled the FIll Value and have not mentioned the ChunkSize, but still the created .nc file shows a chunksize of [180,90,6,12]. I need help regarding removing chunking.
catnc = strcat('EDGAR_v4.3.2_LR_try_anth_MISC_201001-201012.nc');
modvv_BC=strcat('BC_flux');
nccreate(catnc,modvv_BC,'datatype','single','Dimensions',{'lon' 360 'lat' 180 'level' 6 'time' 12}, 'FillValue','disable');
ncwriteatt(catnc, modvv_BC, 'long_name', 'flux of BC');
ncwriteatt(catnc, modvv_BC, 'units', 'mcl m-2 s-1');
ncwriteatt(catnc, modvv_BC, 'molar_mass', '12.0100');
0 Comments
Answers (0)
See Also
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!