<?xml version="1.0"?>

<!--
===================================================================================================
=                                  output files definition                                        =
=                             Define your own files for ocean dynamics                            =
=                                put the variables you want...                                    =
===================================================================================================
-->

<file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">

  <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->

  <file_group id="1h" output_freq="1h" output_level="10" enabled=".TRUE."/> <!-- 1h files -->
  <file_group id="2h" output_freq="2h" output_level="10" enabled=".TRUE."/> <!-- 2h files -->
  <file_group id="3h" output_freq="3h" output_level="10" enabled=".TRUE."/> <!-- 3h files -->
  <file_group id="4h" output_freq="4h" output_level="10" enabled=".TRUE."/> <!-- 4h files -->
  <file_group id="6h" output_freq="6h" output_level="10" enabled=".TRUE."/> <!-- 6h files -->

  <file_group id="1d" output_freq="1d"  output_level="10" enabled=".TRUE."/> <!-- 1d files -->
  <file_group id="5d" output_freq="5d" output_level="10" enabled=".TRUE."/> <!-- 5d files -->

  <file_group id="1m" output_freq="1mo" output_level="10" enabled=".TRUE."> <!-- real monthly files -->

    <file id="file31" name_suffix="_grid_T" description="ocean grid T variables" >

      <field field_ref="e3t" />
      <field field_ref="toce" name="thetao" operation="instant" freq_op="1mo" > @toce_e3t / @e3t </field>
      <field field_ref="soce" name="so"     operation="instant" freq_op="1mo" > @soce_e3t / @e3t </field>
      <field field_ref="sst"  name="tos" />
      <field field_ref="sss"  name="sos" />
      <field field_ref="ssh"  name="zos" />
      <field field_ref="mldkz5" />
      <field field_ref="mldr10_1" />

    </file>

    <file id="file32" name_suffix="_grid_T_inner" description="ocean inner grid T variables" >

      <field field_ref="sbt" />
      <field field_ref="heatc" name="heatc" />
      <field field_ref="saltc" name="saltc" />

    </file>

    <file id="file33" name_suffix="_SBC" description="SBC fields" >

      <field field_ref="empmr"   name="wfo" />
      <field field_ref="precip"  name="precip" />
      <field field_ref="snowpre" name="snowpre" />
      <field field_ref="saltflx" name="sfx" />
      <field field_ref="qsr_oce" name="qsr_oce" />
      <field field_ref="qns_oce" name="qns_oce" />
      <field field_ref="qt_oce"  name="qt_oce" />
      <field field_ref="taum"    name="taum" />
      <field field_ref="wspd"    name="windsp" />

      <field field_ref="runoffs" />
      <field field_ref="fwfisf_cav" />
      <field field_ref="fwfisf_par" />
      <field field_ref="calving_cea" />

    </file>

    <file id="file34" name_suffix="_grid_U" description="ocean grid U variables" >

      <field field_ref="e3u" />
      <field field_ref="uoce" name="uo" operation="instant" freq_op="1mo" > @uoce_e3u / @e3u </field>
      <field field_ref="ssu"  name="uos" />
      <field field_ref="utau" name="tauuo" />

    </file>

    <file id="file35" name_suffix="_grid_V" description="ocean grid V variables" >

      <field field_ref="e3v" />
      <field field_ref="voce"       name="vo" operation="instant" freq_op="1mo" > @voce_e3v / @e3v </field>
      <field field_ref="ssv"        name="vos" />
      <field field_ref="vtau"       name="tauvo" />
      <field field_ref="vocetr_eff" name="vocetr" />
      <field field_ref="vocet"      name="vocet" />

    </file>

    <file id="file36" name_suffix="_grid_W" description="ocean grid W variables" >
      <field field_ref="e3w" />
      <field field_ref="woce" name="wo" />
    </file>

    <file id="file37" name_suffix="_diaptr2D" description="zonal mean variables" >

      <field field_ref="sophtove"    name="htovovrt"      grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopstove"    name="sltovovrt"     grid_ref="grid_znl_T_2D"  />
      <field field_ref="sophtgyre"   name="htovgyre"      grid_ref="grid_znl_T_2D"  > sophtvtr - sophtove  </field>
      <field field_ref="sopstgyre"   name="sltogyre"      grid_ref="grid_znl_T_2D"  > sophtvtr - sopstove  </field>
      <field field_ref="sophtbtr"    name="htbtr"         grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopstbtr"    name="sltbtr"        grid_ref="grid_znl_T_2D"  />
      <field field_ref="sophtadv"    name="htadv"         grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopstadv"    name="sltadv"        grid_ref="grid_znl_T_2D"  />
      <field field_ref="sophtldf"    name="htldf"         grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopstldf"    name="sltldf"        grid_ref="grid_znl_T_2D"  />
      <field field_ref="sophtvtr"    name="hfbasin"       grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopstvtr"    name="sltbasin"      grid_ref="grid_znl_T_2D"  />
      <field field_ref="sophteiv"    name="hfbasinpmadv"  grid_ref="grid_znl_T_2D"  />
      <field field_ref="sopsteiv"    name="sltbasinpmadv" grid_ref="grid_znl_T_2D"  />

    </file>

  </file_group>

  <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
  <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
  <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
  <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->

  <file_group id="1y"  output_freq="1y"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
  <file_group id="2y"  output_freq="2y"  output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
  <file_group id="5y"  output_freq="5y"  output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
  <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->

</file_definition>

