harmonica.load_oasis_montaj_grid

harmonica.load_oasis_montaj_grid#

harmonica.load_oasis_montaj_grid(fname)[source]#

Reads gridded data from an Oasis Montaj© .grd file.

The version 2 of the Geosoft© Grid File Format (GRD) stores gridded products in binary data. This function can read those files and parse the information in the header. It returns the data in a xarray.DataArray for convenience.

Warning

This function has not been tested against a wide range of GRD files. This could lead to incorrect readings of the stored data. Please report any unwanted behaviour by opening an issue in Harmonica: fatiando/harmonica#issues

Important

This function only supports reading GRD files using the version 2 of the Geosoft© Grid File Format.

Important

This function is not supporting orderings different than ±1, or colour grids.

Parameters:

fname (string or file-like object) – Path to the .grd file.

Returns:

grid (xarray.DataArray) – xarray.DataArray containing the grid, its coordinates and header information.

References

https://help.seequent.com/Oasis-montaj/9.9/en/Content/ss/glossary/grid_file_format__grd.htm

Loop3D/geosoft_grid