使用matlab读取nc文件

读入数据

在这里插入图片描述

ncdisp('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc');     %读取文件
%读取变量
lat=ncread('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc','lat'); 
lon=ncread('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc','lon');
lwe_thickness=ncread('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc','lwe_thickness');
time_bounds=ncread('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc','time_bounds');
time=ncread('H:\nc\CSR_GRACE_GRACE-FO_RL06_Mascons_all-corrections_v02.nc','time');

猜你喜欢

转载自blog.csdn.net/Matlabonly/article/details/113703352