How to batch export a set of Geosoft grids to GeoTIFF format
Objective
I have a set of Geosoft grid files that I would like to export to GeoTIFF files. How can I do this using a script and batch file?
Solution
This is for an example dataset residing in C:\mag\
- Extract mag.zip to C:
- Open a DOS prompt.
- Change directory to C:\mag
- At the prompt, type in "export" (without quotations) > Enter. This will run the export.bat batch file.
Notes
- The script (*.gs file) was created by recording the display grid function (Grid and Image menu > Display > Single Grid) and the map export function (Map menu > Export).
- The *.gs and *.bat files can be opened in Notepad for editing. Right-click on the file in Windows Explorer > Edit.
- The script and batch file were made for a 64-bit system. If you are on a 32-bit system, you will need to delete the text " (x86)" from the .gs and .bat files in order to be able to run the sample batch file.
You may also be interested in watching the "Scripting in Oasis montaj" video that can be found here - http://www.geosoft.com/resources/videos/
