{"id":8952,"date":"2017-11-20T09:00:50","date_gmt":"2017-11-20T14:00:50","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=8952"},"modified":"2017-11-20T08:56:34","modified_gmt":"2017-11-20T13:56:34","slug":"getelevations","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2017\/11\/20\/getelevations\/","title":{"rendered":"getElevations"},"content":{"rendered":"<p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/76890\">Will<\/a>&#8216;s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/50704-getelevations-latitude--longitude--varargin-\">getElevations<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/35549-jaroslaw-tuszynski\">Jaroslaw Tuszynski<\/a>.<\/p>\n<p>Always a fan of simple, effective utilities, I couldn&#8217;t pass up selecting this useful little function. I discovered it while searching for code that would provide the altitude of any location on the Earth&#8217;s surface. My specific use case related to some satellite ground station analysis I was conducting, but I can see lots of other reasons why it would be useful to have elevation data. Lo and behold, this function is exactly what I needed!<\/p>\n<p>Jaroslaw derives his solution from Google Maps and its API web service. The website is queried, the URL is parsed, and the elevation extracted. The other thing I like about this submission is the quality of the craftsmanship. The code provides clear, concise help documentation. It works with scalar and vector latitude\/longitude pairs. It has robust and helpful error handling. Well done!<br \/>\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/files\/getElevations_help.png\"><img decoding=\"async\" loading=\"lazy\" width=\"600\" height=\"427\" class=\"alignnone size-full wp-image-8970\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/getElevations_help.png\" alt=\"\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/pick\/files\/elevProfile.png\"><img decoding=\"async\" loading=\"lazy\" width=\"702\" height=\"629\" class=\"alignnone size-full wp-image-8976\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/elevProfile.png\" alt=\"\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I drove this afternoon from southern Virginia to central Maryland. Thanks to this submission, I now know that I am 114.3 meters farther from sea level than I was this morning. What fun facts might you uncover?<\/p>\n<p>Let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=8952#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/50704-getelevations-latitude--longitude--varargin-#comments\">comment<\/a> for Jaroslaw.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/pick\/files\/elevProfile.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>Will&#8216;s pick this week is getElevations by Jaroslaw Tuszynski.<br \/>\nAlways a fan of simple, effective utilities, I couldn&#8217;t pass up selecting this useful little function. I discovered it while&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2017\/11\/20\/getelevations\/\">read more >><\/a><\/p>\n","protected":false},"author":45,"featured_media":8976,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,28],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/8952"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=8952"}],"version-history":[{"count":7,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/8952\/revisions"}],"predecessor-version":[{"id":8978,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/8952\/revisions\/8978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media\/8976"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=8952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=8952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=8952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}