error in merge NC files using easy_NETCDF codes
I am trying to merge 365 NC files (one year images for soil moisture) and I am using the "Easy_NetCDF-1.51" code for merging files, it works but at the last line when run it shows error like"Unrecognized function or variable ‘FUN_nc_merge’.".
previously it showed another error as "too many margins" and I tried to work with less data than 365 but the error is still stable.
how can I merge the files for one year?
the code I am using is as below:
% input_dir: path for the folder containing the files
input_dir = ‘D:uniRS for thesisESA_CCI_SMv07.1combined2019’;
% filelist
filelist = dir(fullfile(input_dir,’*.nc’));
% output filename
output_fn = ‘Merged_Output.nc’;
% name of the demension to be merged.
merge_dim_name = ‘time’;
% compatibility_mode:
% compatibility_mode = 1: write netCDF in ‘CLOBBER’; Compression would be disabled.
% compatibility_mode = 0: write netCDF in ‘NETCDF4’.
compatibility_mode = 0;
strvcat( filelist(:).name )
FUN_nc_merge( input_dir, filelist, output_fn, merge_dim_name, compatibility_mode )
thanks in advance for your help
edithI am trying to merge 365 NC files (one year images for soil moisture) and I am using the "Easy_NetCDF-1.51" code for merging files, it works but at the last line when run it shows error like"Unrecognized function or variable ‘FUN_nc_merge’.".
previously it showed another error as "too many margins" and I tried to work with less data than 365 but the error is still stable.
how can I merge the files for one year?
the code I am using is as below:
% input_dir: path for the folder containing the files
input_dir = ‘D:uniRS for thesisESA_CCI_SMv07.1combined2019’;
% filelist
filelist = dir(fullfile(input_dir,’*.nc’));
% output filename
output_fn = ‘Merged_Output.nc’;
% name of the demension to be merged.
merge_dim_name = ‘time’;
% compatibility_mode:
% compatibility_mode = 1: write netCDF in ‘CLOBBER’; Compression would be disabled.
% compatibility_mode = 0: write netCDF in ‘NETCDF4’.
compatibility_mode = 0;
strvcat( filelist(:).name )
FUN_nc_merge( input_dir, filelist, output_fn, merge_dim_name, compatibility_mode )
thanks in advance for your help
edith I am trying to merge 365 NC files (one year images for soil moisture) and I am using the "Easy_NetCDF-1.51" code for merging files, it works but at the last line when run it shows error like"Unrecognized function or variable ‘FUN_nc_merge’.".
previously it showed another error as "too many margins" and I tried to work with less data than 365 but the error is still stable.
how can I merge the files for one year?
the code I am using is as below:
% input_dir: path for the folder containing the files
input_dir = ‘D:uniRS for thesisESA_CCI_SMv07.1combined2019’;
% filelist
filelist = dir(fullfile(input_dir,’*.nc’));
% output filename
output_fn = ‘Merged_Output.nc’;
% name of the demension to be merged.
merge_dim_name = ‘time’;
% compatibility_mode:
% compatibility_mode = 1: write netCDF in ‘CLOBBER’; Compression would be disabled.
% compatibility_mode = 0: write netCDF in ‘NETCDF4’.
compatibility_mode = 0;
strvcat( filelist(:).name )
FUN_nc_merge( input_dir, filelist, output_fn, merge_dim_name, compatibility_mode )
thanks in advance for your help
edith nc images, merge nc MATLAB Answers — New Questions