Hi Paddy, Ah! Looking again on your schema I see that you have deleted the imageIndex attribute: I think that this is the problem.
Let me explain: A NetCDF can be seen as a multidimensional dataset (a kind of a hypercube). >From an ImageIO <https://docs.oracle.com/javase/7/docs/api/javax/imageio/package-summary.html>point of view (the low level Oracle API for raster I/O) read <https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageReader.html#read(int,%20javax.imageio.ImageReadParam)> operations are performed on top of an ImageReader <https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageReader.html> (which has been set on an input, such as a file or a stream), by specifying a set of reading params <https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageReadParam.html>(such as subsampling, and region to be read) and an imageIndex, indicating which underlying image need to be read. Therefore, a Multidim dataset can be seen as a set of 2D images where the number of images is the product of: number of time values * number of elevation values * number of other dimensions, for each available variable. Your schema doesn't contain the imageIndex so there is no way to associate a specific time + a specific elevation pair to a specific 2D slice of the NetCDF dataset. Here below, an extract (with pgadmin) of one of the tables for the polyphemus dataset configured by my previous test: (See the blue marked record) So that when the query asks for a record with time = 2013-03-01 00:00:00, elevation = 450 and fileDate = 2013-03-01 the result contains imageIndex = 679. The GeoTools reader will then specify imageIndex = 679 to the underlying NetCDF ImageReader which will access to the section referring the specified elevation and time subset. You should retry by making sure to add the imageIndex attribute to the schema (you can check the default schema in the example <http://geoserver.geo-solutions.it/multidim/en/imagemosaic/mosaic_indexer.html#imagemosaic-xml-indexer-example> of the polyphemus dataset from multidim training) and reconfiguring your data (Make sure to restart from a clean situation to avoid partially configured mosaics). Please. Let me know if that fixes your problem. Cheers, Daniele On Tue, Apr 5, 2016 at 11:46 PM, Padhrig Mccarthy <[email protected]> wrote: > > Dear Danielle- > > Thank you very much for taking the time to do this test. Below is the > response to a WMS 1.3.0 GetCapabilities request such as: > > http://nnew-vm9:8089/geoserver/RAL_WCS/ows?service=WMS&version=1.3.0&request=GetCapabilities > > I am able to retrieve data at different elevations, but it seems to always > return data for the top-most elevation. > > -Paddy. > > >> This XML file does not appear to have any style information associated >> with it. The document tree is shown below. >> <WMS_Capabilities xmlns="http://www.opengis.net/wms" xmlns:xlink=" >> http://www.w3.org/1999/xlink" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" updateSequence >> ="338" xsi:schemaLocation="http://www.opengis.net/wms >> http://nnew-vm9:8089/geoserver/schemas/wms/1.3.0/capabilities_1_3_0.xsd"> >> <script id="tinyhippos-injected"/> >> <Service> >> <Name>WMS</Name> >> <Title/> >> <Abstract/> >> <KeywordList/> >> <OnlineResource xlink:type="simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/"/> >> <ContactInformation> >> <ContactPersonPrimary> >> <ContactPerson/> >> <ContactOrganization/> >> </ContactPersonPrimary> >> <ContactPosition/> >> <ContactAddress> >> <AddressType/> >> <Address/> >> <City/> >> <StateOrProvince/> >> <PostCode/> >> <Country/> >> </ContactAddress> >> <ContactVoiceTelephone/> >> <ContactFacsimileTelephone/> >> <ContactElectronicMailAddress/> >> </ContactInformation> >> <Fees>none</Fees> >> <AccessConstraints>none</AccessConstraints> >> </Service> >> <Capability> >> <Request> >> <GetCapabilities> >> <Format>text/xml</Format> >> <DCPType> >> <HTTP> >> <Get> >> <OnlineResource xlink:type="simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?SERVICE=WMS&"/> >> </Get> >> <Post> >> <OnlineResource xlink:type="simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?SERVICE=WMS&"/> >> </Post> >> </HTTP> >> </DCPType> >> </GetCapabilities> >> <GetMap> >> <Format>image/png</Format> >> <Format>application/atom+xml</Format> >> <Format>application/pdf</Format> >> <Format>application/rss+xml</Format> >> <Format>application/vnd.google-earth.kml+xml</Format> >> <Format> >> application/vnd.google-earth.kml+xml;mode=networklink >> </Format> >> <Format>application/vnd.google-earth.kmz</Format> >> <Format>image/geotiff</Format> >> <Format>image/geotiff8</Format> >> <Format>image/gif</Format> >> <Format>image/jpeg</Format> >> <Format>image/png; mode=8bit</Format> >> <Format>image/svg+xml</Format> >> <Format>image/tiff</Format> >> <Format>image/tiff8</Format> >> <Format>text/html; subtype=openlayers</Format> >> <DCPType> >> <HTTP> >> <Get> >> <OnlineResource xlink:type="simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?SERVICE=WMS&"/> >> </Get> >> </HTTP> >> </DCPType> >> </GetMap> >> <GetFeatureInfo> >> <Format>text/plain</Format> >> <Format>application/vnd.ogc.gml</Format> >> <Format>text/xml</Format> >> <Format>application/vnd.ogc.gml/3.1.1</Format> >> <Format>text/xml; subtype=gml/3.1.1</Format> >> <Format>text/html</Format> >> <Format>application/json</Format> >> <DCPType> >> <HTTP> >> <Get> >> <OnlineResource xlink:type="simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?SERVICE=WMS&"/> >> </Get> >> </HTTP> >> </DCPType> >> </GetFeatureInfo> >> </Request> >> <Exception> >> <Format>XML</Format> >> <Format>INIMAGE</Format> >> <Format>BLANK</Format> >> </Exception> >> <Layer> >> <Title/> >> <Abstract/> >> <!-- All supported EPSG projections: --> >> <CRS>AUTO:42001</CRS> >> <CRS>AUTO:42002</CRS> >> <CRS>AUTO:42003</CRS> >> <CRS>AUTO:42004</CRS> >> <CRS>AUTO:97001</CRS> >> <CRS>AUTO:97002</CRS> >> <CRS>EPSG:WGS84(DD)</CRS> >> <CRS>EPSG:971801</CRS> >> <CRS>EPSG:999999</CRS> >> > <!-- Abridged... --> > >> <CRS>CRS:84</CRS> >> <EX_GeographicBoundingBox> >> <westBoundLongitude>-140.01244796846436</westBoundLongitude> >> <eastBoundLongitude>14.9375</eastBoundLongitude> >> <southBoundLatitude>16.298711421848125</southBoundLatitude> >> <northBoundLatitude>58.55068675351909</northBoundLatitude> >> </EX_GeographicBoundingBox> >> <BoundingBox CRS="CRS:84" minx="-140.01244796846436" miny=" >> 16.298711421848125" maxx="14.9375" maxy="58.55068675351909"/> >> <Layer queryable="1" opaque="0"> >> <Name>CAT_GPML_GTG</Name> >> <Title>CAT_GPML_GTG</Title> >> <Abstract/> >> <KeywordList> >> <Keyword>WCS</Keyword> >> <Keyword>ImageMosaic</Keyword> >> <Keyword>CAT_GPML_GTG</Keyword> >> </KeywordList> >> <CRS>EPSG:971801</CRS> >> <CRS>CRS:84</CRS> >> <EX_GeographicBoundingBox> >> <westBoundLongitude>-140.01244796846436</westBoundLongitude> >> <eastBoundLongitude>-57.31699802592886</eastBoundLongitude> >> <southBoundLatitude>16.298711421848125</southBoundLatitude> >> <northBoundLatitude>58.55068675351909</northBoundLatitude> >> </EX_GeographicBoundingBox> >> <BoundingBox CRS="CRS:84" minx="-140.01244796846436" miny=" >> 16.298711421848125" maxx="-57.31699802592886" maxy="58.55068675351909"/> >> <BoundingBox CRS="EPSG:971801" minx="-3342540.85394965" miny=" >> -596303.793770926" maxx="2766293.2953559" maxy="3968390.70783343"/> >> <Dimension name="time" default="2016-04-06T14:00:00Z" units="ISO8601"> >> >> 2016-04-05T20:00:00.000Z,2016-04-05T21:00:00.000Z,2016-04-05T22:00:00.000Z,2016-04-05T23:00:00.000Z,2016-04-06T00:00:00.000Z,2016-04-06T01:00:00.000Z,2016-04-06T02:00:00.000Z,2016-04-06T03:00:00.000Z,2016-04-06T04:00:00.000Z,2016-04-06T05:00:00.000Z,2016-04-06T06:00:00.000Z,2016-04-06T07:00:00.000Z,2016-04-06T08:00:00.000Z,2016-04-06T09:00:00.000Z,2016-04-06T10:00:00.000Z,2016-04-06T11:00:00.000Z,2016-04-06T12:00:00.000Z,2016-04-06T13:00:00.000Z,2016-04-06T14:00:00.000Z >> </Dimension> >> <Dimension name="elevation" default="0.03" units="kilometers" unitSymbol >> ="km"> >> >> 0.03,0.304,0.609,0.914,1.219,1.524,1.828,2.133,2.438,2.743,3.048,3.352,3.657,3.962,4.267,4.572,4.876,5.181,5.486,5.791,6.096,6.4,6.705,7.01,7.315,7.62,7.924,8.229,8.534,8.839,9.144,9.448,9.753,10.058,10.363,10.668,10.972,11.277,11.582,11.887,12.192,12.496,12.801,13.106,13.411,13.716 >> </Dimension> >> <Dimension name="LEADSECONDS" default="0" units="seconds" unitSymbol="s"> >> 0</Dimension> >> <Style> >> <Name>raster</Name> >> <Title>A boring default style</Title> >> <Abstract>A sample style for rasters</Abstract> >> <LegendURL width="20" height="20"> >> <Format>image/png</Format> >> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type=" >> simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=CAT_GPML_GTG >> "/> >> </LegendURL> >> </Style> >> </Layer> >> <Layer queryable="1" opaque="0"> >> <Name>CAT_GPML_LEAD</Name> >> <Title>CAT_GPML_LEAD</Title> >> <Abstract/> >> <KeywordList> >> <Keyword>WCS</Keyword> >> <Keyword>ImageMosaic</Keyword> >> <Keyword>CAT_GPML_LEAD</Keyword> >> </KeywordList> >> <CRS>EPSG:971801</CRS> >> <CRS>CRS:84</CRS> >> <EX_GeographicBoundingBox> >> <westBoundLongitude>-140.01244796846436</westBoundLongitude> >> <eastBoundLongitude>-57.31699802592886</eastBoundLongitude> >> <southBoundLatitude>16.298711421848125</southBoundLatitude> >> <northBoundLatitude>58.55068675351909</northBoundLatitude> >> </EX_GeographicBoundingBox> >> <BoundingBox CRS="CRS:84" minx="-140.01244796846436" miny=" >> 16.298711421848125" maxx="-57.31699802592886" maxy="58.55068675351909"/> >> <BoundingBox CRS="EPSG:971801" minx="-3342540.85394965" miny=" >> -596303.793770926" maxx="2766293.2953559" maxy="3968390.70783343"/> >> <Dimension name="time" default="2016-04-02T09:00:00Z" units="ISO8601"> >> >> 2016-04-02T00:00:00.000Z,2016-04-02T01:00:00.000Z,2016-04-02T02:00:00.000Z,2016-04-02T03:00:00.000Z,2016-04-02T04:00:00.000Z,2016-04-02T05:00:00.000Z,2016-04-02T06:00:00.000Z,2016-04-02T07:00:00.000Z,2016-04-02T08:00:00.000Z,2016-04-02T09:00:00.000Z >> </Dimension> >> <Dimension name="elevation" default="0.03" units="EPSG:5030" unitSymbol=" >> m"> >> >> 0.03,0.304,0.609,0.914,1.219,1.524,1.828,2.133,2.438,2.743,3.048,3.352,3.657,3.962,4.267,4.572,4.876,5.181,5.486,5.791,6.096,6.4,6.705,7.01,7.315,7.62,7.924,8.229,8.534,8.839,9.144,9.448,9.753,10.058,10.363,10.668,10.972,11.277,11.582,11.887,12.192,12.496,12.801,13.106,13.411,13.716 >> </Dimension> >> <Dimension name="LEADSECONDS" default="0" units="seconds" unitSymbol="s"> >> 0</Dimension> >> <Style> >> <Name>raster</Name> >> <Title>A boring default style</Title> >> <Abstract>A sample style for rasters</Abstract> >> <LegendURL width="20" height="20"> >> <Format>image/png</Format> >> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type=" >> simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=CAT_GPML_LEAD >> "/> >> </LegendURL> >> </Style> >> </Layer> >> <Layer queryable="1" opaque="0"> >> <Name>NO2</Name> >> <Title>NO2</Title> >> <Abstract/> >> <KeywordList> >> <Keyword>WCS</Keyword> >> <Keyword>ImageMosaic</Keyword> >> <Keyword>NO2</Keyword> >> </KeywordList> >> <CRS>EPSG:4326</CRS> >> <CRS>CRS:84</CRS> >> <EX_GeographicBoundingBox> >> <westBoundLongitude>4.9375</westBoundLongitude> >> <eastBoundLongitude>14.9375</eastBoundLongitude> >> <southBoundLatitude>44.96875</southBoundLatitude> >> <northBoundLatitude>50.96875</northBoundLatitude> >> </EX_GeographicBoundingBox> >> <BoundingBox CRS="CRS:84" minx="4.9375" miny="44.96875" maxx="14.9375" >> maxy="50.96875"/> >> <BoundingBox CRS="EPSG:4326" minx="44.96875" miny="4.9375" maxx="50.96875 >> " maxy="14.9375"/> >> <Dimension name="time" default="2013-03-01T23:00:00Z" units="ISO8601"> >> >> 2013-03-01T00:00:00.000Z,2013-03-01T01:00:00.000Z,2013-03-01T02:00:00.000Z,2013-03-01T03:00:00.000Z,2013-03-01T04:00:00.000Z,2013-03-01T05:00:00.000Z,2013-03-01T06:00:00.000Z,2013-03-01T07:00:00.000Z,2013-03-01T08:00:00.000Z,2013-03-01T09:00:00.000Z,2013-03-01T10:00:00.000Z,2013-03-01T11:00:00.000Z,2013-03-01T12:00:00.000Z,2013-03-01T13:00:00.000Z,2013-03-01T14:00:00.000Z,2013-03-01T15:00:00.000Z,2013-03-01T16:00:00.000Z,2013-03-01T17:00:00.000Z,2013-03-01T18:00:00.000Z,2013-03-01T19:00:00.000Z,2013-03-01T20:00:00.000Z,2013-03-01T21:00:00.000Z,2013-03-01T22:00:00.000Z,2013-03-01T23:00:00.000Z >> </Dimension> >> <Dimension name="elevation" default="10.0" units="EPSG:5030" unitSymbol=" >> m"> >> >> 10.0,35.0,75.0,125.0,175.0,250.0,350.0,450.0,550.0,700.0,900.0,1250.0,1750.0,2500.0 >> </Dimension> >> <Dimension name="UPDATED" default="2016-03-10T20:09:18.000Z" units=""> >> 2016-03-10T20:09:18.000Z</Dimension> >> <Dimension name="FILEDATE" default="2013-03-01T00:00:00.000Z" units=""> >> 2013-03-01T00:00:00.000Z</Dimension> >> <Style> >> <Name>raster</Name> >> <Title>A boring default style</Title> >> <Abstract>A sample style for rasters</Abstract> >> <LegendURL width="20" height="20"> >> <Format>image/png</Format> >> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type=" >> simple" xlink:href=" >> http://nnew-vm9:8089/geoserver/RAL_WCS/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=NO2 >> "/> >> </LegendURL> >> </Style> >> </Layer> >> </Layer> >> </Capability> >> </WMS_Capabilities> >> >> >> -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Daniele Romagnoli Senior Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
