How can I create a 3d model in Surfer from a picked contour in multiple 2D profiles?
If you have multiple SRF files of 2D profiles using an arbitrary x distance, you know the UTM x,y coordinates of the ends of the profile, and you want to create a surface of a certain z contour from the profiles, you can use the following workflow to accomplish this.
- Open the attached profiles_to_surface.xlsx file in Excel, and enter the x and y UTM values for the ends of the first profile into cells B2 through B5.
- Enter the min and max x values from the profile into the Excel file:
- In Surfer, open the SRF for the first profile line.
- Click on the Map in the Contents window.
- Click on the Limits tab in the Properties window.
- Copy the xMin_profile value into cell B6 in the attached Excel file.
- Copy the xMax_profile value into cell B7 in the attached Excel file.
- Turn off everything except the one desired contour:
- In Surfer, uncheck the boxes next to everything except the Map and the Contours layer in the Contents window.
- Select the Contours layer in the Contents window.
- On the Levels page in the Properties window, click the Edit Levels button.
- Select each level EXCEPT the desired level and click Delete.
- If there's a Yes in the Label column, double click it to change it to a No.
- Double click the fill in the Fill column, change the Fill Pattern to None, and click OK.
- Click OK.
- Export the desired contour as a DAT:
- Still in Surfer, click File | Export.
- Change the Save as type to DAT XYZ points, give your file a name, and click Save.
- In the Export Options dialog, on the Scaling page, change the Scaling source to Map: Contours-<grid file>.
- On the XYZ Options page, uncheck Write Z (elevation) column, and click OK.
- Open an empty worksheet and copy/paste the 'y' value from the exported DAT into the 'z' column in this new file:
- Click File | Open in Worksheet.
- Select the DAT you just exported, and click Open.
- Copy Column B.
- Click File | New | Worksheet.
- Paste into Column C in the new worksheet.
- Click File | Save As.
- Give your file a name, change Save as type to XLSX Excel 2007 Spreadsheet, and click Save.
- Use the attached Excel file to calculate the adjusted x values of the points exported to the DAT:
- Click back to the DAT in Surfer's worksheet.
- Copy Column A.
- Paste this into cell A14 in the attached Excel file.
- Click in cell B14, then double click the square in the lower right corner to copy the equation down the column.
- Click in cell C14, then double click the square in the lower right corner to copy the equation down the column.
- Copy/paste the X and Y values from these last two steps into the XLSX:
- Copy/paste cells B14 through the end of column C into cell A1 in the XLSX in Surfer's worksheet.
- Press CTRL+S to save the file.
- Repeat these steps for the other line, adding the Z, X, and Y values to the most-recently-saved DAT:
- Repeat steps 1-5c for the other profile line(s).
- Click to the Surfer worksheet containing the XLSX.
- Paste into the first EMPTY row in Column C.
- Repeat step 6.
- Copy/paste cells B14 through the end of column C into the first EMPTY row in Column A in the XLSX.
- Press CTRL+S to save the file.
- Grid the final XLSX:
- In Surfer, click Home | Grid Data | Grid Data.
- In the Open Data dialog, select the XLSX file from the Open worksheets list and click Open.
- Set your desired gridding parameters and click OK.
- Click OK in the Surfer dialog telling you the grid has been created.
- Create the map:
- Click File | New | Plot Document.
- Click Home | New Map | Contour or Home | New Map | 3D Surface.
- In the Open Grid dialog, select your GRD file and click Open.
Updated December 19, 2021
Comments
0 comments
Please sign in to leave a comment.