Title: assign lon on x-axis · Issue #2 · NCAR/wrf_python_tutorial · GitHub
Open Graph Title: assign lon on x-axis · Issue #2 · NCAR/wrf_python_tutorial
X Title: assign lon on x-axis · Issue #2 · NCAR/wrf_python_tutorial
Description: I used vertcross to get a longitude-pressure cross section of vertical wind. Set the start and end points at the specific latitude (28.718N) start_point = CoordPair(lat=28.718, lon=76) end_point = CoordPair(lat=28.718, lon=78) w_cross = ...
Open Graph Description: I used vertcross to get a longitude-pressure cross section of vertical wind. Set the start and end points at the specific latitude (28.718N) start_point = CoordPair(lat=28.718, lon=76) end_point = ...
X Description: I used vertcross to get a longitude-pressure cross section of vertical wind. Set the start and end points at the specific latitude (28.718N) start_point = CoordPair(lat=28.718, lon=76) end_point = ...
Opengraph URL: https://github.com/NCAR/wrf_python_tutorial/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"assign lon on x-axis","articleBody":"I used vertcross to get a longitude-pressure cross section of vertical wind.\r\n# Set the start and end points at the specific latitude (28.718N)\r\nstart_point = CoordPair(lat=28.718, lon=76)\r\nend_point = CoordPair(lat=28.718, lon=78)\r\n\r\nw_cross = vertcross(w, z, wrfin=file, start_point=start_point,\r\n end_point=end_point, latlon=True, meta=True)\r\n\r\n After that I put height labels on y-axis using the following code:\r\n# Set the y-ticks to use height labels.\r\nvert_vals = to_np(w_cross.coords[\"vertical\"])\r\nv_ticks = np.arange(vert_vals.shape[0])\r\nax.set_yticks(v_ticks[::20])\r\nax.set_yticklabels(vert_vals[::20], fontsize=13\r\n\r\nNow I want to put lon labels on x-axis but the w_cross has coords vertical and xy_loc and xy_loc is a CoordPair of lat and lon values. \r\n\r\nHow to extract lon out of this coordpair and put it on the x-axis?\r\n\r\nThanks in advance for your help.","author":{"url":"https://github.com/MohitDahliya","@type":"Person","name":"MohitDahliya"},"datePublished":"2023-11-24T16:15:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/wrf_python_tutorial/issues/2"}
| 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:5d9a9569-9ad3-ac4c-b4b8-680fdc38d073 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FD4:3F1074:165E30:1D2DD5:6A5AC7BF |
| html-safe-nonce | af7513253a53f7f493feb99f4c3272585204d12afd21bde377f4a3b40c83a7b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkQ0OjNGMTA3NDoxNjVFMzA6MUQyREQ1OjZBNUFDN0JGIiwidmlzaXRvcl9pZCI6IjgxODgzNDI2NTMyNTM1MDI5MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cbed74f35280aa83749832f096fbc785d5b0917f466ddc8028afd3b644d048e0 |
| hovercard-subject-tag | issue:2009952129 |
| 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/NCAR/wrf_python_tutorial/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66ceb97c0b65ef193900924c8534be9d071ba9db1e0a86b1b8bf18b4aef080df/NCAR/wrf_python_tutorial/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66ceb97c0b65ef193900924c8534be9d071ba9db1e0a86b1b8bf18b4aef080df/NCAR/wrf_python_tutorial/issues/2 |
| og:image:alt | I used vertcross to get a longitude-pressure cross section of vertical wind. Set the start and end points at the specific latitude (28.718N) start_point = CoordPair(lat=28.718, lon=76) end_point = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MohitDahliya |
| hostname | github.com |
| expected-hostname | github.com |
| None | f422022de939199d6afcbaac024b42b6232a3498a95f198e17717afb8b46fb15 |
| turbo-cache-control | no-preview |
| go-import | github.com/NCAR/wrf_python_tutorial git https://github.com/NCAR/wrf_python_tutorial.git |
| octolytics-dimension-user_id | 2007542 |
| octolytics-dimension-user_login | NCAR |
| octolytics-dimension-repository_id | 92535823 |
| octolytics-dimension-repository_nwo | NCAR/wrf_python_tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 92535823 |
| octolytics-dimension-repository_network_root_nwo | NCAR/wrf_python_tutorial |
| 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 | 2fa01ceb3b3a801409f050561abfb062094702d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width