[thredds] WMS ignoring 'time' URL parameter in TDS 5

Hi all,

I am trying to use NcML aggregations in TDS 5.0.0 with WMS, but the 'time'
parameter in URL is not having any effect when accessing a 'GetMap' URL. I get
the same image regardless of what value I set for 'time'.

The value for 'time' is definitely checked, since using the wrong format (e.g.
time=hello) gives an error as expected. But a valid timestamp always shows data
for the last file in the aggregation.

Also, using a valid but out of range timestamp still shows the image for the
last file, and doesn't show the error message that THREDDS 4.6.11 did (e.g.
'The value "3000-01" is not valid for the TIME dimension')

The full THREDDS version I am using is Version 5.0.0-SNAPSHOT -
2018-02-03T12:01:12. Here is a minimal example catalog showing the problem:

  <?xml version="1.0" encoding="UTF-8"?>
  <catalog 
xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
           xmlns:ns2="http://www.w3.org/1999/xlink";
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xmlns:xlink="http://www.w3.org/1999/xlink";
           name="TDS configuration file"
           
xsi:schemaLocation="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0
 http://www.unidata.ucar.edu/schemas/thredds/InvCatalog.1.0.2.xsd";>

    <service base="/thredds/wcs/" name="wcs" serviceType="WCS"/>
    <service base="/thredds/wms/" name="wms" serviceType="WMS"/>
    <service base="/thredds/dodsC/" name="OpenDAPServer" serviceType="OpenDAP"/>

    <property name="catalog_version" value="2"/>

    <dataset ID="test.aggregation" name="test.aggregation" 
urlPath="test.aggregation">
      <access serviceName="OpenDAPServer" urlPath="test.aggregation"/>
      <access serviceName="wms" urlPath="test.aggregation"/>
      <access serviceName="wcs" urlPath="test.aggregation"/>
      <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
location="/tmp/simple_aggregation.ncml"/>
    </dataset>
  </catalog>

where '/tmp/simple_aggregation.ncml' contains:

  <?xml version="1.0" encoding="UTF-8"?>
  <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
    <aggregation dimName="time" type="joinExisting">
      <netcdf 
location="/neodc/esacci/cloud/data/phase-2/L3C/AVHRR-PM/v2.0/AVHRR_NOAA-11/1988/198811-ESACCI-L3C_CLOUD-CLD_PRODUCTS-AVHRR_NOAA-11-fv2.0.nc"/>
      <netcdf 
location="/neodc/esacci/cloud/data/phase-2/L3C/AVHRR-PM/v2.0/AVHRR_NOAA-11/1988/198812-ESACCI-L3C_CLOUD-CLD_PRODUCTS-AVHRR_NOAA-11-fv2.0.nc"/>
      <netcdf 
location="/neodc/esacci/cloud/data/phase-2/L3C/AVHRR-PM/v2.0/AVHRR_NOAA-11/1989/198901-ESACCI-L3C_CLOUD-CLD_PRODUCTS-AVHRR_NOAA-11-fv2.0.nc"/>
    </aggregation>
  </netcdf>

I'm using the following WMS URL:

  
https://<hostname>/thredds/wms/test.aggregation?service=WMS&version=1.3.0&request=GetMap&WIDTH=750&HEIGHT=500&STYLES=default&CRS=CRS:84&BBOX=-180,-90,180,90&LAYERS=cot&TIME=1988-11

Note the time is 1988-11. I use the following to find out which files THREDDS
is accessing:

  strace -fp <tomcat PID> 2>&1 | grep -Eo '"/neodc/esacci/.+"'

and the output shows that only the 1989-01 file is accessed, which is the final
file in the NcML. I can also observe that the map image is the same as the
1989-01 image.

(using the 'strace' command and then using OPeNDAP instead of WMS shows the
expected files being read, so I think the strace command works as it should).

I've tried using the full timestamp format YYYY-MM-DDTHH:MM:SS etc but get the
same results.

This aggregation works correctly with OPeNDAP, and the same catalog and NcML
file work correctly with version 4.6.11, which is why I think it might be a
THREDDS problem rather than an NcML problem. But I am not sure. I will attach
my threddsConfig.xml and wmsConfig.xml in case there are configuration
problems.

If anyone knows a fix it would be much appreciated.

Thanks,
Joe

Attachment: threddsConfig.xml
Description: threddsConfig.xml

Attachment: wmsConfig.xml
Description: wmsConfig.xml

  • 2018 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: