On 01/06/16 20:12, Daniele Romagnoli wrote: > On Tue, May 31, 2016 at 11:06 PM, Ben Caradoc-Davies <[email protected]> >> - When using a custom dimension like sigma, should it be specified in the >> indexer.xml? > Yes. each domain/dimension involved in your mosaic should be declared. >> - If an indexer dimension for sigma is required, what form should it take? > You should declare it in the <domains> section. > As an instance > <domains> > <domain name="sigma"> <!-- See Note1 --> > <attributes><attribute>sigma</attribute></attributes> <!-- See Note2 > --> > </domain> > Note1: you can put any name you want here. It will represent the dimension > exposed in GeoServer. > Note2: the attribute here should match the real dimension name on the > underlying NetCDF dataset. >> - Does sigma need an entry in the granule schema in indexer.xml? > Yes. > Your <coverage> should refer that sigma domain as well as include a column > in the schema > <coverage> > <name>u-component_of_wind_sigma</name> > <domains> > .... time? > <domain ref="sigma" /> > </domains> > <schema name="u-component_of_wind_sigma" > > <attributes>.........., sigma: java.lang.Float</attributes> <!-- > See Note 3 --> > </schema> > Note 3: the attribute in the schema should match the attribute of the > previously declared domain.
Thank you so much, Daniele. That works almost perfectly. The one problem is that Float is not supported, only times, Integer, Double, and String (and unsupported types like Float are treated as String and fail because String cannot be a coordinate variable type): https://github.com/geotools/geotools/blob/master/modules/plugin/coverage-multidim/netcdf/src/main/java/org/geotools/imageio/netcdf/utilities/NetCDFUtilities.java#L852 If I add a sigma domain as you described above and a schema attribute "sigma:Double", then enable both time and sigma in the Dimensions tab in the web UI, the coverage is returned with both time and sigma dimensions as expected. I also had to increase my heap to -Xmx2048m. I am now looking at a 647MB NetCDF-4 file with 4 time values and 50 sigma layers in Panoply. :-) Thanks also for your other suggestions. I have not yet tried them. Kind regards, -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
