License Required for gxgrd.Grid.minimum_curvature ?

(1) Is there a license restriction for running gxgrd.Grid.minimum_curvature from stand-alone python script?
(2) If so, where in the documentation can I find license restrictions for various functions?
(3) Or is there another problem?

I am running the OM Viewer and this script (pretty much straight from the documentation) failed:

import numpy as np
import geosoft.gxpy as gxpy
import geosoft.gxpy.grid as gxgrd

# ******************************************************
# Gridding test
gxc = gxpy.gx.GXpy() # create Geosoft context
print(gxc.gid) # Prints Geosoft userID

xyv = [(45., 10., 100), (60., 25., 77.), (50., 8., 80.)] # simple data array
grid = gxgrd.Grid.minimum_curvature(xyv)
print('Properties ',


This is the python response:

C:\ProgramData\Anaconda3\python.exe C:/Users/EKB/PycharmProjects/Test_Project/
[email protected]
Traceback (most recent call last):
File "C:/Users/EKB/PycharmProjects/Test_Project/", line 11, in
grid = gxgrd.Grid.minimum_curvature(xyv)
File "c:\programdata\anaconda3\lib\site-packages\geosoft\gxpy\", line 705, in minimum_curvature
gxapi.GXRGRD.run2(gdb.gxdb, xc, yc, vc, con_file, file_name)
File "c:\programdata\anaconda3\lib\site-packages\geosoft\gxapi\", line 226, in run2
ret_val = gxapi_cy.WrapRGRD._run2(GXContext._get_tls_geo(), db, x.encode(), y.encode(), z.encode(), ctl.encode(), grd.encode())
File "gxapi_cy.pyx", line 54084, in gxapi_cy.WrapRGRD._run2
File "gxapi_cy.pyx", line 11118, in gxapi_cy._raise_on_gx_errors
geosoft.gxapi.GXAPIError: Unable to bind the "[email protected]@[email protected]@[email protected]" wrapper function. This might be due to a missing DLL or license, or you are running an application outside of Oasis montaj.

Process finished with exit code 1

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!