{"action":"created","issue":{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1912","repository_url":"https://api.github.com/repos/UV-CDAT/uvcdat","labels_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1912/comments","events_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1912/events","html_url":"https://github.com/UV-CDAT/uvcdat/issues/1912","id":146327057,"number":1912,"title":"restricting data with longitude=(lon1, lon2) does not work correctly for meshfill","user":{"login":"danlipsa","id":6180727,"avatar_url":"https://avatars.githubusercontent.com/u/6180727?v=3","gravatar_id":"","url":"https://api.github.com/users/danlipsa","html_url":"https://github.com/danlipsa","followers_url":"https://api.github.com/users/danlipsa/followers","following_url":"https://api.github.com/users/danlipsa/following{/other_user}","gists_url":"https://api.github.com/users/danlipsa/gists{/gist_id}","starred_url":"https://api.github.com/users/danlipsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlipsa/subscriptions","organizations_url":"https://api.github.com/users/danlipsa/orgs","repos_url":"https://api.github.com/users/danlipsa/repos","events_url":"https://api.github.com/users/danlipsa/events{/privacy}","received_events_url":"https://api.github.com/users/danlipsa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"danlipsa","id":6180727,"avatar_url":"https://avatars.githubusercontent.com/u/6180727?v=3","gravatar_id":"","url":"https://api.github.com/users/danlipsa","html_url":"https://github.com/danlipsa","followers_url":"https://api.github.com/users/danlipsa/followers","following_url":"https://api.github.com/users/danlipsa/following{/other_user}","gists_url":"https://api.github.com/users/danlipsa/gists{/gist_id}","starred_url":"https://api.github.com/users/danlipsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlipsa/subscriptions","organizations_url":"https://api.github.com/users/danlipsa/orgs","repos_url":"https://api.github.com/users/danlipsa/repos","events_url":"https://api.github.com/users/danlipsa/events{/privacy}","received_events_url":"https://api.github.com/users/danlipsa/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-04-06T14:14:58Z","updated_at":"2016-04-06T15:24:51Z","closed_at":null,"body":"See the following image\r\n\r\n![meshfill](https://cloud.githubusercontent.com/assets/6180727/14319743/5dfa8de2-fbe0-11e5-89fa-b2e59f2cfcea.png)\r\n\r\n\r\ngenerated by:\r\n\r\nimport cdms2, cdutil, genutil\r\nimport vcs\r\n\r\nif __name__ == '__main__':\r\n    import sys\r\n    cdmsfile = cdms2.open('file:///home/danlipsa/build/uvcdat/install/share/uvcdat/sample_data/sampleCurveGrid4.nc')\r\n    sample = cdmsfile('sample')\r\n    sample = sample(latitude=(-77.0, 88.999999999990564),squeeze=1,longitude=(100.00000000000009, 360.00000000000034),)\r\n    axesOperations = eval(\"{'latitude': 'def', 'y': 'def', 'longitude': 'def', 'x': 'def'}\")\r\n    for axis in list(axesOperations):\r\n        if axesOperations[axis] == 'sum':\r\n            sample = cdutil.averager(sample, axis='(%s)'%axis, weight='equal', action='sum')\r\n        elif axesOperations[axis] == 'avg':\r\n            sample = cdutil.averager(sample, axis='(%s)'%axis, weight='equal')\r\n        elif axesOperations[axis] == 'wgt':\r\n            sample = cdutil.averager(sample, axis='(%s)'%axis)\r\n        elif axesOperations[axis] == 'gtm':\r\n            sample = genutil.statistics.geometricmean(sample, axis='(%s)'%axis)\r\n        elif axesOperations[axis] == 'std':\r\n            sample = genutil.statistics.std(sample, axis='(%s)'%axis)\r\n    canvas = vcs.init()\r\n    gmMeshfill = vcs.getmeshfill('a_meshfill')\r\n    args = []\r\n    args.append(sample)\r\n    gmMeshfill.datawc_calendar = 135441\r\n    gmMeshfill.datawc_timeunits = 'days since 2000'\r\n    gmMeshfill.datawc_x1 = 1e+20\r\n    gmMeshfill.datawc_x2 = 1e+20\r\n    gmMeshfill.datawc_y1 = 1e+20\r\n    gmMeshfill.datawc_y2 = 1e+20\r\n    gmMeshfill.levels = [[1.0000000200408773e+20, 1.0000000200408773e+20]]\r\n    gmMeshfill.ext_1 = False\r\n    gmMeshfill.ext_2 = False\r\n    gmMeshfill.fillareacolors = [1]\r\n    gmMeshfill.fillareaindices = None\r\n    gmMeshfill.fillareastyle = 'solid'\r\n    gmMeshfill.legend = None\r\n    gmMeshfill.missing = 241\r\n    gmMeshfill.projection = 'linear'\r\n    gmMeshfill.xaxisconvert = 'linear'\r\n    gmMeshfill.xmtics1 = ''\r\n    gmMeshfill.xmtics2 = ''\r\n    gmMeshfill.xticlabels1 = '*'\r\n    gmMeshfill.xticlabels2 = '*'\r\n    gmMeshfill.yaxisconvert = 'linear'\r\n    gmMeshfill.ymtics1 = ''\r\n    gmMeshfill.ymtics2 = ''\r\n    gmMeshfill.yticlabels1 = '*'\r\n    gmMeshfill.yticlabels2 = '*'\r\n    gmMeshfill.mesh = '0'\r\n    gmMeshfill.wrap = [0.0, 0.0]\r\n    kwargs = {}\r\n    kwargs[ 'cdmsfile' ] = cdmsfile.id\r\n    args.append( gmMeshfill )\r\n    canvas.plot( *args, **kwargs )\r\n    canvas.interact()"},"comment":{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/comments/206426077","html_url":"https://github.com/UV-CDAT/uvcdat/issues/1912#issuecomment-206426077","issue_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1912","id":206426077,"user":{"login":"doutriaux1","id":2781425,"avatar_url":"https://avatars.githubusercontent.com/u/2781425?v=3","gravatar_id":"","url":"https://api.github.com/users/doutriaux1","html_url":"https://github.com/doutriaux1","followers_url":"https://api.github.com/users/doutriaux1/followers","following_url":"https://api.github.com/users/doutriaux1/following{/other_user}","gists_url":"https://api.github.com/users/doutriaux1/gists{/gist_id}","starred_url":"https://api.github.com/users/doutriaux1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doutriaux1/subscriptions","organizations_url":"https://api.github.com/users/doutriaux1/orgs","repos_url":"https://api.github.com/users/doutriaux1/repos","events_url":"https://api.github.com/users/doutriaux1/events{/privacy}","received_events_url":"https://api.github.com/users/doutriaux1/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T15:24:51Z","updated_at":"2016-04-06T15:24:51Z","body":"looks like the wrap around failed, possibly when you sub select you turn off the modulo"}}