- 积分
- 826
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-10-16
- 最后登录
- 1970-1-1
|
发表于 2018-12-9 12:15:35
|
显示全部楼层
您好楼主,我用你的代码运行了一下程序,它就一直报错说是参数的数目不足,您能帮忙可以看一下吗?
grib=ncgeodataset('G:\月平均\pgbhnl.gdas.201107.grib2');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%time
utc_time=double(grib.data('time'));
Data.UTC=datestr(datenum(['G:\月平均\pgbhnl.gdas.201107.grib2' (end-22:end-15) 'G:\月平均\pgbhnl.gdas.201107.grib2' (end-13:end-10)],'yyyymmddHHSS')+ utc_time/24 ,'dd-mmm-yyyy HH:MM:SS' );
%%%%%%%%%%%%%%%%%%%%%%%%%%%%grid isobaric
Data.isobaric=double(grib.data('isobaric1'))/100;%21 level and convert it into hPa
%%%%%%%%%%%%%%%%%%%%%%%%%%%%grid lat lon
Data.lat=double(grib.data('lat'));
Data.lon=double(grib.data('lon'));
Data.U=squeeze(double(grib.data('u-component_of_wind_isobaric')));%m/s
Data.U=Data.U(1:21,:,:);
Data.V=squeeze(double(grib.data('v-component_of_wind_isobaric')));%m/s
Data.V=Data.V(1:21,:,:);
Data.height=squeeze(double(grib.data(‘height_units'_isobaric')));%
Data.height=Data.heigh(1:21,:,:);
end
错误使用 datestr (line 125)
输入参数的数目不足。 |
|