Create a new GMT C API session.
This is required before most other methods of
pygmt.clib.Sessioncan be called.
GMT_Create_Sessionand generates a new
GMTAPI_CTRLstruct, which is a
ctypes.c_void_ppointer. Sets the
session_pointerattribute to this pointer.
Remember to terminate the current session using
pygmt.clib.Session.destroybefore creating a new one.
name (str) – A name for this session. Doesn’t really affect the outcome.