public abstract class NetcdfLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static int |
DEFAULT_LOG_LEVEL |
static String |
DFLAG_JNAPATH |
static String |
DFLAG_LOG_LEVEL |
static String |
ENV_JNAPATH |
protected static String |
jnaPath |
protected static String |
libName |
protected static DapNetcdf |
nc4 |
| Constructor and Description |
|---|
NetcdfLoader() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isClibraryPresent()
Test if the netcdf C library is present and loaded
|
static DapNetcdf |
load() |
protected static String |
nullify(String s)
Convert a zero-length string to null
|
static void |
setLibraryAndPath(String jna_path,
String lib_name)
set the path and name of the netcdf c library.
|
static int |
setLogLevel(int level)
Set the log level for loaded library
Do nothing if set_log_level is not available
|
public static final boolean DEBUG
public static final String DFLAG_JNAPATH
public static final String DFLAG_LOG_LEVEL
public static final String ENV_JNAPATH
public static final int DEFAULT_LOG_LEVEL
protected static DapNetcdf nc4
protected static String jnaPath
protected static String libName
public static void setLibraryAndPath(String jna_path, String lib_name)
jna_path - path to shared librarieslib_name - library nameIllegalArgumentExceptionpublic static DapNetcdf load() throws IOException
IOExceptionpublic static boolean isClibraryPresent()
public static int setLogLevel(int level)