{"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-10-05T07:06:56","modified_gmt":"2026-10-05T07:06:56","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>\n\n\n<div class=\"wp-block-group alignfull has-base-background-color has-background has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60)\">\n<div class=\"wp-block-columns alignnone is-layout-flex wp-container-core-columns-is-layout-b4b75a54 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-layout-constrained has-global-padding wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">GG Macros<\/h2>\n\n\n\n<p class=\"normaltext wp-block-paragraph\">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>\n\n\n\n<p class=\"normaltext wp-block-paragraph\">1. Download Igor Pro 8 or 9 from <a href=\"http:\/\/www.wavemetrics.com\" target=\"_blank\" rel=\"noopener\">http:\/\/www.wavemetrics.com\/ <\/a><br>2. Download the GG Macros and their Manual from GitHub: <a href=\"https:\/\/github.com\/b0gilbert\/GG-macros.\">https:\/\/github.com\/b0gilbert\/GG-macros.<\/a><br>3. Follow the instructions in the manual to place the macros in the correct folders on your computer.<br>4. Contact Pupa Gilbert at <a href=\"mailto:pupa@physics.wisc.edu\">pupa@physics.wisc.edu<\/a> if you have any questions.<br>5. 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>\n\n\n\n<p class=\"wp-block-paragraph\">In a nutshell, the GG macros enable you to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><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><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><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\" width=\"300\" height=\"131\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/linear_v_mult_polarization-300x131.png\" alt=\"\" class=\"wp-image-297\" style=\"aspect-ratio:2.2900763358778624;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/linear_v_mult_polarization-300x131.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/linear_v_mult_polarization-768x335.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/linear_v_mult_polarization-900x393.png 900w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/linear_v_mult_polarization.png 902w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><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><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps.png\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"380\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/color_PIC-maps.png\" alt=\"\" class=\"wp-image-298\" style=\"aspect-ratio:2.568421052631579;width:976px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/color_PIC-maps.png 976w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/color_PIC-maps-300x117.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/color_PIC-maps-768x299.png 768w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Extract spectra from mouse-drawn ROIs<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"131\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/mouse-drawn_ROIs-300x131.png\" alt=\"\" class=\"wp-image-299\" style=\"aspect-ratio:2.2900763358778624;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/mouse-drawn_ROIs-300x131.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/mouse-drawn_ROIs-768x336.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/mouse-drawn_ROIs.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Extract spectra from a single pixel<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"116\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/single_pixel-300x116.png\" alt=\"\" class=\"wp-image-300\" style=\"aspect-ratio:2.586206896551724;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/single_pixel-300x116.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/single_pixel-768x297.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/single_pixel.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Extract spectra from pixels along a line<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><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\" width=\"300\" height=\"122\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/pix_on_a_line-300x122.png\" alt=\"\" class=\"wp-image-301\" style=\"aspect-ratio:2.459016393442623;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/pix_on_a_line-300x122.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/pix_on_a_line-768x313.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/pix_on_a_line.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Do peak fitting of extracted spectra<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"282\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/peak_fitting-300x282.png\" alt=\"\" class=\"wp-image-302\" style=\"aspect-ratio:1.0638297872340425;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/peak_fitting-300x282.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/peak_fitting.png 710w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Display the spatial distribution of individual components with known spectra<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"102\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/spatial_distro-300x102.png\" alt=\"\" class=\"wp-image-303\" style=\"aspect-ratio:2.9411764705882355;width:300px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/spatial_distro-300x102.png 300w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/spatial_distro-768x261.png 768w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/spatial_distro.png 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><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><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed.png\"><img loading=\"lazy\" decoding=\"async\" width=\"294\" height=\"300\" src=\"https:\/\/home.physics.wisc.edu\/gilbert2\/wp-content\/uploads\/sites\/3\/2017\/08\/separate_channels_displayed-294x300.png\" alt=\"\" class=\"wp-image-304\" style=\"aspect-ratio:0.98;width:294px;height:auto\" srcset=\"https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/separate_channels_displayed-294x300.png 294w, https:\/\/home.physics.wisc.edu\/gilbert\/wp-content\/uploads\/sites\/15\/2017\/08\/separate_channels_displayed.png 475w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><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><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert\/software\/c55an_pelilayout-2\/\" rel=\"attachment wp-att-1151\"><img decoding=\"async\" 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\" class=\"wp-image-1151\" style=\"aspect-ratio:1.350210970464135;width:640px;height:auto\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><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><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/home.physics.wisc.edu\/gilbert\/software\/c55an-histogram-2\/\" rel=\"attachment wp-att-1150\"><img decoding=\"async\" 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\" class=\"wp-image-1150\" style=\"aspect-ratio:1.7391304347826086;width:640px;height:auto\"\/><\/a><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","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":{"_uw_migration_status":"complete","_uw_gutenberg_post_content_before_migration":"","_uw_seo_meta_title":"","_uw_seo_meta_description":"","_uw_seo_twitter_card_type":"summary","_uw_seo_meta_image":"","_uw_seo_meta_image_url":"","_uw_seo_meta_image_sizes":[],"_uw_seo_custom_meta_tags":[],"footnotes":""},"class_list":["post-131","page","type-page","status-publish","hentry"],"_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":2,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages\/131\/revisions"}],"predecessor-version":[{"id":1392,"href":"https:\/\/home.physics.wisc.edu\/gilbert\/wp-json\/wp\/v2\/pages\/131\/revisions\/1392"}],"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}]}}