{"id":245,"date":"2014-07-03T12:55:45","date_gmt":"2014-07-03T18:55:45","guid":{"rendered":"https:\/\/inside.nssl.noaa.gov\/wdssii\/?p=245"},"modified":"2017-01-23T11:59:53","modified_gmt":"2017-01-23T17:59:53","slug":"qced-radar-data","status":"publish","type":"post","link":"https:\/\/inside.nssl.noaa.gov\/wdssii\/2014\/07\/qced-radar-data\/","title":{"rendered":"Creating QCed Radar Data"},"content":{"rendered":"<p><strong>Written by Bryan Burlingame <strong> [Part 2 of <a href=\"https:\/\/inside.nssl.noaa.gov\/wdssii\/2014\/07\/interpolating-reflectivity-to-10c-level-in-rapruc-data\/\">How to Create Reflectivity -10C<\/a>]<\/strong><br \/>\n<\/strong><\/p>\n<p><!--\nP { margin-bottom: 0.08in; direction: ltr; widows: 2; orphans: 2; }A:link {  }\n--><span style=\"text-decoration: underline\"><b>NEXRAD NCDC Data:<\/b><\/span><\/p>\n<p>Download individual NEXRAD radar data from:<\/p>\n<p><a href=\"http:\/\/www.ncdc.noaa.gov\/nexradinv\/map.jsp\">http:\/\/www.ncdc.noaa.gov\/nexradinv\/map.jsp<\/a><\/p>\n<p>Or in bulk from:<\/p>\n<p><a href=\"http:\/\/has.ncdc.noaa.gov\/pls\/plhas\/HAS.FileAppRouter?datasetname=6500&amp;subqueryby=STATION&amp;applname=&amp;outdest=FILE\">http:\/\/has.ncdc.noaa.gov\/pls\/plhas\/HAS.FileAppRouter?datasetname=6500&amp;subqueryby=STATION&amp;applname=&amp;outdest=FILE<\/a><\/p>\n<p>Once downloaded, untar and unzip any files if necessary. Then same as mentioned above organize the files so that only the files you actually need are in a directory.<\/p>\n<p>&nbsp;<\/p>\n<p><!--\nP { margin-bottom: 0.08in; direction: ltr; widows: 2; orphans: 2; }A:link {  }\n--><\/p>\n<p align=\"CENTER\"><span style=\"font-size: large\"><span style=\"text-decoration: underline\"><b>Converting NEXRAD Level II Data to WDSS-II NetCDF<\/b><\/span><\/span><\/p>\n<p>The steps below need to be done individually for all the radars that you plan to merge (i.e., If you have data from 3 radars, you must run <span style=\"color: #ff0000\">ldm2netcdf<\/span> (below) 3 times, once for each radar.)<\/p>\n<p>I recommend reading the \u201cquick usage\u201d guides that are available via the WDSS-II website, or typing just the command into the terminal to see the other flags that can be passed. Below explains only the flags which we used.<\/p>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol>\n<li>The command needed to convert the NEXRAD data to WDSS-II NetCDF is <span style=\"color: #ff0000\">ldm2netcdf<\/span><b>. <\/b>An example of the command issued is below.<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<p><span style=\"color: #ff0000\">ldm2netcdf -i \/path\/to\/NEXRAD\/data -a -1 -p KXXX -s KXXX -o \/path\/to\/radar\/NetCDF\/ \u2013verbose<\/span><\/p>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol>\n<ol type=\"a\">\n<li>\u2013<b>i <\/b>= input radar directory (where the radar data were downloaded to)<\/li>\n<li>\u2013<b>a <\/b>= reads old LDM files in the input directory<\/li>\n<li>\u20131<b> <\/b>= (one) Not real time<\/li>\n<li>\u2013<b>p <\/b>= pattern recognition.. aka the radar site identifier (e.g. KXXX)<\/li>\n<li>\u2013<b>s <\/b>= the radar site (e.g. KXXX)<\/li>\n<li>\u2013<b>o <\/b>= the output directory (where you want your now NetCDF files to go, if directory does not exist, one will be created for you).<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol start=\"2\">\n<li>Use <span style=\"color: #ff0000\">replaceIndex <\/span>to create the needed configuration file code_index.xml.<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<p><span style=\"color: #ff0000\">replaceIndex -i \/path\/to\/code_index.fam -o \/path\/to\/code_index.xml<\/span><\/p>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol>\n<ol type=\"a\">\n<li>\u2013<b>i <\/b>= path should the same as the output directory from <span style=\"color: #ff0000\">ldm2netcdf<\/span>, linking to the code_index.fam\/ directory generated by that command<\/li>\n<li>\u2013<b>o <\/b>= should be the same path as the input here, except the output is code_index.xml<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<p align=\"CENTER\"><span style=\"font-size: large\"><span style=\"text-decoration: underline\"><b>De-Aliasing NEXRAD Level II Velocity Data<\/b><\/span><\/span><\/p>\n<p>In this step we will De-alias the radar velocity data.<\/p>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol>\n<li>The command used in this step is \u201c<span style=\"color: #ff0000\">dealias2d.<\/span>\u201d Here is an example of the command issued.<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<p><span style=\"color: #ff0000\">dealias2d -i \/path\/to\/code_index.xml -o \/path\/to\/radar\/files -R KXXX \u2013verbose<\/span><\/p>\n<ol type=\"a\">\n<li>\u2013<b>i <\/b>= path should the same as the output directory from <span style=\"color: #ff0000\">replaceIndex <\/span>ran in the previous step, linking to the code_index.xml file which is the configuration file for all the radar data<\/li>\n<li>\u2013<b>o <\/b>= should be the same output path as used above in <span style=\"color: #ff0000\">ldm2netcdf<\/span>.<\/li>\n<li>\u2013<b>R <\/b>= should be the same as the flag passed for \u2013p \u2013s in <span style=\"color: #ff0000\">ldm2netcdf<\/span> (e.g. KXXX)<\/li>\n<\/ol>\n<ol>\n<ol type=\"a\">\n<ol type=\"i\">\n<ol start=\"2\">\n<li>Run <span style=\"color: #ff0000\">replaceIndex<\/span> on the code_index.fam directory in your NetCDF output directort. The command issued should be identical to the command issued after running <span style=\"color: #ff0000\">ldm2netcdf<\/span>. This will update the configuration file so it contains the newly de-aliased velocity data.<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/ol>\n<p align=\"CENTER\"><span style=\"font-size: large\"><span style=\"text-decoration: underline\"><b>Quality Controlling NEXRAD Level II Reflectivity Data<\/b><\/span><\/span><\/p>\n<p>This step will run Quality Control (QC) tests on the radar data to eliminate any noise and clutter. There are two different commands that can be used, and it depends on whether or not your radar data contains dual-pol.<\/p>\n<ol>\n<li>QC the radar data using <span style=\"color: #ff0000\">w2qcnn<\/span> if you are using radar data that does not contain dual-polarization information or use<span style=\"color: #ff0000\"> w2qcnndp<\/span> if using data that does contain dual-polarization information.<\/li>\n<li>For <span style=\"color: #ff0000\">w2qcnn<\/span>, here is an example command:<\/li>\n<\/ol>\n<p><span style=\"color: #ff0000\">w2qcnn -u -i xml:\/path\/to\/code_index.xml -V Velocity -E \/path\/to\/terrain\/KXXX.nc -R 0.25&#215;0.5&#215;460 -o \/path\/to\/radar\/NetCDF &#8211;verbose<\/span><\/p>\n<ol>\n<li>For <span style=\"color: #ff0000\">w2qcnndp<\/span>, here is an example command:<\/li>\n<\/ol>\n<p><span style=\"color: #ff0000\">w2qcnndp -i xml:\/path\/to\/code_index.xml -V Velocity -E \/path\/to\/terrain\/KXXX.nc -R 0.25&#215;0.5&#215;460 -s KRRR -o \/path\/to\/radar\/files \u2013 verbose<\/span><\/p>\n<ol type=\"a\">\n<li>\u2013<b>u<\/b> = creates virtual volumes (necessary for w2qcnn; do not use for w2qcnndp)<\/li>\n<li>\u2013<b>i<\/b> = path should the same as the output directory from <span style=\"color: #ff0000\">replaceIndex <\/span>ran in the previous step, linking to the code_index.xml file which is the configuration file for all the radar data<\/li>\n<li>\u2013<b>V <\/b>= Velocity \u2013 tells the program to use dealiased (rather than aliased) velocity in quality control<\/li>\n<li>\u2013<b>E <\/b>= (path) \u2013 tells the program where terrain data for each radar may be found for use in quality control<\/li>\n<li>\u2013<b>R <\/b>= 0.25&#215;0.5&#215;460 \u2013 tells the program that super-resolution Level II radar data is being quality controlled; if super-resolution Level II radar data are not being utilized, then set this to 1x1x460<\/li>\n<li>\u2013<b>S <\/b>= KRRR \u2013 provides the radar site identifier to the program<\/li>\n<li>\u2013<b>o <\/b>= path to the output file directory, should be the same output path as used above in <span style=\"color: #ff0000\">ldm2netcdf<\/span> and <span style=\"color: #ff0000\">dealias2d<\/span>.<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Run <span style=\"color: #ff0000\">replaceIndex<\/span> on the code_index.fam directory in your NetCDF output directort. The command issued should be identical to the command issued after running <span style=\"color: #ff0000\">ldm2netcdf <\/span>and<span style=\"color: #ff0000\"> dealias2d<\/span>. This will update the configuration file so it contains the newly QC\u2019d data.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Written by Bryan Burlingame [Part 2 of How to Create Reflectivity -10C] NEXRAD NCDC Data: Download individual NEXRAD radar data from: http:\/\/www.ncdc.noaa.gov\/nexradinv\/map.jsp Or in bulk from: http:\/\/has.ncdc.noaa.gov\/pls\/plhas\/HAS.FileAppRouter?datasetname=6500&amp;subqueryby=STATION&amp;applname=&amp;outdest=FILE Once downloaded, untar&#8230; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/inside.nssl.noaa.gov\/wdssii\/2014\/07\/qced-radar-data\/\" 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":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/245","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=245"}],"version-history":[{"count":3,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/posts\/245\/revisions\/256"}],"wp:attachment":[{"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inside.nssl.noaa.gov\/wdssii\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}