load a grid file
weiwei
Posts: 7
in Oasis montaj
Hello,
I have trouble figuring out a better way to import my interested bathymetry grid file to Geosoft. I have three variables, latitude, longitude and bathymetry. For example, I now have latitude with a size 1322 by 1843, longitude with size 1322 by 1843, bathymetry with the same size 1322 by 1843. These variables are now loaded in MATLAB and this file doesn't have ready-to-use grid format for Geosoft. Could anyone suggest a way to load this grid file into Geosoft? Thanks!
I have trouble figuring out a better way to import my interested bathymetry grid file to Geosoft. I have three variables, latitude, longitude and bathymetry. For example, I now have latitude with a size 1322 by 1843, longitude with size 1322 by 1843, bathymetry with the same size 1322 by 1843. These variables are now loaded in MATLAB and this file doesn't have ready-to-use grid format for Geosoft. Could anyone suggest a way to load this grid file into Geosoft? Thanks!
0
Comments
-
I would suggest exporting it as a csv from matlab and then loading it into a gdb and generating a grid inside Geosoft. If you really want to generate a grid from Matlab you can look on the Mathworks FileExchange site and find various functions. There is one that reads Geosoft grids. Or there is this one https://uk.mathworks.com/matlabcentral/fileexchange/20880-surfer-grid-import-export that you can use to create a surfer grid that Geosoft should be able to read. You could also write a matlab script to generate a grid in the GXF format described here. http://www.geosoft.com/media/uploads/resources/technical-notes/gxfr3d9_1.pdf This is an ASCII format so in theory should be fairly straightforward to code.1
-
Hi @weiwei , if your grid are regular, another simple option is to use the save(filename,variable,'-ascii') function in matlab to save your grid variable to an ascii file. You can then import the ascii grid into Oasis montaj. Go to Grid and Image > Utilities > Import ASCII grid.Technical Analyst0
This discussion has been closed.