I want to read .grd file.I used grdread2,arcgridread,grdinfo2,but this all functions are throwing error of undefined function.I also used ncread but it is throwing error which is Error using netcdflib Unable to open file. File may be corrupt or filename may have invalid characters.

 채택된 답변

KSSV
KSSV 2018년 9월 20일

1 개 추천

Try this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/25683-grdread2. I suspect your .grd file is an ascii file. If not working attch your file.

댓글 수: 3

shivani badodiya
shivani badodiya 2018년 9월 20일
I tried this already,but it is not working for me here I am attaching my file,please change the format with .grd after downloading the file.
KSSV
KSSV 2018년 9월 20일
I tried to check with netCDF, mirone, GDAL, GIS softwares with no success. GMT recognized the file. If you know the format of file, you can use fread fundtion of MATLAB. I checked that fread is able to get the file.
shivani badodiya
shivani badodiya 2018년 9월 20일
Thank you so much it is working.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2018년 9월 20일

댓글:

2018년 9월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by