fengweiigg / GRACE_Matlab_Toolbox

GRACE_Matlab_Toolbox
GNU General Public License v3.0
61 stars 36 forks source link

gmt_readgsm Not working because of textread #10

Open hamidg47 opened 1 year ago

hamidg47 commented 1 year ago

GRACE_Matlab_Toolbox_preprocessing_core('GMT_Control_File_swenson.txt')

Error using dataread File not found or permission denied.

Error in textread (line 171) [varargout{1:nlhs}]=dataread('file',varargin{:}); %#ok

Error in gmt_readgsm (line 114) [~, l, m, Clm, Slm, Clm_sigma, Slm_sigma] = textread(strcat(dir_in,file_name),'%s %u %u %f %f %f %f %*[^\n]','headerlines',head_index);

Error in GRACE_Matlab_Toolbox_preprocessing_core (line 152) [cs(ii,:,:),cs_sgi(ii,:,:),int_year(ii),int_month(ii),time(ii)] = gmt_readgsm(dir_in,file_name{ii},lmax,'GRACE');

whuzhangyu commented 1 year ago

The L2 files are not found. Please remeber to change the file paths in your 'GMT_Control_File_swenson.txt' file to your situation. If the error persists, please paste the content of your 'GMT_Control_File_swenson.txt' file here to diagnose.