# How to change output folder?

**URL:** https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422
**Category:** Uncategorized
**Tags:** XIOS
**Created:** [11 January 2023 12:16 UTC](https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422 "2023-01-11T12:16:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![avelina](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/avelina/32/140_2.png) [@avelina](https://nemo-ocean.discourse.group/u/avelina)
#### Post date: [11 January 2023 12:16 UTC](https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422/1 "2023-01-11T12:16:09Z")

</div>

Hello!  
I want to change output directory of calculated model data.  
NEMO calculations are saved to a folder where we have our working namelists. I want them to be saved in another disk (folder). How to do it?  
Please, help me!

Avelina

---

<div class="post-metadata">

### Author: ![smasson](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@smasson](https://nemo-ocean.discourse.group/u/smasson)
#### Post date: [12 January 2023 08:35 UTC](https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422/2 "2023-01-12T08:35:58Z")

</div>

You just have to modify the value of the attribute `name` in the `file_definition` in the files `file_def_nemo-*.xml`.

For example, to output ocean NetCDF files in the directory `AAA`, you must specify in `file_def_nemo-oce.xml`:

```xml
<file_definition type="one_file" name="AAA/@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">

```

Note that, by default, all NetCDF files share the same name prefix, defined in `file_definition` but you can specify a different name (and/or a different directory) for each NetCDF file. e.g.:

```xml
<file id="file11" name_suffix="_grid_T" description="ocean T grid variables" name="TTT/@expname@_@freq@_@startdate@_@enddate@" >
...
<file id="file12" name_suffix="_grid_U" description="ocean U grid variables" name="UUU/@expname@_@freq@_@startdate@_@enddate@" >

```

---

<div class="post-metadata">

### Author: ![avelina](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/avelina/32/140_2.png) [@avelina](https://nemo-ocean.discourse.group/u/avelina)
#### Post date: [13 January 2023 14:32 UTC](https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422/3 "2023-01-13T14:32:49Z")

</div>

Thank you! That helped me a lot!

---

<div class="post-metadata">

### Author: ![smasson](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@smasson](https://nemo-ocean.discourse.group/u/smasson)
#### Post date: [13 January 2023 15:49 UTC](https://nemo-ocean.discourse.group/t/how-to-change-output-folder/422/4 "2023-01-13T15:49:52Z")

</div>


