# NetCDF error

**URL:** <https://discourse.julialang.org/t/netcdf-error/9987>\
**Category:** General Usage\
**Created:** [March 26, 2018, 8:55am UTC](https://discourse.julialang.org/t/netcdf-error/9987 "2018-03-26T08:55:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://discourse.julialang.org/u/nobody)\
**Post date:** [March 26, 2018, 8:55am UTC](https://discourse.julialang.org/t/netcdf-error/9987/1 "2018-03-26T08:55:24Z")

</div>

Hi everyone,

I am currently working on TRMM 3B43 netcdf data ([OPeNDAP Hyrax: Contents of /TRMM\_L3/TRMM\_3B43.7/](http://disc2.gesdisc.eosdis.nasa.gov/opendap/TRMM_L3/TRMM_3B43.7/)). I have downloaded the monthly data and from these, I tried to generate the annual average precipitation. I 've created new netcdf files, one for each year, to where I’m gonna put the annual average precipitation. But, upon writing the data, the netcdf package throws an error:

`ERROR: LoadError: Start + Count exceeds dimension length in dimension lat`

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 26, 2018, 8:59am UTC](https://discourse.julialang.org/t/netcdf-error/9987/2 "2018-03-26T08:59:06Z")

</div>

Please make a minimal example (only include the lines really needed to produce the error, last line will be the error) and post a link to the relevant netcdf file.

---

<div class="post-metadata">

**Author:** ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Post date:** [March 26, 2018, 3:41pm UTC](https://discourse.julialang.org/t/netcdf-error/9987/4 "2018-03-26T15:41:44Z")

</div>

We need credentials for the files. Hence, it’s difficult to help you here unless you provide the file (which might be outside their license).

---

<div class="post-metadata">

**Author:** ![gdkrmr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdkrmr/32/2791_2.png) [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Post date:** [March 26, 2018, 6:33pm UTC](https://discourse.julialang.org/t/netcdf-error/9987/5 "2018-03-26T18:33:51Z")

</div>

From the error message I would say that you are trying to write out of bounds. If your `lat` dimension is 180 long and you start writing at index 140 and try to write 90 values, then you will get an error like this.
