public class NetcdfClibrary
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Nc4prototypes |
getForeignFunctionInterface()
Get the interface to the Nectdf C library.
|
static java.lang.String |
getVersion()
Get the version of the loaded Nectdf C library.
|
static boolean |
isLibraryPresent()
Test if the netcdf C library is present and loaded
|
static void |
setLibraryNameAndPath(java.lang.String jna_path,
java.lang.String lib_name)
Set the path and name of the netcdf c library.
|
static int |
setLogLevel(int level)
Set the log level for Netcdf C library.
|
public static void setLibraryNameAndPath(@Nullable java.lang.String jna_path, @Nullable java.lang.String lib_name)
jna_path
- path to shared libraries, may be null. If null, will look for system property
"jna.library.path", then environment variable "JNA_PATH". If set, will set
the environment variable "JNA_PATH".lib_name
- library name, may be null. If null, will use "netcdf".public static boolean isLibraryPresent()
public static Nc4prototypes getForeignFunctionInterface()
@Nullable public static java.lang.String getVersion()
public static int setLogLevel(int level)