Unable to read the .grd file using grdread2.m function
12 ビュー (過去 30 日間)
古いコメントを表示
I am trying to read the attached 'file1.GRD' file using the code below. The function 'grdread2.m' is downloaded from MATLAB file exchange, as recommended in one fo the previous posts.
filename = 'file1.GRD';
[x,y,z] = grdread2(filename);
However, it is giving me errors listed below. Could someone help me?
Error using netcdf.open (line 52)
Could not open file 'Mintemp_MinT_2019.grd'.
Error in grdread2 (line 61)
ncid = netcdf.open(file, 'NC_NOWRITE');
Error in ReadnplotGRD (line 2)
[x,y,z] = grdread2(filename);
4 件のコメント
採用された回答
SKP
2023 年 6 月 1 日
編集済み: SKP
2023 年 6 月 1 日
3 件のコメント
Aarti Soni
2023 年 6 月 7 日
hello @SKP
for 0.25 deg rainfall data i have used reshape function as
rainfall = reshape(rf, 135,129); (vector size = 17415*1)
it is working properly but for temperature data, how can I create matrix as it is showing on website that data is arranged into 31 X 31
thanks.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!