Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vector: choice of to/from direction? #77

Open
pacioos opened this issue Jan 5, 2021 · 4 comments
Open

vector: choice of to/from direction? #77

pacioos opened this issue Jan 5, 2021 · 4 comments

Comments

@pacioos
Copy link

pacioos commented Jan 5, 2021

Hi ncWMS,
It would be great if there was an extra configuration parameter to select what direction the vectors are drawn when combining the u/v components. Currently, ncWMS defaults to only the "to" direction, which is the oceanographic convention for ocean currents. However, the meteorological convention for wind is the opposite "from" direction. Would be nice to be able to toggle the vectors that ncWMS draws in either direction with a simple "to" or "from" URL parameter named "direction" (or something akin to that). Many thanks for a great product, which has been useful to our users for years. I pass along this suggestion from one of our users.
Cheers,
John Maurer
Data System Engineer
Pacific Islands Ocean Observing System (PacIOOS)

@guygriffiths
Copy link
Collaborator

Hi John, what style are you using to plot the data? There should be a corresponding meterorological_<style> which has the vector direction reversed.

@pacioos
Copy link
Author

pacioos commented Jan 6, 2021 via email

@guygriffiths
Copy link
Collaborator

Ah, yes it doesn't look like those styles are supported in TDS. In fact, the styles are all specific to TDS - ncWMS doesn't natively support stumpvec, vector, or barb (by those names). I think this is one for the Unidata team - ncWMS has supported these for a while, so it's either a case of updating to the latest version (which they may have already done in a later TDS version), or explicitly including styles with the revered arrow style.

As an aside, we don't support wind barbs with a reversed direction, because (I believe) they are already strictly defined, unlike general arrows.

@pacioos
Copy link
Author

pacioos commented Jan 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants