========= Hi, I’m new using matlab and trying running make_ERA5 I have this error:
NetCDF file not opened: …/CROCO/croco_tools/CROCO_FILES/croco_blk_ERA5_Y2011M10.nc
Unable to perform assignment because brace indexing is not supported for variables of this type.
Error in create_bulk (line 61)
nw{‘bulk_time’} = ncdouble(‘bulk_time’);
Error in make_ERA5 (line 174)
create_bulk(blkname,grdname,CROCO_title,time,0);
=========Then, checking from line 61
- % Create dimensions
- %
- nw(‘xi_rho’) = Lp;
- nw(‘eta_rho’) = Mp;
- nw(‘xi_psi’) = L;
- nw(‘eta_psi’) = M;
- nw(‘xi_u’) = L;
- nw(‘eta_u’) = Mp;
- nw(‘xi_v’) = Lp;
- nw(‘eta_v’) = M;
- nw(‘bulk_time’) = 0;
- %
- % Create variables and attributes
- %
- nw{‘bulk_time’} = ncdouble(‘bulk_time’);
- nw{‘bulk_time’}.long_name = ncchar(‘bulk formulation execution time’);
- nw{‘bulk_time’}.long_name = ‘bulk formulation execution time’;
- nw{‘bulk_time’}.units = ncchar(‘days’);
- nw{‘bulk_time’}.units = ‘days’;
- nw{‘bulk_time’}.cycle_length = bulkc;
============
Do you have any idea why I can’t add attributes?
Could it be for the matlab version? R2023a
Thanks. Carolina