TDS Configuration Catalogs

官网:
TDS Configuration Catalogs
THREDDS Data Server Administration Tutorial
Using NcML in TDS

本文主要记录thredds目录配置
在这里插入图片描述

threddsConfig.cml开放subset服务,allow标签改为true:
在这里插入图片描述

  <!--
  The Netcdf Subset Service is off by default.
-->
  <NetcdfSubsetService>
    <allow>true</allow>
    <scour>10 min</scour>
    <maxAge>-1 min</maxAge>
  </NetcdfSubsetService>

总目录:catalog.xml
在最后面添加 catalogRef在这里插入图片描述

[root@thredds-54d579766f-48d7l thredds]# cat catalog.xml
<?xml version="1.0" encoding="UTF-8"?>
<catalog name="THREDDS Server Default Catalog : You must change this to fit your server!"
         xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0
           http://www.unidata.ucar.edu/schemas/thredds/InvCatalog.1.0.6.xsd">

  <service name="all" base="" serviceType="compound">
    <service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
    <service name="dap4" serviceType="DAP4" base="/thredds/dap4/" />
    <service name="http" serviceType="HTTPServer" base="/thredds/fileServer/" />
    <!--service name="wcs" serviceType="WCS" base="/thredds/wcs/" /-->
    <!--service name="wms" serviceType="WMS" base="/thredds/wms/" /-->
    <service name="ncss" serviceType="NetcdfSubset" base="/thredds/ncss/" />
  </service>

  <service name="dap" base="" serviceType="compound">
    <service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
    <service name="dap4" serviceType="DAP4" base="/thredds/dap4/" />
  </service>

  <datasetRoot path="test" location="content/testdata/" />

  <dataset name="Test Single Dataset 1" ID="testDataset"
           serviceName="dap"  urlPath="test/testData.nc" dataType="Grid"/>

  <datasetScan name="HYCOM Dataset" ID="testDatasetScan"
               path="testAll" location="content/hycom">
    <metadata inherited="true">
      <serviceName>all</serviceName>
      <dataType>Grid</dataType>
    </metadata>
    <filter>
      <include wildcard="*.nc"/>
    </filter>
  </datasetScan>
  
  <catalogRef xlink:title="Aggregation Hycom Wind Catalog" xlink:href="aggHycomWindCatalog.xml" name=""/>
  <catalogRef xlink:title="Aggregation Hycom UV3Z Catalog" xlink:href="aggHycomUv3zCatalog.xml" name=""/>
  <catalogRef xlink:title="Aggregation Hycom TS3Z Catalog" xlink:href="aggHycomTs3zCatalog.xml" name=""/>

聚合数据目录1:aggHycomTs3zCatalog.xml
location填容器内的路径
在这里插入图片描述

<catalog xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink" name="TDS workshop test 2" version="1.0.2">
        <service name="all" base="" serviceType="compound">
                <service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
                <!--    <service name="dap4" serviceType="DAP4" base="/thredds/dap4/" />-->
                <service name="ncss" serviceType="NetcdfSubset" base="/thredds/ncss/" />
        </service>

        <dataset name="Hycom ts3z 201901" ID="HycomTs3z201901" urlPath="HYCOM/ts3z/201901-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201901-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 201902" ID="HycomTs3z201902" urlPath="HYCOM/ts3z/201902-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201902-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 201903" ID="HycomTs3z201903" urlPath="HYCOM/ts3z/201903-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201903-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
<dataset name="Hycom ts3z 201904" ID="HycomTs3z201904" urlPath="HYCOM/ts3z/201904-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201904-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 201905" ID="HycomTs3z201905" urlPath="HYCOM/ts3z/201905-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201905-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 201906" ID="HycomTs3z201906" urlPath="HYCOM/ts3z/201906-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201906-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 201907" ID="HycomTs3z201907" urlPath="HYCOM/ts3z/201907-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201907-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 201908" ID="HycomTs3z201908" urlPath="HYCOM/ts3z/201908-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201908-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 201909" ID="HycomTs3z201909" urlPath="HYCOM/ts3z/201909-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201909-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
<dataset name="Hycom ts3z 201910" ID="HycomTs3z201910" urlPath="HYCOM/ts3z/201910-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201910-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 201911" ID="HycomTs3z201911" urlPath="HYCOM/ts3z/201911-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201911-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 201912" ID="HycomTs3z201912" urlPath="HYCOM/ts3z/201912-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/201912-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 202001" ID="HycomTs3z202001" urlPath="HYCOM/ts3z/202001-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202001-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
<dataset name="Hycom ts3z 202002" ID="HycomTs3z202002" urlPath="HYCOM/ts3z/202002-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202002-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202003" ID="HycomTs3z203003" urlPath="HYCOM/ts3z/202003-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202003-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 202004" ID="HycomTs3z202004" urlPath="HYCOM/ts3z/202004-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202004-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202005" ID="HycomTs3z202005" urlPath="HYCOM/ts3z/202005-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202005-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202006" ID="HycomTs3z202006" urlPath="HYCOM/ts3z/202006-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202006-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202007" ID="HycomTs3z202007" urlPath="HYCOM/ts3z/202007-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202007-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 202008" ID="HycomTs3z202008" urlPath="HYCOM/ts3z/202008-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202008-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202009" ID="HycomTs3z202009" urlPath="HYCOM/ts3z/202009-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202009-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202010" ID="HycomTs3z202010" urlPath="HYCOM/ts3z/202010-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202010-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
        <dataset name="Hycom ts3z 202011" ID="HycomTs3z202011" urlPath="HYCOM/ts3z/202011-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202011-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>

        <dataset name="Hycom ts3z 202012" ID="HycomTs3z202012" urlPath="HYCOM/ts3z/202012-ts3z.nc">
                <serviceName>all</serviceName>
                <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
                        <aggregation dimName="time" type="joinExisting" recheckEvery="4 sec">
                                <scan location="/opt/tomcat/apache-tomcat-8.5.65/content/thredds/public/hycom/ts3z/202012-ts3z" suffix=".nc" subdirs="false"/>
                        </aggregation>
                </netcdf>
        </dataset>
</catalog>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值