{"id":42,"date":"2013-12-17T10:11:49","date_gmt":"2013-12-17T16:11:49","guid":{"rendered":"https:\/\/inside.nssl.noaa.gov\/wdssii\/?p=42"},"modified":"2017-01-23T11:59:56","modified_gmt":"2017-01-23T17:59:56","slug":"how-to-get-the-t-and-b-given-a-radar-name","status":"publish","type":"post","link":"https:\/\/inside.nssl.noaa.gov\/wdssii\/2013\/12\/how-to-get-the-t-and-b-given-a-radar-name\/","title":{"rendered":"How to get the -t and -b given a radar name"},"content":{"rendered":"<p>Lots of WDSS-II algorithms (w2merger, w2pngconvert, etc.) ask for a top-left and bottom-right corner.\u00a0 Perhaps you are processing single radar data in a script and want to automatically determine what to specify for -t and -b &#8230;<\/p>\n<p>Here&#8217;s a sequence of UNIX commands that you can use to obtain the -t and -b given a radar name:<\/p>\n<pre>TOP=`grep -A 2 $RADAR ~\/WDSS2\/w2config\/misc\/radarinfo.xml | head -2 | tail -1 | sed 's\/[=\\\"]\/ \/g' | awk '{print $3+4,$5-4}'`<\/pre>\n<pre>BOT=`grep -A 2 $RADAR ~\/WDSS2\/w2config\/misc\/radarinfo.xml | head -2 | tail -1 | sed 's\/[=\\\"]\/ \/g' | awk '{print $3-4,$5+4}'`<\/pre>\n<p>Try it with your favorite radar.\u00a0 I have it in bash syntax, but obviously, you can put this in pretty much any script.<\/p>\n<p>The -4 and +4 at the end indicate that we are going 4 decimal degrees (approximately 400 km) from the radar center. Obviously, you can\/should change that depending on your needs.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lots of WDSS-II algorithms (w2merger, w2pngconvert, etc.) ask for a top-left and bottom-right corner.\u00a0 Perhaps you are processing single radar data in a script and want to automatically determine what&#8230; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/inside.nssl.noaa.gov\/wdssii\/2013\/12\/how-to-get-the-t-and-b-given-a-radar-name\/\" class=\"more-link\">Read more \u00bb<\/a><\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[10],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-tips","tag-tips"],"_links":{"self":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":1,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/42\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}