{"action":"created","issue":{"url":"https://api.github.com/repos/sci-wms/sci-wms/issues/58","labels_url":"https://api.github.com/repos/sci-wms/sci-wms/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/sci-wms/sci-wms/issues/58/comments","events_url":"https://api.github.com/repos/sci-wms/sci-wms/issues/58/events","html_url":"https://github.com/sci-wms/sci-wms/pull/58","id":96379010,"number":58,"title":"add support for user specified vector scale. add colorscalerange and …","user":{"login":"ayan-usgs","id":1903370,"avatar_url":"https://avatars.githubusercontent.com/u/1903370?v=3","gravatar_id":"","url":"https://api.github.com/users/ayan-usgs","html_url":"https://github.com/ayan-usgs","followers_url":"https://api.github.com/users/ayan-usgs/followers","following_url":"https://api.github.com/users/ayan-usgs/following{/other_user}","gists_url":"https://api.github.com/users/ayan-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan-usgs/subscriptions","organizations_url":"https://api.github.com/users/ayan-usgs/orgs","repos_url":"https://api.github.com/users/ayan-usgs/repos","events_url":"https://api.github.com/users/ayan-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/ayan-usgs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kwilcox","id":13939,"avatar_url":"https://avatars.githubusercontent.com/u/13939?v=3","gravatar_id":"","url":"https://api.github.com/users/kwilcox","html_url":"https://github.com/kwilcox","followers_url":"https://api.github.com/users/kwilcox/followers","following_url":"https://api.github.com/users/kwilcox/following{/other_user}","gists_url":"https://api.github.com/users/kwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/kwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwilcox/subscriptions","organizations_url":"https://api.github.com/users/kwilcox/orgs","repos_url":"https://api.github.com/users/kwilcox/repos","events_url":"https://api.github.com/users/kwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/kwilcox/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-07-21T18:04:58Z","updated_at":"2015-07-21T19:18:53Z","closed_at":"2015-07-21T18:22:47Z","pull_request":{"url":"https://api.github.com/repos/sci-wms/sci-wms/pulls/58","html_url":"https://github.com/sci-wms/sci-wms/pull/58","diff_url":"https://github.com/sci-wms/sci-wms/pull/58.diff","patch_url":"https://github.com/sci-wms/sci-wms/pull/58.patch"},"body":"…vector scale parameters to leaflet demo\r\n\r\nPull request to address #51 \r\n\r\nA `vectorscale` parameter is now supported that allows a user to specify scale of the vector. The number is passed the matplotlib's `quiver` method as the `scale` keyword and follows the the same convention. Hence. large values of `vectorscale` give smaller vectors, while small values give longer vectors. These changes have been implemented for both `sgrid` and `ugrid` models.\r\n\r\nA consequence of this change is the padding used in spatial indexing is calculated based on the `vectorscale` value. This prevents vectors from being cutoff between tiles in the leaflet client and hence reduces the appearance of seems. The functions that support this are in the `utils` module. In addition, a `colorscalerange` is specified when the leaflet client makes a tile request... again reduces the appearance of seams.\r\n\r\n\r\nThe choice of `vectorscale` was influenced by this discussion: http://sourceforge.net/p/ncwms/mailman/message/32091284/. There was also a propose to use the a `ppu` keyword in the `style` parameter per http://www.resc.rdg.ac.uk/trac/ncWMS/ticket/65, but it they decided not to use it.\r\n\r\n![sciwms_leaflet_client_20150721](https://cloud.githubusercontent.com/assets/1903370/8808387/e3dacbbc-2fa7-11e5-8d2b-cf79d4a62c20.png)"},"comment":{"url":"https://api.github.com/repos/sci-wms/sci-wms/issues/comments/123451427","html_url":"https://github.com/sci-wms/sci-wms/pull/58#issuecomment-123451427","issue_url":"https://api.github.com/repos/sci-wms/sci-wms/issues/58","id":123451427,"user":{"login":"ayan-usgs","id":1903370,"avatar_url":"https://avatars.githubusercontent.com/u/1903370?v=3","gravatar_id":"","url":"https://api.github.com/users/ayan-usgs","html_url":"https://github.com/ayan-usgs","followers_url":"https://api.github.com/users/ayan-usgs/followers","following_url":"https://api.github.com/users/ayan-usgs/following{/other_user}","gists_url":"https://api.github.com/users/ayan-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan-usgs/subscriptions","organizations_url":"https://api.github.com/users/ayan-usgs/orgs","repos_url":"https://api.github.com/users/ayan-usgs/repos","events_url":"https://api.github.com/users/ayan-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/ayan-usgs/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T19:18:52Z","updated_at":"2015-07-21T19:18:52Z","body":"@rsignell-usgs,\r\n\r\n`vectorScale` will also work. What happens behind the scenes is that sci-wms normalizes a request, so the case a user uses in his/her WMS request doesn't really matter."}}