Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
3604 views
Kernel: Python 2

THREDDS Data Server: ncWMS and WCS

NetCDF Web Map Service (ncWMS) and Web Coverage Service (WCS) through NCI THREDDS

For more information on WMS and WCS standards specifications and ncWMS: <br > http://www.opengeospatial.org/standards/wms <br > http://www.opengeospatial.org/standards/wcs <br > http://www.resc.rdg.ac.uk/trac/ncWMS/ <br >

1. NetCDF Web Map Service (ncWMS)

GetCapabilities

This will display the WMS 'GetCapabilities' request in xml, which describes the WMS parameters (metadata, services, and data) available by the server. These options are used to generate a GetMap request, an operation which requests that the server generate a map.

GetCapabilities example:

http://dapds00.nci.org.au/thredds/wms/rs0/tiles/EPSG3577/LS8_OLI_TIRS_NBAR/LS8_OLI_TIRS_NBAR_3577_-10_-28_2013.nc?
service=WMS&
version=1.3.0&
request=GetCapabilities

GetMap

Several WMS tools accept the GetCapabilities URL and allow users to interactively generate a GetMap request

Note: This results in a map request built with the default settings, colormaps and scales (or time steps) may not be defined appropriately.

The more explicit option is to directly build the full GetMap request using the information displayed in the GetCapabilities response

GetMap parameters:
ParameterRequired/OptionalInput
serviceRequiredWMS
versionRequired1.1.1**, 1.3.0
requestRequiredGetMap
LayersRequired<variable>
crsRequired<crs_value>
stylesRequired<style_name>
formatRequiredimage/png , image/png;mode=32bit , image/gif , image/jpeg
bboxRequired<ymin,xmin,ymax,xmax>
widthRequiredImage width in pixels
heightRequiredImage height in pixels
colorscalerangeOptional<min,max>
transparentOptionalTrue, False
timeOptional<time_value>

Syntax differences for v1.1.1 GetMap requests:

  • Use srs in place of crs

  • The order of bbox values is: <xmin,ymin,xmax,ymax>

GetMap request example:

http://dapds00.nci.org.au/thredds/wms/rs0/tiles/EPSG3577/LS8_OLI_TIRS_NBAR/LS8_OLI_TIRS_NBAR_3577_-10_-28_2013.nc?
service=WMS&
version=1.3.0&
request=GetMap&
Layers=band_2&
crs=EPSG:4326&
styles=boxfill/rainbow&
format=image/png&
colorscalerange=0,2000&
bbox=-25.58404616639011,121.92340149978914,-24.62761795684223,122.99839880914949&
width=1000&
height=1000&
transparent=true&
time=2013-10-17T01:46:46.702Z

The GetMap request can be tested by inserting the URL into a web browser:

Some known issues:

  • The 'time' parameter is not supported in all tools and will only display data from the default time step specified in the GetCapabilities xml.

Web Coverage Service (WCS)

GetCapabilities and DescribeCoverage

The WCS link on NCI's THREDDS catalog page will display the WCS 'GetCapabilities' request in xml, which describes a brief description of the WCS parameters (metadata, services, and data) available by the server.

GetCapabilities example:

http://dapds00.nci.org.au/thredds/wcs/rs0/tiles/EPSG3577/LS8_OLI_TIRS_NBAR/LS8_OLI_TIRS_NBAR_3577_-10_-28_2013.nc?
service=WCS&
version=1.0.0&
request=GetCapabilities

GetCoverage

Similar to WMS, the information displayed by the WCS GetCapabilities and DescribeCoverage can be used to generate a GetCoverage, which is an operation where the server generates a coverage of a specified variable/layer in a specified format (GeoTIFF or NetCDF3).

GetCoverage parameters:
ParameterRequired/OptionalInput
serviceRequiredWCS
versionRequired1.0.0
requestRequiredGetCoverage
coverageRequired<variable>
formatRequiredGeoTIFF , GeoTIFF_Float , NetCDF3
bboxRequired<ymin,xmin,ymax,xmax>
srs, or crsRequired<srs_value> or <crs_value>
timeOptional<time_value>

GetCoverage GeoTIFF request examples:

http://dapds00.nci.org.au/thredds/wcs/rs0/tiles/EPSG3577/LS8_OLI_TIRS_NBAR/LS8_OLI_TIRS_NBAR_3577_-10_-28_2013.nc?
service=WCS&
version=1.0.0&
request=GetCoverage&
coverage=band_2&
format=GeoTIFF&
srs=urn:ogc:def:crs:OGC:1.3:CRS84

http://dapds00.nci.org.au/thredds/wcs/rs0/tiles/EPSG3577/LS8_OLI_TIRS_NBAR/LS8_OLI_TIRS_NBAR_3577_-10_-28_2013.nc?
service=WCS&
version=1.0.0&
request=GetCoverage&
coverage=band_2&
format=NetCDF3&
crs=OGC:CRS84

The GetMap request can be tested by inserting the URL into a web browser and a file download (of the requested GeoTIFF or NetCDF3) should commence.