{"id":45543,"date":"2022-04-01T21:15:35","date_gmt":"2022-04-01T21:15:35","guid":{"rendered":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/?p=45543"},"modified":"2022-04-01T21:17:03","modified_gmt":"2022-04-01T21:17:03","slug":"using-polar2grid-and-noaa-class-viirs-data-to-create-imagery","status":"publish","type":"post","link":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/archives\/45543","title":{"rendered":"Using Polar2Grid and NOAA CLASS VIIRS data to create imagery"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1603\" height=\"1457\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25.png\" alt=\"\" class=\"wp-image-45547\" srcset=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25.png 1603w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25-300x273.png 300w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25-1024x931.png 1024w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25-768x698.png 768w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/noaa20_viirs_i05_20220201_145336_polar_canada_25-1536x1396.png 1536w\" sizes=\"auto, (max-width: 1603px) 100vw, 1603px\" \/><\/a><figcaption>NOAA-20 I05 (11.45 \u00b5m) imagery over the Arctic Ocean, 1455-1510 UTC on 1 February 2022 (Click to &#8212; greatly!! &#8212; enlarge)<\/figcaption><\/figure>\n\n\n\n<p>Previous blog posts (<a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/archives\/32778\">example<\/a>) have documented how to create imagery from the VIIRS instrument, and this one is another example.  For example, if you receive a request for VIIRS imagery such as this one:  &#8220;If you have time to try a case, you could pick Feb 1, 2022 near North Pole Point for 11 um channel&#8221; &#8212; how do you proceed?  A first step is to determine the day\/time of the data, and that&#8217;s achieved by looking at orbits over the Arctic, at <a href=\"https:\/\/www.ssec.wisc.edu\/datacenter\/polar_orbit_tracks\/#satellite:NOAA20;region:Arctic;\">this website<\/a>.  That website also has an <a href=\"https:\/\/www.ssec.wisc.edu\/datacenter\/polar_orbit_tracks\/data\/JPSS-1\/\">archive<\/a>, and the archive for Arctic passes on 1 February 2022 is <a href=\"https:\/\/www.ssec.wisc.edu\/datacenter\/polar_orbit_tracks\/data\/JPSS-1\/2022\/2022_02_01_032\/\">here<\/a>.  The <a href=\"https:\/\/www.ssec.wisc.edu\/datacenter\/polar_orbit_tracks\/data\/JPSS-1\/2022\/2022_02_01_032\/ARCTIC.gif\">image<\/a> shows NOAA-20 passing over Greenland, the Arctic Ocean, and then moving over eastern Russia between 1455 and 1510 UTC on 1 February 2022.  Now you know the times to request.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.avl.class.noaa.gov\/saa\/products\/welcome\">NOAA CLASS<\/a> is the data repository that stores VIIRS imagery from NOAA-20 and Suomi-NPP.  Go to the website, an log in (register if you have not already), and choose JPSS VIIRS SDRs (Operational Sensor Data Records) as shown below.  Choosing those data and clicking &gt;&gt;GO to the right of the drop-down menu bar will move you to a new data-selection menu, where you will select the day\/time of the data (1 February 2022, 14:55 Start time, 15:10 end time), and the band (I chose SVI05 &#8212; the 11.45 \u00b5m Imager channel, with 375-m resolution, that is:  <strong>VIIRS Imagery Band 05 SDR (SVI05) (public 02\/07\/2012)<\/strong> ), and the satellite (NOAA-20).  Geolocation data must also be selected, and Polar2Grid will expect the <strong>GITCO<\/strong> files.  Choose them ( <strong>VIIRS Image Bands SDR Ellipsoid Terrain Corrected Geolocation (GITCO) (public 02\/07\/2012)<\/strong>) as well.  It is very important, however, that your User Preferences are configured so that the data are disaggregated!  Click on <a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2019\/04\/UserPreferencesHighLightedToggle.gif\">User Preferences<\/a>, and make that selection.  The User Preferences page should include information as shown <a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2019\/04\/CompanionFileDeliveryShouldBeBlank.png\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/N20SelectionNOAACLASScrop.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"850\" src=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/N20SelectionNOAACLASScrop.png\" alt=\"\" class=\"wp-image-45546\" srcset=\"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/N20SelectionNOAACLASScrop.png 1000w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/N20SelectionNOAACLASScrop-300x255.png 300w, https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-content\/uploads\/sites\/5\/2022\/04\/N20SelectionNOAACLASScrop-768x653.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption>NOAA CLASS front page showing the VIIRS data to select (Click to enlarge)<\/figcaption><\/figure>\n\n\n\n<p>The steps above will produce 12 matches &#8212; 6 files of SVI05 and 6 GITCO files.  Submit your order and wait for the email notification that the files are ready.  While you are waiting, if you&#8217;ve not done so already, download the <a href=\"https:\/\/bin.ssec.wisc.edu\/pub\/CSPP\/hidden\/P2G\/v2.3\/CSPP_POLAR2GRID_V2.3.tar.gz\">Polar2Grid software<\/a> from CIMSS <a href=\"https:\/\/cimss.ssec.wisc.edu\/cspp\/\">CSPP<\/a> Site (CSPP:  Community Satellite Processing Package;  note that a free registration might be required).  Expand the downloaded (compressed tar) file into an empty directory, and enter this unix command:  export POLAR2GRID_HOME=\/directory\/where\/the\/expanded\/file\/sits.<\/p>\n\n\n\n<p>NOAA CLASS will send an email once the data are staged and ready for you.  Download those data, and then enter this command:<\/p>\n\n\n\n<p><code>sh .\/polar2grid.sh viirs_sdr gtiff -p i05 -g polar_canada -f \/directory\/holding\/downloaded\/SVI05Data\/SVI05* \/directory\/holding\/downloaded\/GITCOdata\/GITCO*<\/code><\/p>\n\n\n\n<p>That code takes the viirs_sdr and GITCO data pointed to by the -f flag and creates a geotiff of i05 (11.45) imagery.  Because these data are near the Pole, I&#8217;ve specified a grid (&#8216;-g polar_canada&#8217;) to be used (a full list of pre-defined grids is <a href=\"https:\/\/www.ssec.wisc.edu\/software\/polar2grid\/grids.html#\">here<\/a>, part of the Polar2Grid <a href=\"https:\/\/www.ssec.wisc.edu\/software\/polar2grid\/\">online documentation<\/a>).    The command will stitch together the data in the 6 different files, and you&#8217;ll see an image at full resolution, as shown above.  I also used software to add coastlines and lat\/lon (&#8216;grid&#8217;) lines.<\/p>\n\n\n\n<p><code>sh .\/add_coastlines.sh --add-grid --grid-D 10 10 --grid-d 10 10 --add-coastlines noaa20_viirs_i05_20220201_145336_polar_canada.tif<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previous blog posts (example) have documented how to create imagery from the VIIRS instrument, and this one is another example. For example, if you receive a request for VIIRS imagery such as this one: &#8220;If you have time to try a case, you could pick Feb 1, 2022 near North Pole Point for 11 um [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":45547,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37,78,109,48],"tags":[],"class_list":["post-45543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arctic","category-noaa-20","category-software","category-viirs"],"acf":[],"_links":{"self":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/45543","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=45543"}],"version-history":[{"count":5,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/45543\/revisions"}],"predecessor-version":[{"id":45552,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/posts\/45543\/revisions\/45552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/media\/45547"}],"wp:attachment":[{"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/media?parent=45543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/categories?post=45543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cimss.ssec.wisc.edu\/satellite-blog\/wp-json\/wp\/v2\/tags?post=45543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}