How to change output folder?

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

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:

<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.:

<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@" >
3 Likes

Thank you! That helped me a lot!