Generate Mosaic (Grid)

The button Generate Mosaic (Grid) can stitch several maps together in a grid. Such mosaic allows maps of individual grains to be compiled on a single image and improve the visualisation of possible variations in composition. The original coordinates of each map are not preserved. Spot analyses used as internal standard must have X and Y that are defined manually after creating the mosaic using the XMapTools’ coordinate system. For an alternative option, see the second mosaic option below.
Procedure for creating a mosaic using a predefined grid:
- Set the working directory to a directory containing a folder Mosaic (case sensitive) via the the main menu: XMapTools > Set Working Directory
- The folder Mosaic should contain a set of maps with the exact same elements. Each dataset has to be stored in a separate subfolder. Note that the subfolder name is used to define the sequence of the map in the mosaic. Use folder names such as 01_Map34; 02_Map4; 03_Map1 to define the order before importation.
- If the name of a folder starts with a minus symbol (−), the folder will be skipped and not imported while creating the mosaic
- Important: the maps must have the same spatial resolution. If a map has a different spatial resolution, the resolution has to be adjusted manually first. Note that XMapTools assumes that the maps have the same spatial resolution and does not check it during mosaic building
- Press the button Generate Mosaic (Grid)
- Define the number of columns in the dialog box
- XMapTools generates the mosaic and save the new maps in the current working directory.
Generate Mosaic in Original Coordinate System

The button Generate Mosaic in Original Coordinate System merges several maps in a referenced system based on their original coordinates. It also calculates the coordinates of the new map for the file Standards.txt. This means that spot analyses obtained during the same probe session can be directly provided and used to calibrate the mosaic.
Procedure for creating a referenced mosaic:
- Set the working directory to a directory containing a folder Mosaic (case sensitive) via the the main menu: XMapTools > Set Working Directory
- The folder Mosaic should contain a set of maps with the exact same elements. Each dataset has to be stored in a separate subfolder. Note that the subfolder name is used to define the sequence of the map in the mosaic. Use folder names such as 01_Map34; 02_Map4; 03_Map1 to define the order before importation. Each folder must contain the file Standards.txt containing the coordinates of the map. If a file Classification.txt exists, it will be skipped.
- The spatial resolution of each map will be adjusted automatically to the settings of the map with the higher spatial resolution. Resampling is performed using a linear interpolant for gridded data.
- Press the button Generate Mosaic in Original Coordinate System
- XMapTools generates the mosaic, save the maps in the working directory, generate a file Standards.txt containing only the first block with the map coordinates. The order of oxide (second block) and the analyses (third block) need to be added manually
Was this helpful?
0 / 0