# ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57

**URL:** <https://forum.croco-ocean.org/t/error-in-nf-read-bry-nf-get-vara-netcdf-error-code-57/7373>\
**Category:** run / config issues\
**Created:** [May 31, 2025, 8:00am UTC](https://forum.croco-ocean.org/t/error-in-nf-read-bry-nf-get-vara-netcdf-error-code-57/7373 "2025-05-31T08:00:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DU\_OCN](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@DU\_OCN](https://forum.croco-ocean.org/u/DU_OCN)\
**Post date:** [May 31, 2025, 8:00am UTC](https://forum.croco-ocean.org/t/error-in-nf-read-bry-nf-get-vara-netcdf-error-code-57/7373/1 "2025-05-31T08:00:12Z")

</div>

Dear All,

I am using recent release croco\_tools-v2.1.0 to make boundary condition and I am able to download data and to make it on our grid by using make\_OGCM\_mercator.m. In the first month I am getting error like below:

Error termination. Backtrace:  
#0 0x7f48cf023960 in ???  
#1 0x7f48cf0244d9 in ???  
#2 0x7f48cf02510f in ???  
#3 0x7f48cf269ec3 in ???  
#4 0x7f48cf2770e2 in ???  
#5 0x7f48cf27a6d1 in ???  
#6 0x7f48cf27ae05 in ???  
#7 0x61d86fa27a37 in ???  
#8 0x61d86f9c5e30 in ???  
#9 0x61d86f9b652e in ???  
#10 0x7f48cec29d8f in \_\_libc\_start\_call\_main  
at …/sysdeps/nptl/libc\_start\_call\_main.h:58  
#11 0x7f48cec29e3f in \_\_libc\_start\_main\_impl  
at …/csu/libc-start.c:392  
#12 0x61d86f9b6554 in ???  
#13 0xffffffffffffffff in ???  
Test croco\_Y2018M01.out  
ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57  
Cause of error: NetCDF: Start+count exceeds dimension bound  
ERROR in get\_bry: cannot read variable ‘vbar\_east’

ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57  
Cause of error: NetCDF: Start+count exceeds dimension bound  
ERROR in get\_bry: cannot read variable ‘u\_east’

ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57  
Cause of error: NetCDF: Start+count exceeds dimension bound  
ERROR in get\_bry: cannot read variable ‘v\_east’

ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57  
Cause of error: NetCDF: Start+count exceeds dimension bound  
ERROR in get\_bry: cannot read variable ‘trc\_east’

ERROR in nf\_read\_bry: nf\_get\_vara netCDF error code = -57  
Cause of error: NetCDF: Start+count exceeds dimension bound  
ERROR in get\_bry: cannot read variable ‘trc\_east’

Month Y2018M01 did not work

Can any one help me to overcome with this problem?  
Many thanks!

---

<div class="post-metadata">

**Author:** ![Tronka](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@Tronka](https://forum.croco-ocean.org/u/Tronka)\
**Post date:** [June 3, 2025, 7:54am UTC](https://forum.croco-ocean.org/t/error-in-nf-read-bry-nf-get-vara-netcdf-error-code-57/7373/2 "2025-06-03T07:54:07Z")

</div>

It has got to do with the writing out of the nc files.  
As you see from the error message, the variables have a size say xi\_rho \* eta\_rho. The values you are trying to write to the variable has the wrong size. Either because it is being sent with the wrong dimension order or simply the wrong dimension (say xi\_rho in place of xi\_v).  
Have you made any changes to the files that came with the download?  
I have documented by experience with this [in this post](https://forum.croco-ocean.org/t/error-code-57-without-parallelisation/7301/7).  
That should hopefully help you
