Unable to read the .grd file using grdread2.m function
Show older comments
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 Comments
Srivardhan Gadila
on 4 Oct 2021
The function grdread2 (https://mathworks.com/matlabcentral/fileexchange/25683-grdread2) is one of the several submissions in MATLAB File Exchange on MATLAB Central, which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Hence I would suggest to contact the author of this submission directly for any questions related to it.
KSSV
on 4 Oct 2021
You have not attched the said file.
Aarti Soni
on 31 May 2023
I am having the same problem, can anyone help?
Accepted Answer
More Answers (0)
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!