Problem in reshape my grid file (.grd)

I need help, i need to modelling a flow pyroclastic of a volcano (Chile), i have all the codes, but the code that i have didnt work!. Because (i think) i have de dimensions different. Run well in matlab but im using VolcFlow to modelling and when i put the bottom representation, arrise just one axis (figure)
My codes
fid = fopen('out_20_20.grd');
code = fscanf(fid,'%c',4);
ncol = fread(fid,1,'int16');
nrow = fread(fid,1,'int16');
xmin = fread(fid,1,'float64');
xmax = fread(fid,1,'float64');
ymin = fread(fid,1,'float64');
ymax = fread(fid,1,'float64');
zmin = fread(fid,1,'float64');
zmax = fread(fid,1,'float64');
altitude = fread(fid,'float32');
z = (reshape(altitude,ncol,nrow))';
fclose(fid);
[nrow, ncol]=size(z);

댓글 수: 1

Image Analyst
Image Analyst 2022년 11월 13일
I don't know what VolcFlow is. Looks like a third party program someone wrote in MATLAB. Can you ask the publisher?

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

 채택된 답변

Paul
Paul 2024년 4월 2일

0 개 추천

Hello Enrique, I need to simulate PDC’s as weel with Volcflow, but I have thé the problem. Did you manage to solve the problem, and if so, how? Thank you

댓글 수: 1

Enrique
Enrique 2024년 4월 3일
yes! but no completely, i would like to help you in your proyect, can you write me in mail : enrique97franco@gmail.com
contact me im interested in help you

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 11월 10일

댓글:

2024년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by