On Thu, Jun 2, 2016 at 3:28 AM, Ben Caradoc-Davies <b...@transient.nz> wrote:
> On 01/06/16 20:12, Daniele Romagnoli wrote:
>
>> On Tue, May 31, 2016 at 11:06 PM, Ben Caradoc-Davies <b...@transient.nz>
>>
>>> - 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
>
> Mmm... I should already have fixed that several months ago. I'll double
check it again.
> 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.
> :-)
>
> Good news :-)
Cheers,
Daniele
> Thanks also for your other suggestions. I have not yet tried them.
>
>
> Kind regards,
>
> --
> Ben Caradoc-Davies <b...@transient.nz>
> Director
> Transient Software Limited <http://transient.nz/>
> New Zealand
>
--
==
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.
------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users