Search the Knowledgebase |
Browse by Category |
|
|
|
| How do I merge two or more GRD or DEM files to create a contour map? |
| User Opinions |
66%
33%
|
|
Thank you for rating this answer.
|
There are a few ways you can merge GRD or DEM files.
1. The first is to simply add multiple contour layers to the same map:
- Go to Map | New | Contour Map, select the first GRD or DEM file and click Open. That creates the map with the first contour layer.
- Select the map and go to Map | Add | Contour Layer, select the next GRD or DEM file and click Open. That creates a new contour layer and adds it to the map. Now the map has two contour layers.
- Repeat for all GRD or DEM files you have so that all the contour layers are combined and displayed in the same map.
2. The next method is to use the Grid Mosaic command to merge two (or more) grid or DEM files together into a single grid. You would create the map from this one combined grid file:
- Go to Grid | Mosaic, select the first grid file and click Open.
- In the Grid Mosaic dialog click the Add button, select the second DEM and click Open.
- You have a choice of the Resample Method and the Overlap Method (what to do when the grids overlay and there are multiple sets of data in a specific area).
- Specify an Output Grid File name and location and click OK.
3. If overlaying maps or mosaicking is not working as you expect, or the contact/seam just isn't looking right (perhaps due to blanked values), the third method is to convert the grids/DEMs to data files, merge the data files and remove the blanked nodes, and regrid the data. The exact steps are:
- Go to Grid | Grid Info, select one of the grid
files and click Open. Note the Spacing for the grid files in the X and Y
direction. Close the report.
- Go to Grid | Convert.
- Select the first grid or DEM file, in the Grid Info section note the Size of the grid file (rows and columns), and click Open.
- In the Save Grid As dialog, select ASCII XYZ (*.dat) as the Save as type, give the file a name and click Save.
- Repeat steps 1-3 for the other grid file, so you have two DAT files.
- Go to File | Open, select one DAT and click Open. It will open in the Surfer worksheet.
- Scroll to the bottom of the file and click in the first empty cell in Column A.
- Go to File | Import File.
- Select the second DAT file and click Open. The new data will be appended to the bottom of the first file.
- Go to Tools | Options. On the General page, set the number of Undo
levels to 0. Click OK.
- Select all three columns (A, B and C) and go to Data | Sort.
- Choose Sort First By: Column C, Descending, and click OK.
- Now we want to get rid of the blanked nodes. The values could be the Surfer blanking value, 1.70141e+38, or I've also seen them in DEM files as -32767. Select the first row with the blanking value in Column C, scroll to the last row that has the blanking value it in, hold the SHIFT key down and select the last row with the blanking value in Column C. That will select also select all the intervening rows.
- Go to Edit | Delete.
- Once all the blanking values are deleted from the data file, go to File | Save (or File | Save As) and save the file to a DAT file.
- In the plot window, go to Grid | Data, select the DAT file and click Open.
- In the Grid Data dialog, choose the Nearest Neighbor gridding method and set the Spacing equal to that of the original grid file (noted in Step 1 above). Set the file path and file name for the output grid file and click OK.
- Go back to
Tools | Options and set the number of Undo levels back to a reasonable number.
|
| Visitor Comments |
|
No visitor comments posted. Post a comment
|
| Attachments |
|
No attachments were found.
|