Title: Implementation missing for UGRID start_index attribute · Issue #29 · psyplot/psyplot · GitHub
Open Graph Title: Implementation missing for UGRID start_index attribute · Issue #29 · psyplot/psyplot
X Title: Implementation missing for UGRID start_index attribute · Issue #29 · psyplot/psyplot
Description: The UGRID standard allows node connectivities to be specified as zero-based or one-based. The base is indicated by the attribute start_index of the connectivity variable. Code Sample, a copy-pastable example if possible int mesh_element_...
Open Graph Description: The UGRID standard allows node connectivities to be specified as zero-based or one-based. The base is indicated by the attribute start_index of the connectivity variable. Code Sample, a copy-pastab...
X Description: The UGRID standard allows node connectivities to be specified as zero-based or one-based. The base is indicated by the attribute start_index of the connectivity variable. Code Sample, a copy-pastab...
Opengraph URL: https://github.com/psyplot/psyplot/issues/29
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implementation missing for UGRID start_index attribute","articleBody":"The UGRID standard allows node connectivities to be specified as zero-based or one-based. The base is indicated by the attribute `start_index` of the connectivity variable. \r\n\r\n#### Code Sample, a copy-pastable example if possible\r\n\r\n```\r\n\tint mesh_element_node_connectivity(mesh_element, ungridded00004) ;\r\n\t\tmesh_element_node_connectivity:long_name = \"mesh_element_node_connectivity\" ;\r\n\t\tmesh_element_node_connectivity:standard_name = \"face_node_connectivity\" ;\r\n\t\tmesh_element_node_connectivity:start_index = 1;\r\n```\r\n\r\n#### Problem description\r\n\r\nCurrently, `psyplot` seems to handle only zero-based connectivities and disregards this attribute.\r\n\r\nOn the above example, an index-out-of-bounds error is thrown.\r\n\r\n#### Workaround\r\n\r\nAs a workaround, you can decrease the index by one\r\n\r\n```python\r\n ds['mesh_element_node_connectivity'][:] = ds['mesh_element_node_connectivity'][:] - 1\r\n ds['mesh_element_node_connectivity'].__setitem__('start_index',0)\r\n\r\n```\r\n\r\n#### NOTE\r\nThis is a bug report.\r\n\r\nFor requesting new features, use [this template](https://github.com/psyplot/psyplot/issues/new?template=new_feature.md\u0026title=NEW+FEATURE:).\r\n\r\nFor changing existing features, use [this template](https://github.com/psyplot/psyplot/issues/new?template=change_feature.md\u0026title=CHANGE+FEATURE:).\r\n","author":{"url":"https://github.com/platipodium","@type":"Person","name":"platipodium"},"datePublished":"2020-11-19T21:10:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29/psyplot/issues/29"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cb4e0d2a-5be0-82e8-1363-1543c215bfb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E362:9BC04:A44CE:D523C:698D3170 |
| html-safe-nonce | 00b15013f4f36855fa5451d1fcd9a201e20786c78b655b35355b132381303f5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzYyOjlCQzA0OkE0NENFOkQ1MjNDOjY5OEQzMTcwIiwidmlzaXRvcl9pZCI6IjU4Mzk1MDY3Mzc5MjU1MzQwNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a435bed1dfac7170767b3a480ee56d7b0be067a0a2d456691ec0054fc44a325 |
| hovercard-subject-tag | issue:746926629 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/psyplot/psyplot/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3bc9be06899de3fd9f10befaf95ae6aa51e3c283d30615eff43a3f1bc432968e/psyplot/psyplot/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3bc9be06899de3fd9f10befaf95ae6aa51e3c283d30615eff43a3f1bc432968e/psyplot/psyplot/issues/29 |
| og:image:alt | The UGRID standard allows node connectivities to be specified as zero-based or one-based. The base is indicated by the attribute start_index of the connectivity variable. Code Sample, a copy-pastab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | platipodium |
| hostname | github.com |
| expected-hostname | github.com |
| None | 685c54ce10ba532f53d13f7d7048395579317474c9e237f293605dec92d65284 |
| turbo-cache-control | no-preview |
| go-import | github.com/psyplot/psyplot git https://github.com/psyplot/psyplot.git |
| octolytics-dimension-user_id | 60222268 |
| octolytics-dimension-user_login | psyplot |
| octolytics-dimension-repository_id | 87944102 |
| octolytics-dimension-repository_nwo | psyplot/psyplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 87944102 |
| octolytics-dimension-repository_network_root_nwo | psyplot/psyplot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8e173e7f9a7a23f40f2b89fda985ea0b7eb22f63 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width