Netcdf on MATLAB 2023b

Hi,

Has anyone tried running CROCO with the MATLAB 2023b (trial) version? There’s a problem recognizing this matlab version when creating a netcdf file. It says “Unrecognized Matlab Version” in the file ‘create_grid.m’ Please let me know if you encountered this problem, and how you solved it. Thanks.

Joseph

Hi,
Ansong

Indeed
Their are issues with MATLAB 2023b/R2024a_Prerelease due to comparability with netcdf_matlab_60. i will suggest you that you downgrade the matlab version. and run croco_tools. I can assure you that we will find some patch to fix this issues soon. or you can use GNU Octave (https://octave.org/).
start.m to oct_start.m
Cheers!
Subhadeep

Hi,

To use GNU Octave you need an older version of Octave, e.g. v4.2.2, one that can load or compile the OctCDF package v 1.1.10

hi
i used octave 4.2.2 version and octcdf 1.1.10, but still got a problem. when i input command make_grid, the erorr “netcdf start+count exceeds dimension bound” was appear. can you help me to fix this, im using windows btw.

thankyou.

Hi,

Please try this in Octave to see if things work well

nc=netcdf(‘a.nc’,‘c’);
close(nc)
exit

and then in the shell
ncdump -h a.nc

you should get something like

netcdf a {
}

1 Like