{"id":61371,"date":"2024-10-30T13:39:48","date_gmt":"2024-10-30T13:39:48","guid":{"rendered":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/?p=61371"},"modified":"2024-10-30T13:43:27","modified_gmt":"2024-10-30T13:43:27","slug":"using-polar2grid-to-create-mirs-imagery","status":"publish","type":"post","link":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/archives\/61371","title":{"rendered":"Using Polar2Grid to create MIRS imagery"},"content":{"rendered":"\n<p>The Community Satellite Processing Package (<a href=\"https:\/\/cimss.ssec.wisc.edu\/cspp\/\">CSPP<\/a>) software <a href=\"https:\/\/cimss.ssec.wisc.edu\/cspp\/polar2grid_v3.1.shtml\">Polar2Grid<\/a> supports the creation of imagery using Microwave Integrated Retrieval Software (MIRS) algorithms. This is useful because on-line sources of imagery occasionally go missing. Consider, for example, the Snowfall Rate values that are available at <a href=\"https:\/\/sfr.umd.edu\/?page=SFR-Alaska\">this site<\/a> from <a href=\"https:\/\/gina.alaska.edu\/\">GINA<\/a>.  NOAA-20 was viewing parts of Alaska, but no data were created.  Polar2Grid can help.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/SFR_1208_1324UTC_28October2024_N20_NPPtoggle.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"1706\" height=\"1060\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/SFR_1208_1324UTC_28October2024_N20_NPPtoggle.gif\" alt=\"\" class=\"wp-image-61372\"\/><\/a><figcaption class=\"wp-element-caption\">Snowfall Rates at 1208 (NOAA-20) and 1324 (Suomi-NPP) on 28 October 2024 (Click to enlarge)<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Polar2Grid is self-contained unix-based software that creates reprojected imagery from JPSS data that can be found online. One set of online data sources are the NOAA\/NESDIS\/Amazon Web Service bit buckets for Suomi-NPP (<a href=\"https:\/\/noaa-nesdis-snpp-pds.s3.amazonaws.com\/index.html\">here<\/a>) and for NOAA-20 (<a href=\"https:\/\/noaa-nesdis-n20-pds.s3.amazonaws.com\/index.html\">here<\/a>). JPSS Satellites include many different data types. For MIRS products (a list of MIRS products that Polar2Grid can create is <a href=\"https:\/\/www.ssec.wisc.edu\/software\/polar2grid\/readers\/mirs.html\">here<\/a>), click on &#8220;NPR-MIRS-IMG&#8221; as highlighted below.  Clicking will reveal different years, and then different months and days.  Click through until you reach the date you want; for this case, that&#8217;s 28 October 2024.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1665\" height=\"812\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20FrontPage_ArrowToggle.gif\" alt=\"\" class=\"wp-image-61373\"\/><figcaption class=\"wp-element-caption\">List of JPSS AWS Buckets for NOAA-20 (Click to enlarge)<\/figcaption><\/figure>\n\n\n\n<p>Once you get to the date you are interested in, you&#8217;ll see many pages of files, because each file covers about 30 seconds of information from the satellite.  Page 14, shown below (with 100 files per page!), shows data ending at 1226 UTC on 28 October.  For this blog post, I&#8217;m looking for data (based on <a href=\"https:\/\/www.ssec.wisc.edu\/datacenter\/polar_orbit_tracks\/data\/JPSS-1\/2024\/2024_10_28_302\/ARCTIC.gif\">this prediction of the NOAA-20 orbit<\/a>) between 1211 and 1217 UTC on 28 October (meaning I&#8217;d have to scroll up on this page online).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC-1024x495.png\" alt=\"\" class=\"wp-image-61374\" srcset=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC-1024x495.png 1024w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC-300x145.png 300w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC-768x372.png 768w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC-1536x743.png 1536w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/AWSNOAA20MIRS_IMGFILES_ending1226UTC.png 1664w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">MIRS files available on page 14 (28 October 2024) for NOAA-20;  100 entries per page.  (Click to enlarge)<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>After downloading the files, and also the files for Suomi NPP near 1324 UTC on the 28th, it&#8217;s time to create imagery.  This is done using the <code>-r mirs<\/code> flag (that is, the MIRS reader) in Polar2Grid.  The commands I used (from within the $POLAR2GRID_HOME\/bin directory) are below.  Prior to running polar2grid, I created and defined a grid (&#8216;ANC&#8217;) and stored the grid parameters in a file (&#8216;ANC.yaml&#8217;) using the grid helper command:  .\/<code>p2g_grid_helper.sh ANC -155.0 62.0 2000 -2000 1440 960 &gt; ANC.yaml<\/code> ; the grid is centered at 62<sup>o<\/sup>N, 155<sup>o<\/sup>W, has 2000-m resolution in the east-west and north-south directions, and the grid has dimensions of 1440&#215;960.<\/p>\n\n\n\n<p>.\/polar2grid.sh -r mirs -w geotiff -p sfr -g ANC &#8211;grid-configs .\/ANC.yaml -f .\/path_to_N20_data\/NPR-MIRS-IMG*n20*s20241028*<br>.\/polar2grid.sh -r mirs -w geotiff -p sfr -g ANC &#8211;grid-configs .\/ANC.yaml -f .\/path_to_NPP_data\/NPR-MIRS-IMG<em>*<\/em>npp<em>*<\/em>s2024102813*<\/p>\n\n\n\n<p>Then I added a predefined colormap to the .tif file that Polar2Grid created, and then added coastlines, lat\/lon lines, and a colorbar to the final image with the commands below.<br><br>.\/add_colormap.sh \/path_to_colortable\/SFR_colortable.txt noaa20_atms_sfr_20241028_121155_ANC.tif <br>.\/add_colormap.sh \/path_to_colortable\/SFR_colortable.txt npp_atms_sfr_20241028_132706_ANC.tif<br>.\/add_coastlines.sh &#8211;add-coastlines &#8211;add-grid &#8211;grid-D 5.0 5.0 &#8211;grid-d 5.0 5.0 &#8211;grid-text-size 16 &#8211;add-colorbar &#8211;colorbar-height 32 &#8211;colorbar-text-size 24 &#8211;colorbar-tick-marks 5.0 &#8211;colorbar-minor-tick-marks 5 noaa20_atms_sfr_20241028_121155_ANC.tif<br>.\/add_coastlines.sh &#8211;add-coastlines &#8211;add-grid &#8211;grid-D 5.0 5.0 &#8211;grid-d 5.0 5.0 &#8211;grid-text-size 16 &#8211;add-colorbar &#8211;colorbar-height 32 &#8211;colorbar-text-size 24 &#8211;colorbar-tick-marks 5.0 &#8211;colorbar-minor-tick-marks 5 npp_atms_sfr_20241028_132706_ANC.tif<\/p>\n\n\n\n<p>The imagery was annotated, and the toggle below is the result. The <a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/npp_atms_sfr_20241028_132706_ANCTL.png\">Suomi NPP image below<\/a> compares well with the <a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/SFR_1324UTC_28October2024_NPP.png\">image<\/a> in the toggle at the top of the blog post, and the earlier NOAA-20 Snow Fall Rate has been created; the slow progress of enhanced snowfalls approaching the Anchorage area can be discerned.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/n20_npp_atms_sfr_20241028_121155_to_132706_ANC_toggle.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"960\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2024\/10\/n20_npp_atms_sfr_20241028_121155_to_132706_ANC_toggle.gif\" alt=\"\" class=\"wp-image-61392\"\/><\/a><figcaption class=\"wp-element-caption\">MIRS Snow Fall Rate from NOAA-20 (1211 UTC) and Suomi-NPP (1327 UTC) on 28 October 2024 (Click to enlarge)<\/figcaption><\/figure>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Community Satellite Processing Package (CSPP) software Polar2Grid supports the creation of imagery using Microwave Integrated Retrieval Software (MIRS) algorithms. This is useful because on-line sources of imagery occasionally go missing. Consider, for example, the Snowfall Rate values that are available at this site from GINA. NOAA-20 was viewing parts of Alaska, but no data [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":61393,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[79,93,78,109,49,39,5],"tags":[],"class_list":["post-61371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microwave","category-mirs","category-noaa-20","category-software","category-suomi_npp","category-training","category-winter-weather"],"acf":[],"_links":{"self":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/61371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/comments?post=61371"}],"version-history":[{"count":5,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/61371\/revisions"}],"predecessor-version":[{"id":61396,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/61371\/revisions\/61396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/media\/61393"}],"wp:attachment":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/media?parent=61371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/categories?post=61371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/tags?post=61371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}