Out of the box, the TDS distribution will have WCS, WMS, and ncISO disabled. They
must be explicitly allowed in the threddsConfig.xml file. The default
threddsConfig.xml file (which should now be in your
${TOMCAT_HOME}/content/thredds directory) contains commented out sections for
each of these services.
To enable the WCS service for locally served datasets, you will need the following in your threddsConfig.xml file:
<WCS> <allow>true</allow> </WCS>
Additional WCS configuration options can be set in the threddsConfig.xml
file, more details are available in the
WCS section
of the threddsConfig.xml file documentation.
To enable the WMS service for locally served datasets, you will need the following in your threddsConfig.xml file:
<WMS> <allow>true</allow> </WMS>
Additional WMS configuration options can be set in the threddsConfig.xml
file, more details are available in the
WMS section
of the threddsConfig.xml file documentation.
To enable the ncISO services for locally served datasets, you will need the following in your threddsConfig.xml file:
<NCISO> <ncmlAllow>true</ncmlAllow> <uddcAllow>true</uddcAllow> <isoAllow>true</isoAllow> </NCISO>
Each "*Allow" element allows one of the three ncISO services.
Once the WCS and WMS services are enabled, all that is required for the TDS to provide WCS and WMS access to datasets is for those datasets to reference WCS and WMS service elements. Adding them to an existing compound service would look something like this:
<service name="grid" serviceType="Compound" base="" >
<service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
<service name="wcs" serviceType="WCS" base="/thredds/wcs/" />
<service name="wms" serviceType="WMS" base="/thredds/wms/" />
<service name="ncss" serviceType="NetcdfSubset" base="/thredds/ncss/grid/" />
<service name="http" serviceType="HTTPServer" base="/thredds/fileServer/" />
</service>
Similar to above, once the ncISO services are enabled, all that is required for the TDS to provide ncISO services on datasets is for those datasets to reference the ncISO service elements. For instance, adding to the same compound service as above:
<service name="grid" serviceType="Compound" base="" >
<service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
<service name="wcs" serviceType="WCS" base="/thredds/wcs/" />
<service name="wms" serviceType="WMS" base="/thredds/wms/" />
<service name="ncss" serviceType="NetcdfSubset" base="/thredds/ncss/grid/" />
<service name="http" serviceType="HTTPServer" base="/thredds/fileServer/" />
<service name="ncml" serviceType="NCML" base="/thredds/ncml/" />
<service name="uddc" serviceType="UDDC" base="/thredds/uddc/" />
<service name="iso" serviceType="ISO" base="/thredds/iso/" />
</service>
[thredds@workshop00 ~]$ cd ${TOMCAT_HOME}/content/thredds
[thredds@workshop00 ~]$ vi threddsConfig.xml
and add/replace the WCS and WMS elements (as described above)
<WCS> <allow>true </allow> </WCS> <WMS> <allow>true </allow> </WMS>
<service name="wcs" serviceType="WCS" base="/thredds/wcs/" /> <service name="wms" serviceType="WMS" base="/thredds/wms/" />
[thredds@workshop00 ~]$ cd ${TOMCAT_HOME}/bin
[thredds@workshop00 ~]$ ./shutdown.sh
[thredds@workshop00 ~]$ ./startup.sh
http://localhost:8080/thredds/catalog.html
Once datasets are accessible over the WMS and WCS services, a quick look at the dataset
pages shows several "Viewer" links available for each dataset (ToolsUI and Godiva2). The IDV
"Viewer" link is only added for datasets with a "Grid" data type. This is not whether the
dataset is recognized by the CDM as gridded but rather if the metadata in the catalog
indicates that the dataset is a "Grid". This is accomplished with the dataType
metadata element:
<dataType>Grid</dataType>
dataType element
(as above) to the NAM dataset.
[thredds@workshop00 ~]$ cd ${TOMCAT_HOME}/bin
[thredds@workshop00 ~]$ ./shutdown.sh
[thredds@workshop00 ~]$ ./startup.sh
The Godiva2 WMS client is part of the ncWMS code base and as such is included in the TDS distribution. It is a web application written in JavaScript using the OpenLayers library.
In the TDS, you can access the Godiva2 client from the "Viewers" section of all WMS accessible datasets. The Godiva2 User Guide is available from the ncWMS site.
Besides the basic WMS configuration available in the threddsConfig.xml file,
there are additional configuration settings for default image styling in the
wmsConfig.xml file. This additional configuration includes settings for the
default values of color scale range, palette name, and number of color bands as well as
whether to use a linear or logarithmic scale. These settings can be applied globally, by
dataset, or by variable in a dataset, or to variables in any dataset by CF standard name.
Detailed information is available from the ncWMS/MyOcean WMS Detailed Configuration web page.
wmsConfig.xml File
[thredds@workshop00 ~]$ cd ${TOMCAT_HOME}/content/thredds
[thredds@workshop00 ~]$ vi wmsConfig.xml
and change the color scale range for the target parameter in the NAM datasets.
This document is maintained by Unidata and was last updated
Send comments to THREDDS support.