官网:
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>