{"id":131,"date":"2017-08-08T20:12:51","date_gmt":"2017-08-08T20:12:51","guid":{"rendered":"https:\/\/home.physics.wisc.edu\/gilbert2\/?page_id=131"},"modified":"2026-03-09T02:30:05","modified_gmt":"2026-03-09T02:30:05","slug":"software","status":"publish","type":"page","link":"https:\/\/home.physics.wisc.edu\/gilbert\/software\/","title":{"rendered":"Software"},"content":{"rendered":"<h1 style=\"margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--20);\" class=\"is-style-mini-bar wp-block-post-title\">Software<\/h1><div id=\"\" class=\"wp-block-group alignfull has-background  has-base-background-color\" style=\"margin-top:0;margin-bottom:0; padding-top:var(--wp--preset--spacing--40); padding-bottom:var(--wp--preset--spacing--60);\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-columns alignnone is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\"><div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" ><div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\"><h2>GG Macros<\/h2>\r\n<p class=\"normaltext\">The Gilbert Group Macros (GG Macros) were developed by Benjamin Gilbert (<a href=\"mailto:bgilbert@lbl.gov\">bgilbert@lbl.gov<\/a>) and Pupa Gilbert (<a href=\"mailto:pupa@physics.wisc.edu\">pupa@physics.wisc.edu<\/a>). The GG Macros run on Mac and PC, are ready-to-use, free of charge, and are recommended to analyze synchrotron spectromicroscopy data, that is, images stacked as a function of photon energy, or polarization of the illuminating x-rays.<\/p>\r\n<p class=\"normaltext\">1. Download Igor Pro 8 or 9 from <a href=\"http:\/\/www.wavemetrics.com\" target=\"_blank\" rel=\"noopener\">http:\/\/www.wavemetrics.com\/ <\/a>\r\n2. Download the GG Macros and their Manual from GitHub: <a href=\"https:\/\/github.com\/b0gilbert\/GG-macros.\">https:\/\/github.com\/b0gilbert\/GG-macros.<\/a>\r\n3. Follow the instructions in the manual to place the macros in the correct folders on your computer.\r\n4. Contact Pupa Gilbert at <a href=\"mailto:pupa@physics.wisc.edu\">pupa@physics.wisc.edu<\/a> if you have any questions.\r\n5. If our GG Macros contribute to your work, please consider citing them using their Zenodo DOI: <a href=\"https:\/\/doi.org\/10.5281\/zenodo.17314121\">https:\/\/doi.org\/10.5281\/zenodo.17314121<\/a>.<\/p>\r\nIn a nutshell, the GG macros enable you to:\r\n\r\n<b>Do quantitative analysis of the orientation of carbonate crystals. For example, the aragonite (CaCO<sub>3<\/sub>) tablets in nacre can be distinguished by their crystal orientation as shown below. At a single linear polarization (left) two tablets (magenta dots, or blue dots) may display very similar gray levels, but their orientation can be quite distinct, when fully analyzed at multiple polarizations (see J4 in the manual).<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-297 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization-300x131.png\" alt=\"\" width=\"300\" height=\"131\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization-300x131.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization-768x335.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization-900x393.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization.png 902w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<b>Obtain the 3D crystallographic orientation of carbonate crystals or apatite crystals using either PELICAN or PIC mapping. The in-plane orientation of the c-axis (termed c&#8217; angle) is displayed as hue, and the out-of-plane orientation is displayed as brightness, from full color to black in PIC maps.<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-298\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps.png\" alt=\"\" width=\"976\" height=\"380\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps.png 976w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps-300x117.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps-768x299.png 768w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/a>\r\n\r\n<b>Extract spectra from mouse-drawn ROIs<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-299 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs-300x131.png\" alt=\"\" width=\"300\" height=\"131\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs-300x131.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs-768x336.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs-900x394.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<b>Extract spectra from a single pixel<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-300 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel-300x116.png\" alt=\"\" width=\"300\" height=\"116\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel-300x116.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel-768x297.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel-900x349.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<b>Extract spectra from pixels along a line<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-301 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line-300x122.png\" alt=\"\" width=\"300\" height=\"122\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line-300x122.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line-768x313.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line-900x367.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<b>Do peak fitting of extracted spectra<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-302 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting-300x282.png\" alt=\"\" width=\"300\" height=\"282\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting-300x282.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting.png 710w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<b>Display the spatial distribution of individual components with known spectra<\/b>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-303 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro-300x102.png\" alt=\"\" width=\"300\" height=\"102\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro-300x102.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro-768x261.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro-900x306.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<strong>The individual components and their relative concentrations can then be combined in a quantitative \u201cComponent Map\u201d if there are 1, 2, or 3 component in the system analyzed, or Myriad Map (MM) if there are more than 3 components. See J4 or J5 in the Manual for component maps or MMs.<\/strong>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-304 size-medium\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed-294x300.png\" alt=\"\" width=\"294\" height=\"300\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed-294x300.png 294w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed.png 475w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a>\r\n\r\n<strong>You can calculate Polarization-Enabled Large Input of Crystal Angles at the Nanoscale (PELICAN) maps. <\/strong><strong>See K in the Manual for PELICAN mapping.<\/strong>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert\/software\/c55an_pelilayout-2\/\" rel=\"attachment wp-att-1151\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1151 size-large\" src=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-1024x759.jpg\" alt=\"You can calculate Polarization-Enabled Large Input of Crystal Angles at the Nanoscale (PELICAN) maps\" width=\"640\" height=\"474\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-1024x759.jpg 1024w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-300x222.jpg 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-768x569.jpg 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-1536x1138.jpg 1536w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-2048x1518.jpg 2048w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN_PeliLayout-1-1200x889.jpg 1200w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>\r\n\r\n<strong>You can extract histograms of misorientations from every pair of adjacent pixels in the PELICAN map. Making sure that the pixel size is well-matched to the nanocrystal size provides the most significant information.<\/strong>\r\n\r\n<a href=\"https:\/\/home.physics.wisc.edu\/gilbert\/software\/c55an-histogram-2\/\" rel=\"attachment wp-att-1150\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1150 size-large\" src=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-1024x589.jpeg\" alt=\"You can extract histograms of misorientations from every pair of adjacent pixels in the PELICAN map\" width=\"640\" height=\"368\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-1024x589.jpeg 1024w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-300x173.jpeg 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-768x442.jpeg 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-1536x884.jpeg 1536w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-2048x1179.jpeg 2048w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/3\/2026\/02\/C55AN-histogram-1-1200x691.jpeg 1200w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/div><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>The Gilbert Group Macros (GG Macros) were developed by Benjamin Gilbert (bgilbert@lbl.gov) with extensive interaction and feedback from Pupa Gilbert. The GG Macros run on Mac and PC, are ready-to-use, free of charge, and are recommended to analyze synchrotron spectromicroscopy data, that is, images stacked as a function of photon energy, or polarization of the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_uw_migration_status":"in-progress","_uw_gutenberg_post_content_before_migration":"","footnotes":""},"class_list":["post-131","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":31,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages\/131\/revisions"}],"predecessor-version":[{"id":1201,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages\/131\/revisions\/1201"}],"wp:attachment":[{"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/media?parent=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}