# OCP-Tool to generate OASIS3MCT input files and modify OIFS & runoff\_mapper input files for coupled simulations

**URL:** <https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173>\
**Category:** OpenIFS\
**Tags:** openifs-configuration-and-namelists, openifs-40r1, openifs-coupling\
**Created:** [28 August 2019 10:55 UTC](https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173 "2019-08-28T10:55:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Streffing](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/j/d26b3c/32.png) [@Jan\_Streffing](https://forum.ecmwf.int/u/Jan_Streffing)\
**Post date:** [28 August 2019 10:55 UTC](https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173/1 "2019-08-28T10:55:35Z")

</div>

I'd like to share a v0.1 of something I called OpenIFS Coupling Preparation Tool (ocp-tool).

I combined some of Joakims script to generate OASIS3MCT input files for a given OpenIFS grid with my script to modify OpenIFS input files (land sea mask and soil type) as well as my script to modify the EC-Earth runoff-mapper map into a small python program. I think it is most useful for removing marginal sea basins from the land sea mask of all files sets at once and generates a set of input files that fit together:

OASIS3MCT areas.nc, masks.nc and grids.nc files

ICMGG????INIT files

runoff-maps.nc

Feel free to use and contribute:

[https://github.com/JanStreffing/ocp-tool](https://github.com/JanStreffing/ocp-tool)

---

<div class="post-metadata">

**Author:** ![Marcus\_Koehler](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/marcus_koehler/32/1000_2.png) [@Marcus\_Koehler](https://forum.ecmwf.int/u/Marcus_Koehler)\
**Post date:** [28 August 2019 16:55 UTC](https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173/2 "2019-08-28T16:55:17Z")

</div>

Thank you very much for sharing this, Jan.

Marcus

---

<div class="post-metadata">

**Author:** ![Joakim\_Kjellsson](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@Joakim\_Kjellsson](https://forum.ecmwf.int/u/Joakim_Kjellsson)\
**Post date:** [16 October 2019 11:03 UTC](https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173/3 "2019-10-16T11:03:08Z")

</div>

Many thanks, Jan.&nbsp;

I'll give this a try when I need to generate some grid info for 43r3 coupled runs.&nbsp;

Cheers  
 Joakim&nbsp;

---

<div class="post-metadata">

**Author:** ![Jan\_Streffing](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/j/d26b3c/32.png) [@Jan\_Streffing](https://forum.ecmwf.int/u/Jan_Streffing)\
**Post date:** [16 October 2019 13:40 UTC](https://forum.ecmwf.int/t/ocp-tool-to-generate-oasis3mct-input-files-and-modify-oifs-runoff-mapper-input-files-for-coupled-simulations/12173/4 "2019-10-16T13:40:45Z")

</div>

I updated the tool to work with TCO grids. So far only Tco159 and Tco319 are supported.

Cheers, Jan
