Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

Add SLD tag to define arrows direction convention #108

Closed geojs closed 6 years ago

geojs commented 6 years ago

I added a new SLD tag to handle arrows direction according to meteorological convention or oceanographic convention: https://blogs.esri.com/esri/arcgis/2013/07/17/displaying-speed-and-direction-symbology-from-u-and-v-vectors/ I need this feature to display wave direction from WW3 output: http://polar.ncep.noaa.gov/waves/products.shtml

guygriffiths commented 6 years ago

I'm happy to include this distinction. A few things, however:

However, bearing all this in mind, along with the fact that you were trying to display data from WW3, I wonder if there is not some other issue at play here? ncWMS should display WW3 data as you would expect, since we have always used the oceanographic convention for vectors (with the exception of wind barbs, which are their own specific style). If that's the case, I'm more than happy to work with you to debug the problem - I've not had anyone requesting that ncWMS plot arrows according to the meterological convention, and I've got no pressing reason to do so.

geojs commented 6 years ago

The modifications:

It is to display this WW3 data: ftp://ftp.ifremer.fr/ifremer/ww3/HINDCAST/NORGAS/2013/dp/ww3.201305_dp.nc Example with "default-arrows" style: nww3_dp I guess the arrows direction are in the "wrong way", maybe it use meterological convention ? Thanks for your help.

guygriffiths commented 6 years ago

The problem is that WW3 are using a non-standard convention: https://forge.ifremer.fr/plugins/mediawiki/wiki/ww3/index.php/En:wave_direction_conventions which is the opposite of what your link (and my experience of ocean data) suggests.

I'm happy to add this change - if you could implement vector_meterological_arrows.xml, sized_meteorological_arrows.xml, and colored_sized_meteorological_arrows.xml in your branch then I'll merge it in. Apologies - looking back it wasn't at all clear, but this is what I meant by "the other arrow styles".

geojs commented 6 years ago

Thanks you for the link about the non-standard convention with WW3 (my experience with ncwms is limited to display WW3 outputs), I have now a better understanding of direction conventions.

I implemented the styles vector_meterological_arrows.xml, sized_meteorological_arrows.xml, and colored_sized_meteorological_arrows.xml in my branch.

guygriffiths commented 6 years ago

Great, thanks for that. I've merged into develop, so that'll make the next release.