Basic threddsConfig.xml

TDS Configuration File threddsConfig.xml

The TDS configuration file (content/thredds/threddsConfig.xml) allows the TDS administrator to set a number of parameters that control the behavior of the TDS. Most of these parameters will be set with reasonable default values. However, a number of them allow you to describe your server, provide contact information, and change the "theme" of server-generated HTML pages, so unless you want your server to be called "Test TDS", maintained by Support at "Unidata" with contact email support-thredds@unidata.ucar.edu (please, please say that you do not want this!), then you will need to change some of these settings.

Server Information

Information describing your TDS installation and providing contact information is configured in the serverInformation element of the TDS configuration file. This includes:

Here is what the default version of the serverInformation element looks like:

<serverInformation>
  <name>Initial TDS Installation</name>
  <logoUrl>threddsIcon.gif</logoUrl>
  <logoAltText>Initial TDS Installation</logoAltText>

  <abstract>Scientific Data</abstract>
  <keywords>meteorology, atmosphere, climate, ocean, earth science</keywords>
    
  <contact>
    <name>Support</name>
    <organization>My Group</organization>
    <email>support@my.group</email>
    <!--phone></phone-->
  </contact>
  <hostInstitution>
    <name>My Group</name>
    <webSite>http://www.my.site/</webSite>
    <logoUrl>myGroup.gif</logoUrl>
    <logoAltText>My Group</logoAltText>
  </hostInstitution>
</serverInformation>

Where is Server Information Used

Other Places the Server Information Will be Included

Exercise: Add Server Information

Change the default server information in the TDS configuration file

  1. Look at the current server information by viewing the Server Info page in a browser: http://localhost:8080/thredds/serverInfo.html
  2. Edit the main TDS configuration catalog:
    $ cd ${tomcat_home}/content/thredds
    $ vi threddsConfig.xml         // Use the editor of your choice
    
  3. Restart Tomcat so the TDS is reinitialized:
    $ cd ${tomcat_home}/bin
    $ ./shutdown.sh
    $ ./startup.sh
    
  4. Check that the server information has changed in the Server Info page: http://localhost:8080/thredds/serverInfo.html

Appearance of Generated HTML Pages

Server and institution names, logos, and links given in the above section are used in all TDS generated HTML pages.

You can also specify the CSS files and several icons used in the HTML pages. These are configured in the htmlSetup element of the TDS configuration file threddsConfix.xml. Default CSS files are provided with the thredds.war distribution, and should not be modified. Instead, these can be overridden by placing the appropriate CSS files in the ${tomcat_home}/content/thredds/public/ directory.

The following shows the default configuration of the htmlSetup element:

<htmlSetup>
  <!--
   * CSS documents used in generated HTML pages.
   * The CSS document given in the "catalogCssUrl" element is used for all pages
   * that are HTML catalog views. The CSS document given in the "standardCssUrl"
   * element is used in all other generated HTML pages.
   * -->
  <standardCssUrl>tds.css</standard CssUrl>
  <CatalogCssUrl>tdsCat.css</CatalogCssUrl>
  <openDapCssUrl>tdsDap.css</openDapCssUrl>
</htmlSetup>

More details are given in the threddsConfig.xml Reference document.