# Add several netcdf files of the same dimension

**URL:** <https://forum.cmascenter.org/t/add-several-netcdf-files-of-the-same-dimension/2604>\
**Category:** m3tools\
**Created:** [August 20, 2021, 8:29am UTC](https://forum.cmascenter.org/t/add-several-netcdf-files-of-the-same-dimension/2604 "2021-08-20T08:29:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geek](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@geek](https://forum.cmascenter.org/u/geek)\
**Post date:** [August 20, 2021, 8:29am UTC](https://forum.cmascenter.org/t/add-several-netcdf-files-of-the-same-dimension/2604/1 "2021-08-20T08:29:36Z")

</div>

Is there a tool in ioapi (m3tool) that can add multiple netcdf files of the same dimension?

nc1(four dimensions,6 variables)+nc2(four dimensions,6 variables)+nc3(four dimensions,6 variables)=nc4（four dimensions,6 variables(add same variables)）

Can the professor give me some hints? tks.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [August 20, 2021, 11:23am UTC](https://forum.cmascenter.org/t/add-several-netcdf-files-of-the-same-dimension/2604/2 "2021-08-20T11:23:51Z")

</div>

See [https://cjcoats.github.io/ioapi/AA.html#tools](https://cjcoats.github.io/ioapi/AA.html#tools), particularly  
[_ **m3combo** _](https://cjcoats.github.io/ioapi/M3COMBO.html) which does general linear combinations (of which sums are a special case), and [_ **m3diff** _](https://cjcoats.github.io/ioapi/M3DIFF.html) which does 2-file sums and differences.

---

<div class="post-metadata">

**Author:** ![geek](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@geek](https://forum.cmascenter.org/u/geek)\
**Post date:** [August 20, 2021, 1:17pm UTC](https://forum.cmascenter.org/t/add-several-netcdf-files-of-the-same-dimension/2604/3 "2021-08-20T13:17:26Z")

</div>

That worked， thanks for your response.
