Title: array_thresh baz estimate range issue · Issue #38 · uafgeotools/array_processing · GitHub
Open Graph Title: array_thresh baz estimate range issue · Issue #38 · uafgeotools/array_processing
X Title: array_thresh baz estimate range issue · Issue #38 · uafgeotools/array_processing
Description: From @kfmckee: I found a small issue with array_processing.tools.generic.array_thresh. The back-azimuth estimates are from 0-360, so if az_volc+-az_diff are greater than 360 or less than 0, they are excluded from the sorting process. I w...
Open Graph Description: From @kfmckee: I found a small issue with array_processing.tools.generic.array_thresh. The back-azimuth estimates are from 0-360, so if az_volc+-az_diff are greater than 360 or less than 0, they ar...
X Description: From @kfmckee: I found a small issue with array_processing.tools.generic.array_thresh. The back-azimuth estimates are from 0-360, so if az_volc+-az_diff are greater than 360 or less than 0, they ar...
Opengraph URL: https://github.com/uafgeotools/array_processing/issues/38
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"array_thresh baz estimate range issue","articleBody":"From @kfmckee:\r\n\r\n\u003e I found a small issue with array_processing.tools.generic.array_thresh. The back-azimuth estimates are from 0-360, so if az_volc+-az_diff are greater than 360 or less than 0, they are excluded from the sorting process. I wrote up a work around and figured I would share. Not the prettiest, but seems to work.\r\n\u003e ```python\r\n\u003e if az_volc - az_diff \u003c 0:\r\n\u003e for j in range(np.size(az)):\r\n\u003e if az[j] \u003e 180:\r\n\u003e az[j] = az[j] - 360\r\n\u003e az_good = np.where((az \u003e= az_volc - az_diff) \u0026 (az \u003c= az_volc + az_diff))[0]\r\n\u003e for j in range(np.size(az)):\r\n\u003e if az[j] \u003c 0:\r\n\u003e az[j] = az[j] + 360\r\n\u003e elif az_volc + az_diff \u003e 360:\r\n\u003e for j in range(np.size(az)):\r\n\u003e if az[j] \u003c 180:\r\n\u003e az[j] = az[j] + 360\r\n\u003e az_good = np.where((az \u003e= az_volc - az_diff) \u0026 (az \u003c= az_volc + az_diff))[0]\r\n\u003e for j in range(np.size(az)):\r\n\u003e if az[j] \u003e 360:\r\n\u003e az[j] = az[j] - 360\r\n\u003e else:\r\n\u003e az_good = np.where((az \u003e= az_volc - az_diff) \u0026 (az \u003c= az_volc + az_diff))[0]\r\n\u003e ```","author":{"url":"https://github.com/liamtoney","@type":"Person","name":"liamtoney"},"datePublished":"2022-04-07T18:24:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/38/array_processing/issues/38"}
| 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:45031e1b-0640-dc6a-e4d3-c77d53b1f775 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98D6:2FB70B:98EC52:D7FC03:6978C1FB |
| html-safe-nonce | 83d4fcbd2d917c7c7537a62d86be852d597c9a0adaaafac08e7edf15fd141774 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEQ2OjJGQjcwQjo5OEVDNTI6RDdGQzAzOjY5NzhDMUZCIiwidmlzaXRvcl9pZCI6IjU1MjQ5MjUwODM4NDkxMTQxMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dfe35303b30adb9d553196d30131d629e262fdd0d180f5fd107d664fea730ad8 |
| hovercard-subject-tag | issue:1196419650 |
| 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/uafgeotools/array_processing/38/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5fc01c36f77e4772b79177e84f4bfeb7b45647447f1b0b044795dfb340e3fc5/uafgeotools/array_processing/issues/38 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5fc01c36f77e4772b79177e84f4bfeb7b45647447f1b0b044795dfb340e3fc5/uafgeotools/array_processing/issues/38 |
| og:image:alt | From @kfmckee: I found a small issue with array_processing.tools.generic.array_thresh. The back-azimuth estimates are from 0-360, so if az_volc+-az_diff are greater than 360 or less than 0, they ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | liamtoney |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/uafgeotools/array_processing git https://github.com/uafgeotools/array_processing.git |
| octolytics-dimension-user_id | 12850863 |
| octolytics-dimension-user_login | uafgeotools |
| octolytics-dimension-repository_id | 211374275 |
| octolytics-dimension-repository_nwo | uafgeotools/array_processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 211374275 |
| octolytics-dimension-repository_network_root_nwo | uafgeotools/array_processing |
| 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 | 9520342ca7ead2f1a011aa96eaff82fc054a4970 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width