<?xml version="1.0"?>

<!--
============================================================================================================
=                                           output files definition                                        =
=                                            Define your own filesfor ocean dynamics context               =
=                                         put the variables you want...                                    =
============================================================================================================
    -->
   
    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">
    
      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE.">  <!-- 5d files -->   

        <file id="file31" name_suffix="_bioscalar" description="pisces sms variables" >
          <field field_ref="tdenit"   name="tdenit"    unit="TgN/yr" operation="instant" > tdenit * 14. * 86400. * 365. / 1e12 </field>
          <field field_ref="tnfix"    name="tnfix"     unit="TgN/yr" operation="instant" > tnfix * 14. * 86400. * 365. / 1e12 </field>
          <field field_ref="tcflx"    name="tcflx"     unit="PgC/yr" operation="instant" > tcflx * -1. * 12. * 86400. * 365. / 1e15 </field>
          <field field_ref="tcflxcum" name="tcflxcum"  unit="PgC"    operation="instant" > tcflxcum * -1. * 12. / 1e15 </field>
          <field field_ref="tcexp"    name="tcexp"     unit="PgC/yr" operation="instant" > tcexp * 12. * 86400. * 365. / 1e15 </field>
          <field field_ref="tintpp"   name="tintpp"    unit="PgC/yr" operation="instant" > tintpp * 12. * 86400. * 365. / 1e15 </field>
          <field field_ref="pno3tot"  name="pno3tot"   unit="umolN"  > pno3tot * 16. / 122. * 1e6 </field>
          <field field_ref="ppo4tot"  name="ppo4tot"   unit="umolP"  > ppo4tot * 1. / 122. * 1e6 </field>
          <field field_ref="psiltot"  name="psiltot"   unit="umolC"  > psiltot * 1e6  </field>
          <field field_ref="palktot"  name="palktot"   unit="umolC"  > palktot * 1e6  </field>
          <field field_ref="pfertot"  name="pfertot"   unit="nmolFe" > pfertot * 1e9  </field>
        </file>

      </file_group> 


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

        <file id="file32" name_suffix="_ptrc_T" description="pisces sms variables" >
          <field field_ref="DIC"      />
          <field field_ref="Alkalini" />
          <field field_ref="O2"       />
          <field field_ref="PO4"      />
          <field field_ref="Si"       />
          <field field_ref="Fer"      />
          <field field_ref="NCHL"     />
          <field field_ref="DCHL"     />
          <field field_ref="NO3"      />
        </file>

        <file id="file33" name_suffix="_diad_T" description="additional pisces diagnostics" >
          <field field_ref="Cflx"     />
          <field field_ref="Dpco2"    />
        </file>

      </file_group>

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

        <file id="file34" name_suffix="_ptrc_T" description="pisces sms variables" >
          <field field_ref="DIC"      />
          <field field_ref="Alkalini" />
          <field field_ref="O2"       />
          <field field_ref="CaCO3"    />
          <field field_ref="PO4"      />
          <field field_ref="POC"      />
          <field field_ref="Si"       />
          <field field_ref="PHY"      />
          <field field_ref="ZOO"      />
          <field field_ref="DOC"      />
          <field field_ref="PHY2"     />
          <field field_ref="ZOO2"     />
          <field field_ref="DSi"      />
          <field field_ref="Fer"      />
          <field field_ref="BFe"      />
          <field field_ref="GOC"      />
          <field field_ref="SFe"      />
          <field field_ref="DFe"      />
          <field field_ref="GSi"      />
          <field field_ref="NFe"      />
          <field field_ref="NCHL"     />
          <field field_ref="DCHL"     />
          <field field_ref="NO3"      />
          <field field_ref="NH4"      />
        </file>

        <file id="file35" name_suffix="_diad_T" description="additional pisces diagnostics" >
          <field field_ref="PH"       />
          <field field_ref="PAR"      />
          <field field_ref="PPPHYN"    />
          <field field_ref="PPPHYD"   />
          <field field_ref="PPPHYP"   />
          <field field_ref="PPNEWN"   />
          <field field_ref="PPNEWD"   />
          <field field_ref="PPNEWP"   />
          <field field_ref="PBSi"     />
          <field field_ref="PFeN"     />
          <field field_ref="PFeD"     />
          <field field_ref="PCAL"     />
          <field field_ref="DCAL"     />
          <field field_ref="GRAZ1"    />
          <field field_ref="GRAZ2"    />
          <field field_ref="EPC100"   />
          <field field_ref="EPFE100"  />
          <field field_ref="EPSI100"  />
          <field field_ref="EPCAL100" />
          <field field_ref="Cflx"     />
          <field field_ref="Dpco2"    />
          <field field_ref="Heup"     />
          <field field_ref="Nfix"     />
        </file>
     </file_group>
	
	
      
      <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step 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="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="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>
    



