Hello everyone,
I’m new to the CROCO modelling environment and currently building my first configuration from scratch. I’ve followed the steps so far without issues, but I encountered an error when moving to the topo smoothing stage using the make_grid.py
script.
After loading the topography file (../../DATASETS_CROCOTOOLS/Topo/gebco.nc
), the code crashes with the following message:
Reading topography file: …/…/DATASETS_CROCOTOOLS/Topo/gebco.nc
Exception occurred in traits notification handler for object: <main_window.MainWindow object at 0x7fefea4c2f90>, trait: compute_smooth, old value: , new value: 0
Traceback (most recent call last):
File “…/site-packages/traits/trait_notifiers.py”, line 342, in call
self.handler(*args)
File “…/main_window.py”, line 451, in _compute_smooth_fired
self.compute_smooth_thread.grid_show(smooth=True)
File “…/main_window.py”, line 638, in grid_show
ax.pcolormesh(x_rho, y_rho,np.ma.masked_where(self.outputs.mask_rho>0, self.outputs.mask_rho)
File “…/site-packages/cartopy/mpl/geoaxes.py”, line 318, in wrapper
return func(self, *args, **kwargs)
File “…/site-packages/cartopy/mpl/geoaxes.py”, line 1784, in pcolormesh
args, kwargs = self._wrap_args(*args, **kwargs)
File “…/site-packages/cartopy/mpl/geoaxes.py”, line 1813, in _wrap_args
nrows, ncols = np.asanyarray(args[2]).shape
ValueError: not enough values to unpack (expected 2, got 1)
The only change I made before this happened was to set the minimum depth value from 50 m to 10 m in the interface. All other parameters remained the same.
Any help or guidance would be greatly appreciated.
Thanks in advance!