Server does not provide a capability xml with erroneous files

Issue #468 resolved
Joern Ungermann created an issue

In case that a file has a dimension mismatch with the master file, the server does not provide an XML document.

E.g.

2019-10-01 11:35:02,547 (mss_plot_driver._set_time:112):    requested initialisation time 2019-07-01 00:00:00
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:113):    requested forecast valid time 2018-02-26 00:00:00 (step -11760 hrs)
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:140):    variable 'geopotential_height' requires input file '2018-02-26T00:00:00.an.pl.nc'
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:140):    variable 'air_temperature' requires input file '2018-02-26T00:00:00.an.pl.nc'
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:140):    variable 'specific_humidity' requires input file '2018-02-26T00:00:00.an.pl.nc'
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:140):    variable 'air_pressure_at_sea_level' requires input file '2018-02-26T00:00:00.an.sfc.nc'
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:149): opening datasets.
2019-10-01 11:35:02,547 (mss_plot_driver._set_time:151): ['/srv/mss/CAMPAIGNS2019/mssdata/analysis/2018-02-26T00:00:00.an.pl.nc', '/srv/mss/CAMPAIGNS2019/mssdata/analysis/2018-02-26T00:00:00.an.sfc.nc']
2019-10-01 11:35:02,564 (wms.application:530): b'<class \'OSError\'>: dimension \'level\' of \'/srv/mss/CAMPAIGNS2019/mssdata/analysis/2018-02-26T00:00:00.an.sfc.nc\' not defined in master \'/srv/mss/CAMPAIGNS2019/mssdata/analysis/2018-02-26T00:00:00.an.pl.nc\'\n\n - Expression: "len(layer.get_elevations()) > 0"\n - Filename:   ... e-packages/mslib/mswms/xml_templates/get_capabilities.pt\n - Location:   (line 65: col 42)\n - Source:     ... tal:condition="len(layer.get_elevations()) > 0" name="ELEVAT ...\n                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n - Arguments:  hsec_layers: <list - at 0x7f4dd767b908>\n               vsec_layers: <list - at 0x7f4dd7680a48>\n               server_url: http://localhost:8081/\n               service_name: OGC:WMS\n               service_title: Mission Support System Web Map Service 1.8.1\n               service_abstract: CAMPAIGNS2019\n               service_contact_person: J.Ungermann\n               service_contact_organisation: Forschungszentrum Juelich GmbH\n               service_contact_position: \n               service_email: \n               service_address_type: IEK-7\n               service_address: Leo Brandt Strasse\n               service_city: Juelich\n               service_state_or_province: NRW\n               service_post_code: 52425\n               service_country: Germany\n               service_fees: none\n               service_access_constraints: This service is intended for research purposes only.\n               target_language: <NoneType - at 0x55b3f7e7e0f0>\n               repeat: {...} (0)\n               dataset: ecmwf2\n               layer: <HS_SurfaceWeather - at 0x7f4dd8647908>\n               dt: <real_datetime - at 0x7f4dd81dd8e0>\n'
2019-10-01 11:35:02,565 (_internal._log:122): 127.0.0.1 - - [01/Oct/2019 11:35:02] "GET /?service=WMS&request=GetCapabilities&version=1.1.1 HTTP/1.1" 404 -

The desired state would be ignoring this file/layer and provide a capability document for the others.

Comments (3)

  1. Log in to comment