<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">

  <!-- UGRID compliance - 2D triangular mesh topology: https://github.com/ugrid-conventions/ugrid-conventions -->
  <variable name="nv" >
    <attribute name="cf_role" value="face_node_connectivity"/>
    <attribute name="start_index" type="int" value="1"/>
  </variable>

  <variable name="fvcom_mesh" shape="" type="int">
    <attribute name="cf_role" value="mesh_topology"/>
    <attribute name="topology_dimension" type="int" value="2"/>
    <attribute name="node_coordinates" value="lon lat"/>
    <!--<attribute name="face_coordinates" value="lonc latc"/>-->
    <attribute name="face_node_connectivity" value="nv"/>
  </variable>

  <!-- UGRID variables -->
  <variable name="zeta">
    <attribute name="mesh" value="fvcom_mesh"/>
    <attribute name="location" value="node"/>
  </variable>

  <variable name="u">
    <attribute name="standard_name" value="eastward_sea_water_velocity"/>
    <attribute name="mesh" value="fvcom_mesh"/>
    <attribute name="location" value="face"/>
  </variable>

  <variable name="v">
    <attribute name="standard_name" value="northward_sea_water_velocity"/>
    <attribute name="mesh" value="fvcom_mesh"/>
    <attribute name="location" value="face"/>
  </variable>

  <!-- Aggregation -->
  <aggregation type="union">
    <netcdf location="../fvcom_dep_grd.nc"></netcdf>
    <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
      <aggregation dimName="time" type="joinExisting">
        <scan location="Output/" suffix=".nc" subdirs="true"/>
      </aggregation>
    </netcdf>
  </aggregation>

</netcdf>

