I'd like to automate downloading "slices" of data from a WCS service. This is a WCS 1.1.2 service, supporting netCDF. The data are updated daily - forecasts from an atmospheric regional model - and I'd like to automatically download netCDF "slices" of the data for a fixed geographical bounding box and for a couple of days out into the future. I am quite happy processing the netCDF once I've downloaded it.
The obvious brute-force approach is to read the OGC standard and devise the HTTP request myself, and code it up in some scripting language. I suspect I'll end up doing that. But it just feels wrong.
Can anyone recommend a WCS client library that I can use from code? Or a WCS client that I can run from a command-line? I know I could probably script QGIS or Grass or ArcGIS or something, but that seems too heavy a requirement for this task.
Can GDAL do it? Google has turned up the BADC Python WCS library (PDF) (now in OWSlib?) which I will take a look at. Java and GeoTools might be a possibility. And there's the OGC list of WCS clients which I could trudge through.
This is on the Windows platform. A .Net library would be ideal :)
I haven't linked to the actual WCS service as it's not yet publicly operational. But here is an edited GetCapabilities
request below, in case anyone's interested in the details
<Capabilities xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns="http://www.opengis.net/wcs/1.1"
version="1.1.2">
<Contents>
<CoverageSummary>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>+0.0000 -90.0000</ows:LowerCorner>
<ows:UpperCorner>+358.8750 +90.0000</ows:UpperCorner>
</ows:WGS84BoundingBox>
<SupportedCRS>urn:ogc:def:crs:EPSG::4326</SupportedCRS>
<SupportedCRS>urn:ogc:def:crs:OGC:2:84</SupportedCRS>
<SupportedFormat>image/netcdf</SupportedFormat>
<SupportedFormat>application/x-netcdf</SupportedFormat>
<Identifier>------------</Identifier>
</CoverageSummary>