Golden Software Blog

Helping you learn more about the latest product information, tips, tricks, techniques, and customer stories so you can visualize data and communicate results with ease.

Resize a grid file using Grid | Mosaic

There is a very useful feature in Surfer that is often overlooked. When working with grid files, it is not uncommon to want to resize a grid so that the grid line geometry can match other grids that you are using in the same project.

 

Grid | Mosaic can be used on several unequally sized grids so that they can be set with the same grid spacing. This feature is useful when you need to perform calculations on grid files which were created from different sources.

 

Follow these steps to use Grid | Mosaic to resize a grid file:

 

1.    Click Grid | Mosaic,

2.    In the Open Grids dialog (shown below), select the grid file you wish to resize.

 

opengrid.png
3
.    Click Open.
4.   To Grid Mosaic dialog will open with the Input Grid File you selected listed.

     5.    Specify the location where you would like to save the Output Grid File.

     6.    Adjust the Output Grid Geometry to reflect the new grid geometry. Adjust the Spacing or # of Nodes to increase or decrease the grid resolution. When the spacing or number of nodes is changed, the other will update to reflect the appropriate spacing or nodes for that change.

 

GridMosaicDialog.png

 

 

The Grid Extents section will graphically show the general extent of the original grid, and the Output Grid Geometry section will display the original grid geometry. To get a better idea of the original grid used in this example, the grid file is plotted in XY space, below. 

 

b2ap3_thumbnail_inputgrid.png

Original input grid file

 

For this example, I will reduce the extent of the grid by one grid cell on each side. To do this, I have increased the minimum X and Y values by 1, and decreased the maximum X and Y values by 1. The Grid Extents section of the dialog displays an example of the new grid geometry relative to the original grid extent.

 

 

GridMosaicDialog2.png

 

In this example, I have also increased the number of nodes in the X direction from 50 to 100, and the number of nodes in the Y direction from 39 to 100. This will increase the density of the grid in the resulting output grid. This can be useful when you want to achieve a finer or coarser grid in your output file.

 

     7.    Click OK to create the Output Grid File.

 

The image below shows the example output grid file displayed (in red) over the input grid (in black). You can see the original grid has been “cropped” by one unit on each side, and has a much finer grid spacing. 

 

b2ap3_thumbnail_Input-OutputFiles.pngInput and Output Grid Files using Grid | Mosaic.

 

Below I have provided a better “real-world example of using Grid | Mosaic to resize a grid file. In the Input Grid File (Helens2.grd) the grid is elongated in the Y direction. The Grid | Mosaic command is used to resize the grid file so that the spacing in the X and Y direction is the same and the resulting grid is square.

 

b2ap3_thumbnail_elongated_grid.png
Original “elongated” input grid file

 


The red dashed line in the image above represent the location of the clipping point used to resize the grid so that the output is a square grid file. The output grid file, shown below, has been resized so that the resulting grid file is square.

 

 

b2ap3_thumbnail_cropped_grid.pngSquare output grid file

 


The Grid | Mosaic command is a useful tool when working with grid files of different XY extents. This is just one example of the use of the Grid | Mosaic command, thought its application can be useful in other situations as well.

 

Additional information about using Grid | Mosaic can be found in the Help. Click Help | Contents to open the Help. In the Contents tab, navigate to Surfer 11 | Gridding | Grid Operations | Grid Mosaic.

 

 

 

Comments

No comments made yet. Be the first to submit a comment
Guest
Wednesday, 22 November 2017

Captcha Image

Subscribe To Our Blog

Most Popular

This week's new feature series is a tutorial on how to use the new coordinate system dialogs in MapV...
Over the years, one of the most common questions asked is “How can I get my contour map out of Surfe...
For more than 20 years, Surfer mapping software has been used by representatives of nearly all indus...

Exceeding expectations

Go to top